]> granicus.if.org Git - clang/commit
Change LLVMConventionsChecker to accept an entire translation unit instead
authorTed Kremenek <kremenek@apple.com>
Sun, 14 Feb 2010 19:09:05 +0000 (19:09 +0000)
committerTed Kremenek <kremenek@apple.com>
Sun, 14 Feb 2010 19:09:05 +0000 (19:09 +0000)
commit676ca153e04b1c6be477bc8a10f1e06256850cee
tree1ebaf2e379955b7be5d68af8c34010e85ff5c43a
parentf6eafcca7734274d277afa121f2c4fb025a54218
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
include/clang/Checker/Checkers/LocalCheckers.h
include/clang/Frontend/Analyses.def
lib/Checker/LLVMConventionsChecker.cpp
lib/Frontend/AnalysisConsumer.cpp