| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
new AnalysisConsumer interface.
llvm-svn: 53002
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
analyses. This potentially is the primordial origins of a Clang-equivalent
"PassManager".
The new AnalysisConsumer interface allows multiple analyses to be run from a
single invocation of Clang.
Migrated the logic of "-warn-dead-stores" and "-warn-uninit-values" to use the
new AnalysisConsumer interface. The new interface results in a significant code
reduction to incorporate an analysis into the Driver.
Updated a test case to (correctly) acknowledge that it contains a dead store
(this check wasn't being performed because it was previously masked by
-warn-uninit-values).
llvm-svn: 52996
|
|
|
|
| |
llvm-svn: 52598
|
|
|
|
| |
llvm-svn: 52560
|
|
|
|
| |
llvm-svn: 52152
|
|
|
|
|
|
| |
variety of cleanups in some ASTConsumers.
llvm-svn: 51943
|
|
|
|
|
|
|
|
|
|
|
| |
TranslationUnit object instead of an ASTContext. By default it calls
Initialize(ASTConstext& Context) (to match with the current interface used by
most ASTConsumers).
Modified the ObjC-Rewriter to use InitializeTU, and to tell the TranslationUnit
to not free its Decls. This is a workaround for: <rdar://problem/5966749>
llvm-svn: 51825
|
|
|
|
|
|
|
|
|
| |
essentially that we were destroying the declarations twice.
(Note that we don't use -serialize directly in the testsuite, only
SerializeTest.)
llvm-svn: 51768
|
|
|
|
| |
llvm-svn: 51494
|
|
|
|
|
|
|
| |
properties. Couple of property tests will fail with this patch.
Will fix them next.
llvm-svn: 50818
|
|
|
|
| |
llvm-svn: 50779
|
|
|
|
|
|
|
| |
(was IdentifierInfo * before). This will make method declartations whole
lot easier.
llvm-svn: 50747
|
|
|
|
|
|
| |
properties declared in the protocol.
llvm-svn: 50662
|
|
|
|
|
|
| |
basic warnings (dead stores, null dereferences) on the first pass.
llvm-svn: 50584
|
|
|
|
|
|
| |
a CF memory leak occurred with GC enabled, etc.
llvm-svn: 50507
|
|
|
|
|
|
| |
The transfer functions for the checker don't do anything special yet in GC mode.
llvm-svn: 50394
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when it is constructed via deserialization. This is done by recording a flag
indicating that this is the case, and it deletes these objects by getting
the references stored in the ASTContext object. This fixes some memory
leaks that occurs when we deserialize translation units from bitcode files.
The rationale between having TranslationUnit sometimes own these objects and
sometimes not is that a TranslationUnit object can be constructed from
state generated by the parser (Preprocessor; semantic analyzer, etc.), and thus
in these cases won't own the IdentifierTable or Selectors, etc. During
deserialization, there is no Preprocessor, so somebody needs to own these
objects in order for them to be properly reclaimed.
llvm-svn: 50149
|
|
|
|
|
|
| |
to print declaration from its AST.
llvm-svn: 50117
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
dstor.
clang.cpp: InitializePreprocessor now makes a copy of the contents of PredefinesBuffer and
passes it to the preprocessor object.
clang.cpp: DriverPreprocessorFactory now calls "InitializePreprocessor" instead of this being done in main().
html::HighlightMacros() now takes a PreprocessorFactory, allowing it to conjure up a new
Preprocessor to highlight macros.
class HTMLDiagnostics now takes a PreprocessorFactory* that it can use for html::HighlightMacros().
Updated clients of HTMLDiagnostics to use this new interface.
llvm-svn: 49875
|
|
|
|
|
|
|
| |
Added assertion if unexpected property decls are found where they don't belong.
Consolidated property decl. printing by using a helper function.
llvm-svn: 49862
|
|
|
|
|
|
| |
just as they are declared in objc classes.
llvm-svn: 49817
|
|
|
|
|
|
|
| |
currently doesn't pass in the Preprocessor from the driver, so we don't get
syntax highlighting when we create HTMLDiagnostics in that way.
llvm-svn: 49796
|
|
|
|
| |
llvm-svn: 49706
|
|
|
|
| |
llvm-svn: 49699
|
|
|
|
| |
llvm-svn: 49685
|
|
|
|
|
|
| |
analyzer to analyze functions declared in header files.
llvm-svn: 49675
|
|
|
|
| |
llvm-svn: 49565
|
|
|
|
| |
llvm-svn: 49503
|
|
|
|
|
|
|
|
| |
code path in the clang driver.
Renamed options --grsimple to -checker-simple and -check-cfref to -checker-cfref.
llvm-svn: 49500
|
|
|
|
| |
llvm-svn: 49372
|
|
|
|
| |
llvm-svn: 49001
|
|
|
|
|
|
|
|
|
|
| |
GRSimpleVals.h
Added a PathDiagnosticClient option to the driver functions for the
CFRefCountChecker and the GRSimpleVals analysis. Both analyses now accept a "-o"
argument from the driver that specifies where HTML reports should be dumped.
llvm-svn: 48989
|
|
|
|
| |
llvm-svn: 48981
|
|
|
|
| |
llvm-svn: 48882
|
|
|
|
| |
llvm-svn: 48435
|
|
|
|
|
|
| |
like the rest of the classes.
llvm-svn: 48434
|
|
|
|
| |
llvm-svn: 48429
|
|
|
|
|
|
| |
can't have negative arguments.
llvm-svn: 48407
|
|
|
|
| |
llvm-svn: 48368
|
|
|
|
|
|
|
|
|
| |
a block of "code".
Patched various ASTConsumers (such as ASTDumper) to have more support for
processing ObjCMethodDecl. CFGVisitor now builds CFGs for ObjCMethodDecls.
llvm-svn: 48363
|
|
|
|
|
|
| |
to be run on other declarations of blocks of code (e.g., Objective-C methods.)
llvm-svn: 48339
|
|
|
|
|
|
|
|
|
|
| |
we gracefully back out and return NULL for the CFG, allowing clients to skip
analyzing functions with these CFGs. We will add support later.
Modified base ASTConsumer "CFGVisitor" to detect when a CFG is not constructed
and to emit a warning.
llvm-svn: 48322
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that are not related to error nodes.
Fixed bug where we did not detect some NULL dereferences.
Added "ExplodedGraph::Trim" to trim all nodes that cannot transitively reach
a set of provided nodes.
Fixed subtle bug in ExplodedNodeImpl where we could create predecessor
iterators that included the mangled "sink" bit. The better fix is to integrate
this bit into the void* for the wrapped State, not the NodeGroups representing
a node's predecessors and successors.
llvm-svn: 48036
|
|
|
|
|
|
| |
implemented).
llvm-svn: 47982
|
|
|
|
| |
llvm-svn: 47560
|
|
|
|
|
|
| |
--analyze-function option to analyze specific functions.
llvm-svn: 47498
|
|
|
|
|
|
| |
--analyze-function option to dump/view the CFGs of specific functions.
llvm-svn: 47497
|
|
|
|
|
|
| |
appear in a file.
llvm-svn: 47491
|
|
|
|
| |
llvm-svn: 47303
|
|
|
|
|
|
|
|
|
| |
an analyzed function.
GRExprEngine now records stores to "uninitialized lvalues" (which are sinks in
the ExplodedGraph).
llvm-svn: 47293
|