diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-02-14 19:09:05 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-02-14 19:09:05 +0000 |
commit | 676ca153e04b1c6be477bc8a10f1e06256850cee (patch) | |
tree | 1ebaf2e379955b7be5d68af8c34010e85ff5c43a /lib/Frontend/AnalysisConsumer.cpp | |
parent | f6eafcca7734274d277afa121f2c4fb025a54218 (diff) |
Change LLVMConventionsChecker to accept an entire translation unit instead
of operating on each code decl. This exposes two flaws in AnalysisConsumer
that should eventually be fixed:
(1) It is not possible to associate multiple "actions" with a single
command line argument. This will require the notion of an
"analysis" group, and possibly tablegen support. (although eventually
we want to support dynamically loading analyses as well)
(2) AnalysisConsumer may not actually be scanning the declarations in namespaces.
We'll experiment first in LLVMConventionsChecker before changing the
behavior in AnalysisConsumer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96183 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/AnalysisConsumer.cpp')
-rw-r--r-- | lib/Frontend/AnalysisConsumer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Frontend/AnalysisConsumer.cpp b/lib/Frontend/AnalysisConsumer.cpp index b03d65afcd..d764fd0789 100644 --- a/lib/Frontend/AnalysisConsumer.cpp +++ b/lib/Frontend/AnalysisConsumer.cpp @@ -434,10 +434,9 @@ static void ActionSecuritySyntacticChecks(AnalysisConsumer &C, static void ActionLLVMConventionChecker(AnalysisConsumer &C, AnalysisManager &mgr, - Decl *D) { - C.DisplayFunction(D); + TranslationUnitDecl &TU) { BugReporter BR(mgr); - CheckLLVMConventions(D, BR); + CheckLLVMConventions(TU, BR); } static void ActionWarnObjCDealloc(AnalysisConsumer &C, AnalysisManager& mgr, |