summaryrefslogtreecommitdiffstats
path: root/clang/Driver
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow redirecting text diagnostic printer output to any llvm::OStream, ratherNate Begeman2008-04-172-15/+15
| | | | | | than hard coding llvm::cerr. llvm-svn: 49860
* Addition of TranslationUnitDecl to the AST:Argyrios Kyrtzidis2008-04-171-16/+19
| | | | | | | | -Added TranslationUnitDecl class to serve as top declaration context -ASTContext gets a TUDecl member and a getTranslationUnitDecl() function -All ScopedDecls get the TUDecl as DeclContext when declared at global scope llvm-svn: 49855
* This patch adds support for declaraing properties in categories,Fariborz Jahanian2008-04-161-0/+63
| | | | | | just as they are declared in objc classes. llvm-svn: 49817
* Added fixme.Ted Kremenek2008-04-161-0/+4
| | | | llvm-svn: 49797
* Hook up HTMLDiagnostics to use Chris's new syntax highlighting. --html-diagsTed Kremenek2008-04-166-26/+48
| | | | | | | 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
* split syntax highlighting of macros from keywords and comments,Chris Lattner2008-04-161-1/+3
| | | | | | | | | allowing us to use a cheaper means to highlight keywords and making it so that comments won't foul up macro expansions. Start highlighting macro expansions. llvm-svn: 49779
* Add a mode of hackily syntax highlighting comments. This has a number ofChris Lattner2008-04-163-11/+19
| | | | | | | | 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
* Add -o support for -emit-html, make it not produce a file on an error.Chris Lattner2008-04-163-13/+37
| | | | llvm-svn: 49777
* Remove "--html-test" driver option and its corresponding code; all of thisTed Kremenek2008-04-163-189/+3
| | | | | | functionality has been migrated into "--emit-html" and "--html-diags". llvm-svn: 49776
* speed up -emit-html in a release build by 6.5% by avoiding std::string.Chris Lattner2008-04-161-2/+4
| | | | llvm-svn: 49764
* Remove FileVarDecl and BlockVarDecl. They are replaced by ↵Steve Naroff2008-04-151-5/+5
| | | | | | | | VarDecl::isBlockVarDecl() and VarDecl::isFileVarDecl(). This is a fairly mechanical/large change. As a result, I avoided making any changes/simplifications that weren't directly related. I did break two Analysis tests. I also have a couple FIXME's in UninitializedValues.cpp. Ted, can you take a look? If the bug isn't obvious, I am happy to dig in and fix it (since I broke it). llvm-svn: 49748
* For HTML diagnostics, output more information about a bug report.Ted Kremenek2008-04-151-5/+17
| | | | llvm-svn: 49742
* Handle "__private_extern__" storage class when printing FunctionDecls.Ted Kremenek2008-04-151-0/+1
| | | | llvm-svn: 49706
* New AST representation for each objc2's property declaration.Fariborz Jahanian2008-04-141-9/+2
| | | | llvm-svn: 49699
* Remove bogus token...Steve Naroff2008-04-141-1/+1
| | | | llvm-svn: 49695
* Rename a file and update the Xcode project.Steve Naroff2008-04-141-0/+0
| | | | llvm-svn: 49693
* Rename RewriteTest->RewriteObjC.Steve Naroff2008-04-142-66/+66
| | | | llvm-svn: 49692
* Fix comment.Steve Naroff2008-04-141-1/+1
| | | | llvm-svn: 49688
* Use isFromMainFile instead of comparing FileIDs directly.Ted Kremenek2008-04-141-1/+1
| | | | llvm-svn: 49687
* Use SourceManager::isFromMainFile()Ted Kremenek2008-04-141-1/+1
| | | | llvm-svn: 49685
* Convert over to new SourceManager::isFromMainFile() instead of doing directTed Kremenek2008-04-141-8/+4
| | | | | | FileID comparison (fixes insidious corner case with chunks). llvm-svn: 49684
* HTMLDiagnostics now uses the new "getCanonicalID()", "isFromMainFileID()" ↵Ted Kremenek2008-04-141-23/+21
| | | | | | | | | methods from SourceManager when doing HTML pretty-printing. This resolves an insidious bug when presenting error reports that only occurred in large source files. llvm-svn: 49683
* Added driver option "-checker-opt-analyze-headers" to force the staticTed Kremenek2008-04-143-23/+41
| | | | | | analyzer to analyze functions declared in header files. llvm-svn: 49675
* Handle -D and -U options in order, so that they can cancel each other out whenSam Bishop2008-04-141-7/+10
| | | | | | intermixed. llvm-svn: 49645
* AST generation for objc2's property declarations.Fariborz Jahanian2008-04-111-1/+1
| | | | llvm-svn: 49565
* Fix rdar://5843510 don't assert and die when an invalid outputChris Lattner2008-04-111-4/+12
| | | | | | file is specified, print a happy little error message. llvm-svn: 49518
* Fix some bonehead bugs in summary generation in CFRefCount.Ted Kremenek2008-04-101-1/+2
| | | | llvm-svn: 49503
* Refactored all logic to run the GRSimpleVals and CFRef checker into a commonTed Kremenek2008-04-103-97/+119
| | | | | | | | code path in the clang driver. Renamed options --grsimple to -checker-simple and -check-cfref to -checker-cfref. llvm-svn: 49500
* For -emit-html, use the Rewriter to expand tabs.Ted Kremenek2008-04-081-1/+1
| | | | llvm-svn: 49409
* Don't expand tabs in EscapeText, but rather expand them when writing outTed Kremenek2008-04-081-2/+7
| | | | | | | the HTML file. This should reduce the amount of memory pressure on the rewriter for files that have a lot of tabs. llvm-svn: 49406
* Improve range highlighting in HTMLDiagnostic to correctly highlight rangesTed Kremenek2008-04-081-0/+56
| | | | | | that span multiple lines by inserting multiple "</span>" and "<span>" tags. llvm-svn: 49403
* silence some warnings when assertions are disabled.Chris Lattner2008-04-082-14/+14
| | | | llvm-svn: 49372
* Add support for C++ default arguments, and rework Parse-Sema Chris Lattner2008-04-081-0/+9
| | | | | | | | interaction for function parameters, fixing PR2046. Patch by Doug Gregor! llvm-svn: 49369
* Fix rdar://5846705: "clang -E foo.c -o foo.i" should remove foo.i on error.Chris Lattner2008-04-081-9/+26
| | | | llvm-svn: 49368
* This patch contains these changes:Chris Lattner2008-04-061-4/+2
| | | | | | | | | | -Renamed ContextDecl -> DeclContext -Removed DeclContext pointer from FieldDecl -EnumDecl inherits from DeclContext, instead of TagDecl Patch by Argiris Kirtzidis! llvm-svn: 49261
* Fix handling of implicit int, resolving PR2012 and reverting (andChris Lattner2008-04-051-0/+4
| | | | | | subsuming) my patch for PR1999. llvm-svn: 49251
* Avoid implicitly including any header files (requested by ckane).Steve Naroff2008-04-041-4/+2
| | | | llvm-svn: 49241
* Rewrite @package (an ObjC 2.0 idiom).Steve Naroff2008-04-041-0/+1
| | | | llvm-svn: 49238
* Fix MS-specific bug in RewriteTest::RewriteObjCMethodDecl().Steve Naroff2008-04-041-3/+2
| | | | llvm-svn: 49237
* Introduce ContextDecl, patch by Argiris Kirtzidis!Chris Lattner2008-04-041-18/+31
| | | | | | | | | | | -Added ContextDecl (no TranslationUnitDecl) -ScopedDecl class has a ContextDecl member -FieldDecl class has a ContextDecl member, so that a Field or a ObjCIvar can be traced back to their RecordDecl/ObjCInterfaceDecl easily -FunctionDecl, ObjCMethodDecl, TagDecl, ObjCInterfaceDecl inherit from ContextDecl. With TagDecl as ContextDecl, enum constants have a EnumDecl as their context. -Moved Decl class to a "DeclBase.h" along with ContextDecl class -CurContext is handled by Sema llvm-svn: 49208
* Use logical line number for BUGLINE.Ted Kremenek2008-04-031-7/+5
| | | | llvm-svn: 49178
* Added guard for printing out PathDiagnostics whose last element ends withTed Kremenek2008-04-031-1/+5
| | | | | | a piece with a SourceLocation that does not have a FileID. llvm-svn: 49151
* Call delete on the deserialized TranslationUnit object.Sam Bishop2008-04-031-0/+2
| | | | llvm-svn: 49136
* Added path sequence numbers in HTML output of PathDiagnostics.Ted Kremenek2008-04-021-0/+3
| | | | llvm-svn: 49116
* Embed BUGLINE, BUGFILE, BUGPATHLENGTH in the emitted HTML file.Ted Kremenek2008-04-021-14/+32
| | | | llvm-svn: 49114
* Put "BUGDESC" comment tag on its own line.Ted Kremenek2008-04-021-1/+1
| | | | llvm-svn: 49103
* Embed "DESC" tag in HTML reports.Ted Kremenek2008-04-021-0/+10
| | | | llvm-svn: 49084
* Update to match simplified llvm MemoryBuffer interfaces for files.Chris Lattner2008-04-011-4/+2
| | | | llvm-svn: 49042
* Embed linkable IDs in message bubbles.Ted Kremenek2008-03-311-4/+14
| | | | llvm-svn: 49005
* Better handling for tabs with message bubbles.Ted Kremenek2008-03-312-6/+8
| | | | llvm-svn: 49001
OpenPOWER on IntegriCloud