diff options
author | Anna Zaks <ganna@apple.com> | 2012-03-02 22:54:36 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-03-02 22:54:36 +0000 |
commit | 190f6003cbc3b156a2c071ed1f89c31c72a3605b (patch) | |
tree | 292b08f34425235639f1f50e2c72dbdc4a5fab2f /lib | |
parent | 4c55c54db8e676aa3e042188773d9d82d59fff91 (diff) |
[analyzer] Rename clang::CallGraph into clang::idx::CallGraph + rename
the corresponding files to avoid confusion.
This is a preparation to adding an AST-based call graph to Analysis. The
existing call graph works with indexer entries. We might be able to
refactor it to use the AST based graph in the future.
(Minimal testing here as the only example that uses the API has been
completely broken, does not compile.)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151950 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Index/GlobalCallGraph.cpp (renamed from lib/Index/CallGraph.cpp) | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Index/CallGraph.cpp b/lib/Index/GlobalCallGraph.cpp index 741e78107f..a21b52ae60 100644 --- a/lib/Index/CallGraph.cpp +++ b/lib/Index/GlobalCallGraph.cpp @@ -1,4 +1,4 @@ -//== CallGraph.cpp - Call graph building ------------------------*- C++ -*--==// +//== GlobalCallGraph.cpp - Call graph building ------------------*- C++ -*--==// // // The LLVM Compiler Infrastructure // @@ -11,15 +11,17 @@ // //===----------------------------------------------------------------------===// -#include "clang/Index/CallGraph.h" +#include "clang/Index/GlobalCallGraph.h" #include "clang/AST/ASTContext.h" #include "clang/AST/StmtVisitor.h" #include "llvm/Support/GraphWriter.h" -using namespace clang; -using namespace idx; +using namespace clang::idx; +using clang::FunctionDecl; +using clang::DeclContext; +using clang::ASTContext; namespace { class CGBuilder : public StmtVisitor<CGBuilder> { |