aboutsummaryrefslogtreecommitdiff
path: root/Driver/AnalysisConsumer.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-15 00:46:02 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-15 00:46:02 +0000
commitf7f3c20a5d4c5bd1857a6cea1f001bb775401e96 (patch)
tree0856afe94e1988239ddfa91b8067661b97a5535e /Driver/AnalysisConsumer.cpp
parent57bb37fcf53aa28ef77271a9f9563fa155d87f11 (diff)
Provide an "Analysis Scope" for Analyses so checks can either be run on code declarations (bodies) or Objective-C @implementation blocks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53584 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/AnalysisConsumer.cpp')
-rw-r--r--Driver/AnalysisConsumer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Driver/AnalysisConsumer.cpp b/Driver/AnalysisConsumer.cpp
index cd24e2efea..45e0918ce0 100644
--- a/Driver/AnalysisConsumer.cpp
+++ b/Driver/AnalysisConsumer.cpp
@@ -414,9 +414,9 @@ ASTConsumer* clang::CreateAnalysisConsumer(Analyses* Beg, Analyses* End,
for ( ; Beg != End ; ++Beg)
switch (*Beg) {
-#define ANALYSIS(NAME, CMD, DESC)\
+#define ANALYSIS(NAME, CMD, DESC, SCOPE)\
case NAME:\
- C->addCodeAction(&Action ## NAME);\
+ C->add ## SCOPE ## Action(&Action ## NAME);\
break;
#include "Analyses.def"
default: break;