summaryrefslogtreecommitdiffstats
path: root/clang/Driver
Commit message (Collapse)AuthorAgeFilesLines
...
* When emitting HTML messages, take into account margin fusing due to tabs.Ted Kremenek2008-03-311-1/+8
| | | | llvm-svn: 48998
* Inlined clang/Analysis/Analyses/GRSimpleVals.h into LocalCheckers.h and removedTed Kremenek2008-03-313-17/+35
| | | | | | | | | | 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
* Disable timing diagnostics for GRSimpleVals.Ted Kremenek2008-03-311-0/+4
| | | | llvm-svn: 48981
* Only have the rewriter produce a file when there are no errors.Steve Naroff2008-03-281-30/+39
| | | | llvm-svn: 48926
* Add some of Ted's recent work to the VC++ project file.Steve Naroff2008-03-271-1/+2
| | | | | | Fix a couple bozo bugs in the rewriter. llvm-svn: 48903
* Collect all the preamble code and don't insert it until the end. Steve Naroff2008-03-271-79/+75
| | | | llvm-svn: 48899
* For HTMLDiagnostics, when emitting the name of the directory, substitute the ↵Ted Kremenek2008-03-271-2/+10
| | | | | | current working directory for "." llvm-svn: 48888
* Add html::EscapeText for std::string; use this function to escape text in ↵Ted Kremenek2008-03-271-3/+3
| | | | | | message bubbles. llvm-svn: 48884
* Don't emit any timings for GRSimple if the CFG is not going to be built.Ted Kremenek2008-03-271-0/+3
| | | | llvm-svn: 48882
* Output directory as well as file name.Ted Kremenek2008-03-271-1/+2
| | | | llvm-svn: 48870
* Added <h3> tag in HTML file output that contains the name of the source file.Ted Kremenek2008-03-271-1/+12
| | | | llvm-svn: 48869
* Added "HTMLDiagnostic", a generic DiagnosticClient (that also implements ↵Ted Kremenek2008-03-273-16/+303
| | | | | | | | PathDiagnostic) so that all diagnostics can be piped to HTML files instead of as text diagnostics using --html-diags. llvm-svn: 48865
* Fixed copy-paste error.Ted Kremenek2008-03-271-1/+1
| | | | llvm-svn: 48863
* Add a couple files to VC++ project and cleanup an "#if 0".Steve Naroff2008-03-241-2/+0
| | | | llvm-svn: 48748
* debian amd64 testingAndrew Lenharth2008-03-241-1/+4
| | | | llvm-svn: 48745
* debian ia32 testingAndrew Lenharth2008-03-241-0/+5
| | | | llvm-svn: 48742
* Teach the rewriter how to respect the -o option.Chris Lattner2008-03-223-8/+32
| | | | llvm-svn: 48669
* Added HTML highlighting for ranges.Ted Kremenek2008-03-191-2/+32
| | | | llvm-svn: 48572
* Misc. cleanups to HTML printing: make code rendered using tables; addTed Kremenek2008-03-191-14/+8
| | | | | | better div positioning for messages. llvm-svn: 48555
* Initial experimentation with adding boxed "annotations" to HTMLized source.Ted Kremenek2008-03-193-7/+168
| | | | llvm-svn: 48540
* Moved generation of html header/footer with builtin CSS to the rewriter library.Ted Kremenek2008-03-191-33/+1
| | | | llvm-svn: 48537
* More cleanups to the HTML rewriter (with line formatting), with betterTed Kremenek2008-03-191-7/+14
| | | | | | pretty-printing of line numbers. llvm-svn: 48533
* More cleanups to HTML rewriter API: remove the InsertTag method; was too ↵Ted Kremenek2008-03-191-11/+21
| | | | | | | | | complicated and clients can achieve a cleaner design just by inserting tags directly. Reserve the "html" namespace for meta-level operations (e.g., escaping text, etc.) llvm-svn: 48524
* More HTML rewriter cleanups. Preliminary CSS support in code pretty-printing.Ted Kremenek2008-03-181-4/+17
| | | | llvm-svn: 48518
* Some cleanups to the HTMLRewrite API. Added support for printing out lineTed Kremenek2008-03-181-3/+4
| | | | | | numbers (more work to be done on aesthetics). llvm-svn: 48512
* Added HTML pretty-printer.Ted Kremenek2008-03-181-0/+62
| | | | llvm-svn: 48507
* Added the beginning of a set of rewriter functions for pretty-printing sourceTed Kremenek2008-03-182-1/+10
| | | | | | | code as HTML. Added a new driver option "--emit-html" to dump the source of the main input file as HTML. llvm-svn: 48505
* Fix <rdar://problem/5716940> rewriter generates invalid C code when no ↵Steve Naroff2008-03-181-1/+2
| | | | | | selector found. llvm-svn: 48479
* Wrap up __NSConstantStringImpl (the replacement for ↵Steve Naroff2008-03-181-7/+5
| | | | | | __builtin___CFStringMakeConstantString). llvm-svn: 48477
* clean up iteration over propertydecls.Chris Lattner2008-03-171-6/+7
| | | | llvm-svn: 48435
* clean up property memory allocation to move it into the ast classesChris Lattner2008-03-171-2/+2
| | | | | | like the rest of the classes. llvm-svn: 48434
* make property addition work list all other "add" methods. Do Chris Lattner2008-03-161-3/+3
| | | | | | the allocation in the class, not in sema. llvm-svn: 48433
* Convert more counts to be zero based instead of -1 based, make them unsigned.Chris Lattner2008-03-162-7/+8
| | | | llvm-svn: 48429
* minor cleanups, make getNumInstanceMethods always return unsigned.Chris Lattner2008-03-161-7/+5
| | | | llvm-svn: 48423
* Make the parameter count of ObjCMethodDecl unsigned, youChris Lattner2008-03-162-3/+3
| | | | | | can't have negative arguments. llvm-svn: 48407
* switch the rest of the C decl classes to do their Chris Lattner2008-03-161-2/+4
| | | | | | allocation through ASTContext. llvm-svn: 48403
* move the ASTContext argument to be first in the argument list of Chris Lattner2008-03-151-15/+14
| | | | | | all Create methods. llvm-svn: 48398
* Switch over functiondecl. This makes it obvious that the ASTContextChris Lattner2008-03-151-10/+11
| | | | | | argument to Create should be first, not last. llvm-svn: 48397
* switch the VarDecl allocation model to go through ASTContext.Chris Lattner2008-03-151-2/+2
| | | | llvm-svn: 48396
* start switching decls over to using an allocator controlled by ASTContext. Chris Lattner2008-03-151-31/+40
| | | | | | | | | | Right now only some ctors are switched over. I need to switch them all over so I can change the dtor over. This lets us experiment with region allocation and other things in the future. llvm-svn: 48390
* Link against the correct ObjC string class ↵Steve Naroff2008-03-151-5/+4
| | | | | | (__CFConstantStringClassReference) and fix length computation (removing a FIXME). llvm-svn: 48384
* Remove ObjC rewriter dependency on GCC's __builtin___CFStringMakeConstantString.Steve Naroff2008-03-151-64/+69
| | | | llvm-svn: 48383
* Emit warnings for undefined control-flow.Ted Kremenek2008-03-141-4/+7
| | | | llvm-svn: 48368
* Path-sensitive analyses no longer take a FunctionDecl, but any Decl representingTed Kremenek2008-03-141-30/+68
| | | | | | | | | 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
* Only compute targetinfo once and don't leak it. Patch by Sam Bishop!Chris Lattner2008-03-141-13/+12
| | | | llvm-svn: 48358
* The LiveVariables analysis no longer requires a FunctionDecl&; this allows itTed Kremenek2008-03-131-2/+2
| | | | | | to be run on other declarations of blocks of code (e.g., Objective-C methods.) llvm-svn: 48339
* Added bandaid support in CFG construction for ObjCForEachStmt and ObjCAtTryStmt:Ted Kremenek2008-03-131-2/+7
| | | | | | | | | | 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
* Two fixes to RewriteTest::RewriteObjCIvarRefExpr():Steve Naroff2008-03-121-7/+8
| | | | | | | | - For explicit ivar refers, make sure the cast is propagated to the AST. - Don't free the base (since it is still in use). This fixes the recent regression to test/Rewriter/objc-ivar-receiver-1.m. llvm-svn: 48309
* Minor aesthetic improvement (after I reviewed my last commit).Steve Naroff2008-03-121-4/+2
| | | | llvm-svn: 48304
* Avoid using the "unnamed struct field" extension (enabled with ↵Steve Naroff2008-03-121-17/+11
| | | | | | -fms-extensions). This feature/extension silently does the wrong thing in g++. As far as I can tell, g++ simply throws the field away entirely (note that it works fine with gcc). Since I am now always casting the object (for other reasons), accessing protected/public fields simply requires the cast refer to the defining class. This solution is simpler all around (thanks to Chris for suggesting it). llvm-svn: 48302
OpenPOWER on IntegriCloud