summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/LLVMConventionsChecker.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [analyzer] Refactoring: lib/Checker -> lib/GR and libclangChecker -> ↵Argyrios Kyrtzidis2010-12-221-312/+0
| | | | | | libclangGRCore llvm-svn: 122421
* [analyzer] Refactoring: include/clang/Checker -> include/clang/GRArgyrios Kyrtzidis2010-12-221-2/+2
| | | | llvm-svn: 122420
* Rename CXXExprWithTemporaries -> ExprWithCleanups; there's no theoreticalJohn McCall2010-12-061-1/+1
| | | | | | reason this is limited to C++, and it's certainly not limited to temporaries. llvm-svn: 120996
* Remove dead code, caught by unused function warnings.Argyrios Kyrtzidis2010-08-151-1/+0
| | | | llvm-svn: 111091
* Pass StringRefs by value.Benjamin Kramer2010-07-141-1/+1
| | | | llvm-svn: 108375
* Introduce Decl::hasBody() and FunctionDecl::hasBody() and use them instead ↵Argyrios Kyrtzidis2010-07-071-1/+1
| | | | | | | | of getBody() when we are just checking the existence of a body, to avoid de-serialization of the body from PCH. Makes de-serialization of the function body even more "lazier". llvm-svn: 107768
* 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