| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
| |
pedantic error. Perhaps I should add a class of 'extension' that is
'extension that warns by default', which would be cleaner.
llvm-svn: 50633
|
| |
|
|
|
|
| |
The transfer functions for the checker don't do anything special yet in GC mode.
llvm-svn: 50394
|
| |
|
|
|
|
| |
Add corresponding enum in LangOptions.
llvm-svn: 50387
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 49974
|
| |
|
|
| |
llvm-svn: 49973
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
While this adds no extra functionality now, we will soon pass the
PreprocessorFactory object to some ASTConsumers.
llvm-svn: 49873
|
| |
|
|
| |
llvm-svn: 49797
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
problems, including the fact that it doesn't work well with multi-line
comments due to Ted's crazy table. However, that could be fixed, and it
does work with single-line ones :).
llvm-svn: 49778
|
| |
|
|
| |
llvm-svn: 49777
|
| |
|
|
|
|
| |
functionality has been migrated into "--emit-html" and "--html-diags".
llvm-svn: 49776
|
| |
|
|
| |
llvm-svn: 49692
|
| |
|
|
|
|
| |
analyzer to analyze functions declared in header files.
llvm-svn: 49675
|
| |
|
|
|
|
| |
intermixed.
llvm-svn: 49645
|
| |
|
|
|
|
|
|
| |
code path in the clang driver.
Renamed options --grsimple to -checker-simple and -check-cfref to -checker-cfref.
llvm-svn: 49500
|
| |
|
|
|
|
|
|
| |
interaction for function parameters, fixing PR2046.
Patch by Doug Gregor!
llvm-svn: 49369
|
| |
|
|
|
|
| |
subsuming) my patch for PR1999.
llvm-svn: 49251
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
PathDiagnostic)
so that all diagnostics can be piped to HTML files instead of as text diagnostics using --html-diags.
llvm-svn: 48865
|
| |
|
|
| |
llvm-svn: 48745
|
| |
|
|
| |
llvm-svn: 48742
|
| |
|
|
| |
llvm-svn: 48669
|
| |
|
|
| |
llvm-svn: 48540
|
| |
|
|
|
|
|
| |
code as HTML. Added a new driver option "--emit-html" to dump the source
of the main input file as HTML.
llvm-svn: 48505
|
| |
|
|
| |
llvm-svn: 48358
|
| |
|
|
| |
llvm-svn: 48172
|
| |
|
|
| |
llvm-svn: 48089
|
| |
|
|
| |
llvm-svn: 48066
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
theoretically useful, but not useful in practice. It adds a bunch of
complexity, and not much value. It's best to nuke it. One big advantage
is that it means the target interfaces will soon lose their SLoc arguments
and target queries can never emit diagnostics anymore (yay). Removing this
also simplifies some of the core preprocessor which should make it slightly
faster.
Ted, I didn't simplify TripleProcessor, which can now have at most one
triple, and can probably just be removed. Please poke at it when you have
time.
llvm-svn: 47930
|
| |
|
|
| |
llvm-svn: 47839
|
| |
|
|
|
|
|
|
|
| |
the system headers dir. This produces an annoying warning:
clang.cpp:883: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
I'm not sure how to remove it. :(
llvm-svn: 47836
|
| |
|
|
|
|
|
| |
OBJC_INCLUDE_PATH, and OBJCPLUS_INCLUDE_PATH environment variables.
Patch by Sam Bishop!
llvm-svn: 47785
|
| |
|
|
| |
llvm-svn: 47646
|
| |
|
|
| |
llvm-svn: 47560
|
| |
|
|
| |
llvm-svn: 47543
|
| |
|
|
|
|
| |
--analyze-function option to analyze specific functions.
llvm-svn: 47498
|
| |
|
|
|
|
| |
--analyze-function option to dump/view the CFGs of specific functions.
llvm-svn: 47497
|
| |
|
|
|
|
|
|
|
|
|
|
| |
function. Will
probably make this a separate command line option later.
Added "--analyze-function" option to the driver to (gradually) allow different
analyses to only be run on specific functions. Currently only --grsimple uses
this option.
llvm-svn: 47285
|
| |
|
|
| |
llvm-svn: 47186
|
| |
|
|
|
|
|
|
| |
--grsimple except that it visualizes the ExplodedGraph using dot and
outputs the current function being analyzed. --grsimple is now silent
except when it emits diagnostics.
llvm-svn: 47146
|
| |
|
|
|
|
| |
Moved driver logic for --grsimple to GRSimpleVals.cpp.
llvm-svn: 47137
|
| |
|
|
|
|
| |
Parser::ParseStructDeclaration() to the driver.
llvm-svn: 46974
|
| |
|
|
|
|
| |
Modified the driver to pass the Diagnostic object to GRConstants.
llvm-svn: 46847
|
| |
|
|
|
|
| |
constructs used in "windows.h".
llvm-svn: 46838
|
| |
|
|
|
|
|
| |
eliminating a bunch of forwarding methods and generally
simplifying things.
llvm-svn: 46792
|
| |
|
|
|
|
|
|
|
| |
level code in clang. This is a cleanup, but does implement "-o" for
-emit-llvm. One effect of this is that "clang foo.c -emit-llvm" will now
emit into foo.ll instead of stdout. Use "clang foo.c -emit-llvm -o -" or
"clang < foo.c -emit-llvm" to get the old behavior.
llvm-svn: 46791
|