]> granicus.if.org Git - clang/commitdiff
[analyzer] Do not walk the types for call graph construction.
authorAnna Zaks <ganna@apple.com>
Wed, 20 Jun 2012 20:57:49 +0000 (20:57 +0000)
committerAnna Zaks <ganna@apple.com>
Wed, 20 Jun 2012 20:57:49 +0000 (20:57 +0000)
Similar to r156661. This should be beneficial performance wise and
hopefully, resolve a RecursiveASTVisitor crash that we are seeing in the
wild, but are incapable of reproducing.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158851 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/CallGraph.h

index 03510b7185d7f532548294a139ab0bb44e265fc8..81afec0827bc86171166d154a3179a6fd80f7c47 100644 (file)
@@ -121,6 +121,8 @@ public:
     return true;
   }
 
+  bool shouldWalkTypesOfTypeLocs() const { return false; }
+
 private:
   /// \brief Add the given declaration to the call graph.
   void addNodeForDecl(Decl *D, bool IsGlobal);