summaryrefslogtreecommitdiffstats
path: root/clang/examples/wpa/clang-wpa.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-03-02 22:54:36 +0000
committerAnna Zaks <ganna@apple.com>2012-03-02 22:54:36 +0000
commitfc5dfe9f7cafebfc0b8cdee36082a6ef5eb24488 (patch)
tree70d0dea7a4565fa5b4129cca8ce175d4018a4df4 /clang/examples/wpa/clang-wpa.cpp
parent611306eae6c901916443b528b4fe789fd1574a90 (diff)
downloadbcm5719-llvm-fc5dfe9f7cafebfc0b8cdee36082a6ef5eb24488.tar.gz
bcm5719-llvm-fc5dfe9f7cafebfc0b8cdee36082a6ef5eb24488.zip
[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.) llvm-svn: 151950
Diffstat (limited to 'clang/examples/wpa/clang-wpa.cpp')
-rw-r--r--clang/examples/wpa/clang-wpa.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/examples/wpa/clang-wpa.cpp b/clang/examples/wpa/clang-wpa.cpp
index b1119e14b79..8e29090fe78 100644
--- a/clang/examples/wpa/clang-wpa.cpp
+++ b/clang/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());
OpenPOWER on IntegriCloud