- Aug 17, 2011
-
-
Benjamin Kramer authored
This is ugly but ISO C++ doesn't allow direct casts. llvm-svn: 137812
-
Jordy Rose authored
llvm-svn: 137802
-
- Aug 16, 2011
-
-
Jordy Rose authored
[analyzer] Overhaul of checker registration in preparation for basic plugin support. Removes support for checker groups (we can add them back in later if we decide they are still useful), and -analyzer-checker-help output is a little worse for the time being (no packages). llvm-svn: 137758
-
- Aug 13, 2011
-
-
Ted Kremenek authored
Cleanup various declarations of 'Stmt*' to be 'Stmt *', etc. in libAnalyzer and libStaticAnalyzer[*]. It was highly inconsistent, and very ugly to look at. llvm-svn: 137537
-
- Jul 25, 2011
-
-
Chandler Carruth authored
FullSourceLoc::getInstantiationLoc to ...::getExpansionLoc. This is part of the API and documentation update from 'instantiation' as the term for macros to 'expansion'. llvm-svn: 135914
-
- Jul 23, 2011
-
-
Chris Lattner authored
them into the clang namespace. llvm-svn: 135852
-
- May 19, 2011
-
-
Ted Kremenek authored
llvm-svn: 131614
-
- May 05, 2011
-
-
Ted Kremenek authored
Add Checker callback for running a checker at the end of processing an entire TranslationUnit. Patch by Lei Zhang. llvm-svn: 130913
-
- Apr 15, 2011
-
-
Chris Lattner authored
Luis Felipe Strano Moraes! llvm-svn: 129559
-
- Mar 30, 2011
-
-
Argyrios Kyrtzidis authored
[analyzer] For -analyzer-checker-help show all the info about groups, packages, and which packages/checkers are hidden. llvm-svn: 128511
-
- Feb 28, 2011
-
-
Argyrios Kyrtzidis authored
llvm-svn: 126690
-
Argyrios Kyrtzidis authored
llvm-svn: 126676
-
Argyrios Kyrtzidis authored
llvm-svn: 126674
-
Argyrios Kyrtzidis authored
llvm-svn: 126673
-
Argyrios Kyrtzidis authored
They cooperate in that NSErrorChecker listens for ImplicitNullDerefEvent events that DereferenceChecker can dispatch. ImplicitNullDerefEvent is when we dereferenced a location that may be null. llvm-svn: 126659
-
Argyrios Kyrtzidis authored
A checker can register as receiver/listener of "events" (basically it registers a callback with a function getting called with an argument of the event type) and other checkers can register as "dispatchers" and can pass an event object to all the listeners. This allows cooperation amongst checkers but with very loose coupling. llvm-svn: 126658
-
Argyrios Kyrtzidis authored
llvm-svn: 126657
-
Argyrios Kyrtzidis authored
Turns -analyzer-check-buffer-overflows into -analyzer-checker=core.experimental.Overflow llvm-svn: 126609
-
Argyrios Kyrtzidis authored
llvm-svn: 126608
-
Argyrios Kyrtzidis authored
llvm-svn: 126607
-
- Feb 25, 2011
-
-
Argyrios Kyrtzidis authored
Intoduce '-analyzer-checker-help' flag which outputs a list of all available static analyzer checkers. This is pretty basic for now, eventually checkers should be grouped according to package, hidden checkers should be indicated etc. llvm-svn: 126454
-
- Feb 24, 2011
-
-
Argyrios Kyrtzidis authored
[analyzer] Remove '-analyzer-experimental-internal-checks' flag, it doesn't have any checkers associated with it anymore. llvm-svn: 126440
-
- Feb 23, 2011
-
-
Argyrios Kyrtzidis authored
llvm-svn: 126306
-
- Feb 20, 2011
-
-
Oscar Fuentes authored
CMake complained about this while generating VS project files but was okay with it while generating makefiles on Linux. llvm-svn: 126090
-
- Feb 19, 2011
-
-
Oscar Fuentes authored
The syntax is (add_dependencies target-name depend-target1 ...). llvm-svn: 126049
-
- Feb 17, 2011
-
-
Argyrios Kyrtzidis authored
The relative checker package is 'debug': '-dump-live-variables' is replaced by '-analyzer-checker=debug.DumpLiveVars' '-cfg-view' is replaced by '-analyzer-checker=debug.ViewCFG' '-cfg-dump' is replaced by '-analyzer-checker=debug.DumpCFG' llvm-svn: 125780
-
Argyrios Kyrtzidis authored
DeadStoresChecker ObjCMethSigsChecker ObjCUnusedIvarsChecker SizeofPointerChecker ObjCDeallocChecker SecuritySyntaxChecker llvm-svn: 125779
-
Argyrios Kyrtzidis authored
-Introduce CheckerV2, a set of templates for convenient declaration & registration of checkers. Currently useful just for checkers working on the AST not the path-sensitive ones. -Enhance CheckerManager to actually collect the checkers and turn it into the entry point for running the checkers. -Use the new mechanism for the LLVMConventionsChecker. llvm-svn: 125778
-
Argyrios Kyrtzidis authored
included without '..', thus being compatible with build systems of *BSDs. Patch by Joerg Sonnenberger! llvm-svn: 125758
-
- Feb 16, 2011
-
-
Argyrios Kyrtzidis authored
NilArgChecker CFNumberCreateChecker NSAutoreleasePoolChecker CFRetainReleaseChecker ClassReleaseChecker llvm-svn: 125636
-
- Feb 15, 2011
-
-
Argyrios Kyrtzidis authored
llvm-svn: 125611
-
Argyrios Kyrtzidis authored
llvm-svn: 125599
-
Argyrios Kyrtzidis authored
llvm-svn: 125565
-
Argyrios Kyrtzidis authored
StackAddrLeakChecker ObjCAtSyncChecker UnixAPIChecker MacOSXAPIChecker The rest have/create implicit dependencies between checkers and need to be handled differently. llvm-svn: 125559
-
- Feb 14, 2011
-
-
Argyrios Kyrtzidis authored
-Checkers will be defined in the tablegen file 'Checkers.td'. -Apart from checkers, we can define checker "packages" that will contain a collection of checkers. -Checkers can be enabled with -analyzer-checker=<name> and disabled with -analyzer-disable-checker=<name> e.g: Enable checkers from 'cocoa' and 'corefoundation' packages except the self-initialization checker: -analyzer-checker=cocoa -analyzer-checker=corefoundation -analyzer-disable-checker=cocoa.SelfInit -Introduces CheckerManager and CheckerProvider. CheckerProviders get the set of checker names to enable/disable and register them with the CheckerManager which will be the entry point for all checker-related functionality. Currently only the self-initialization checker takes advantage of the new mechanism. llvm-svn: 125503
-
Argyrios Kyrtzidis authored
[analyzer] Remove ManagerRegistry which is not used. In the future we may load analyzer plugins dynamically but registration through static constructors should be avoided. llvm-svn: 125502
-
Argyrios Kyrtzidis authored
[analyzer] Move include/clang/StaticAnalyzer/AnalysisConsumer.h -> lib/StaticAnalyzer/Frontend/AnalysisConsumer.h since FrontendActions.cpp is the only user. llvm-svn: 125501
-
Argyrios Kyrtzidis authored
llvm-svn: 125500
-
Argyrios Kyrtzidis authored
[analyzer] Introduce libclangStaticAnalyzerFrontend and move Checkers/AnalysisConsumer.cpp into Frontend lib. llvm-svn: 125499
-