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 /examples | |
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 'examples')
-rw-r--r-- | examples/wpa/clang-wpa.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/wpa/clang-wpa.cpp b/examples/wpa/clang-wpa.cpp index b1119e14b7..8e29090fe7 100644 --- a/examples/wpa/clang-wpa.cpp +++ b/examples/wpa/clang-wpa.cpp @@ -22,7 +22,7 @@ #include "clang/StaticAnalyzer/Checkers/LocalCheckers.h" #include "clang/Frontend/ASTUnit.h" #include "clang/Frontend/CompilerInstance.h" -#include "clang/Index/CallGraph.h" +#include "clang/Index/GlobalCallGraph.h" #include "clang/Index/Indexer.h" #include "clang/Index/TranslationUnit.h" #include "clang/Index/DeclReferenceMap.h" @@ -104,8 +104,8 @@ int main(int argc, char **argv) { } if (ViewCallGraph) { - OwningPtr<CallGraph> CG; - CG.reset(new CallGraph(Prog)); + OwningPtr<clang::idx::CallGraph> CG; + CG.reset(new clang::idx::CallGraph(Prog)); for (unsigned i = 0, e = ASTUnits.size(); i != e; ++i) CG->addTU(ASTUnits[i]->getASTContext()); |