summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/LLVMConventionsChecker.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Refactor the Is{Std,Clang,LLVM}Namespace methods and rename 'isClangAttr' toNick Lewycky2010-05-301-35/+13
| | | | | | 'IsClangAttr' to match prevailing style in this file. Patch by Jon Mulder! llvm-svn: 105170
* Merged Elaborated and QualifiedName types.Abramo Bagnara2010-05-111-1/+1
| | | | llvm-svn: 103517
* clang::Attr objects should be treated as AST nodes as well byTed Kremenek2010-02-141-1/+5
| | | | | | the LLVMConventionsChecker. llvm-svn: 96202
* Add LLVM conventions check that scans for AST elements (types, stmts, decls)Ted Kremenek2010-02-141-13/+194
| | | | | | that allocate heap memory. llvm-svn: 96184
* Change LLVMConventionsChecker to accept an entire translation unit insteadTed Kremenek2010-02-141-4/+20
| | | | | | | | | | | | | | | | 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. llvm-svn: 96183
* For the StringRef check, also visit the children of DeclStmts.Ted Kremenek2010-02-141-0/+3
| | | | llvm-svn: 96181
* Place type-checking static methods at type of file (where they will congregate).Ted Kremenek2010-02-141-33/+37
| | | | | | No functionality change. llvm-svn: 96180
* Add new static analyzer for checking LLVM coding conventions: ↵Ted Kremenek2010-02-141-0/+127
-analyzer-check-llvm-conventions Currently these checks are intended to be largely syntactical, but may get more sophisticated over time. As an initial foray into this brave new world, emit a static analyzer warning when binding a temporary 'std::string' to an 'llvm::StringRef' where the lifetime of the 'std::string' does not outlive the 'llvm::StringRef'. llvm-svn: 96147
OpenPOWER on IntegriCloud