Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Allow redirecting text diagnostic printer output to any llvm::OStream, rather | Nate Begeman | 2008-04-17 | 2 | -15/+15 | |
| | | | | | | than hard coding llvm::cerr. llvm-svn: 49860 | |||||
* | Addition of TranslationUnitDecl to the AST: | Argyrios Kyrtzidis | 2008-04-17 | 1 | -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 Jahanian | 2008-04-16 | 1 | -0/+63 | |
| | | | | | | just as they are declared in objc classes. llvm-svn: 49817 | |||||
* | Added fixme. | Ted Kremenek | 2008-04-16 | 1 | -0/+4 | |
| | | | | llvm-svn: 49797 | |||||
* | Hook up HTMLDiagnostics to use Chris's new syntax highlighting. --html-diags | Ted Kremenek | 2008-04-16 | 6 | -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 Lattner | 2008-04-16 | 1 | -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 of | Chris Lattner | 2008-04-16 | 3 | -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 Lattner | 2008-04-16 | 3 | -13/+37 | |
| | | | | llvm-svn: 49777 | |||||
* | Remove "--html-test" driver option and its corresponding code; all of this | Ted Kremenek | 2008-04-16 | 3 | -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 Lattner | 2008-04-16 | 1 | -2/+4 | |
| | | | | llvm-svn: 49764 | |||||
* | Remove FileVarDecl and BlockVarDecl. They are replaced by ↵ | Steve Naroff | 2008-04-15 | 1 | -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 Kremenek | 2008-04-15 | 1 | -5/+17 | |
| | | | | llvm-svn: 49742 | |||||
* | Handle "__private_extern__" storage class when printing FunctionDecls. | Ted Kremenek | 2008-04-15 | 1 | -0/+1 | |
| | | | | llvm-svn: 49706 | |||||
* | New AST representation for each objc2's property declaration. | Fariborz Jahanian | 2008-04-14 | 1 | -9/+2 | |
| | | | | llvm-svn: 49699 | |||||
* | Remove bogus token... | Steve Naroff | 2008-04-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 49695 | |||||
* | Rename a file and update the Xcode project. | Steve Naroff | 2008-04-14 | 1 | -0/+0 | |
| | | | | llvm-svn: 49693 | |||||
* | Rename RewriteTest->RewriteObjC. | Steve Naroff | 2008-04-14 | 2 | -66/+66 | |
| | | | | llvm-svn: 49692 | |||||
* | Fix comment. | Steve Naroff | 2008-04-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 49688 | |||||
* | Use isFromMainFile instead of comparing FileIDs directly. | Ted Kremenek | 2008-04-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 49687 | |||||
* | Use SourceManager::isFromMainFile() | Ted Kremenek | 2008-04-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 49685 | |||||
* | Convert over to new SourceManager::isFromMainFile() instead of doing direct | Ted Kremenek | 2008-04-14 | 1 | -8/+4 | |
| | | | | | | FileID comparison (fixes insidious corner case with chunks). llvm-svn: 49684 | |||||
* | HTMLDiagnostics now uses the new "getCanonicalID()", "isFromMainFileID()" ↵ | Ted Kremenek | 2008-04-14 | 1 | -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 static | Ted Kremenek | 2008-04-14 | 3 | -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 when | Sam Bishop | 2008-04-14 | 1 | -7/+10 | |
| | | | | | | intermixed. llvm-svn: 49645 | |||||
* | AST generation for objc2's property declarations. | Fariborz Jahanian | 2008-04-11 | 1 | -1/+1 | |
| | | | | llvm-svn: 49565 | |||||
* | Fix rdar://5843510 don't assert and die when an invalid output | Chris Lattner | 2008-04-11 | 1 | -4/+12 | |
| | | | | | | file is specified, print a happy little error message. llvm-svn: 49518 | |||||
* | Fix some bonehead bugs in summary generation in CFRefCount. | Ted Kremenek | 2008-04-10 | 1 | -1/+2 | |
| | | | | llvm-svn: 49503 | |||||
* | Refactored all logic to run the GRSimpleVals and CFRef checker into a common | Ted Kremenek | 2008-04-10 | 3 | -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 Kremenek | 2008-04-08 | 1 | -1/+1 | |
| | | | | llvm-svn: 49409 | |||||
* | Don't expand tabs in EscapeText, but rather expand them when writing out | Ted Kremenek | 2008-04-08 | 1 | -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 ranges | Ted Kremenek | 2008-04-08 | 1 | -0/+56 | |
| | | | | | | that span multiple lines by inserting multiple "</span>" and "<span>" tags. llvm-svn: 49403 | |||||
* | silence some warnings when assertions are disabled. | Chris Lattner | 2008-04-08 | 2 | -14/+14 | |
| | | | | llvm-svn: 49372 | |||||
* | Add support for C++ default arguments, and rework Parse-Sema | Chris Lattner | 2008-04-08 | 1 | -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 Lattner | 2008-04-08 | 1 | -9/+26 | |
| | | | | llvm-svn: 49368 | |||||
* | This patch contains these changes: | Chris Lattner | 2008-04-06 | 1 | -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 (and | Chris Lattner | 2008-04-05 | 1 | -0/+4 | |
| | | | | | | subsuming) my patch for PR1999. llvm-svn: 49251 | |||||
* | Avoid implicitly including any header files (requested by ckane). | Steve Naroff | 2008-04-04 | 1 | -4/+2 | |
| | | | | llvm-svn: 49241 | |||||
* | Rewrite @package (an ObjC 2.0 idiom). | Steve Naroff | 2008-04-04 | 1 | -0/+1 | |
| | | | | llvm-svn: 49238 | |||||
* | Fix MS-specific bug in RewriteTest::RewriteObjCMethodDecl(). | Steve Naroff | 2008-04-04 | 1 | -3/+2 | |
| | | | | llvm-svn: 49237 | |||||
* | Introduce ContextDecl, patch by Argiris Kirtzidis! | Chris Lattner | 2008-04-04 | 1 | -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 Kremenek | 2008-04-03 | 1 | -7/+5 | |
| | | | | llvm-svn: 49178 | |||||
* | Added guard for printing out PathDiagnostics whose last element ends with | Ted Kremenek | 2008-04-03 | 1 | -1/+5 | |
| | | | | | | a piece with a SourceLocation that does not have a FileID. llvm-svn: 49151 | |||||
* | Call delete on the deserialized TranslationUnit object. | Sam Bishop | 2008-04-03 | 1 | -0/+2 | |
| | | | | llvm-svn: 49136 | |||||
* | Added path sequence numbers in HTML output of PathDiagnostics. | Ted Kremenek | 2008-04-02 | 1 | -0/+3 | |
| | | | | llvm-svn: 49116 | |||||
* | Embed BUGLINE, BUGFILE, BUGPATHLENGTH in the emitted HTML file. | Ted Kremenek | 2008-04-02 | 1 | -14/+32 | |
| | | | | llvm-svn: 49114 | |||||
* | Put "BUGDESC" comment tag on its own line. | Ted Kremenek | 2008-04-02 | 1 | -1/+1 | |
| | | | | llvm-svn: 49103 | |||||
* | Embed "DESC" tag in HTML reports. | Ted Kremenek | 2008-04-02 | 1 | -0/+10 | |
| | | | | llvm-svn: 49084 | |||||
* | Update to match simplified llvm MemoryBuffer interfaces for files. | Chris Lattner | 2008-04-01 | 1 | -4/+2 | |
| | | | | llvm-svn: 49042 | |||||
* | Embed linkable IDs in message bubbles. | Ted Kremenek | 2008-03-31 | 1 | -4/+14 | |
| | | | | llvm-svn: 49005 | |||||
* | Better handling for tabs with message bubbles. | Ted Kremenek | 2008-03-31 | 2 | -6/+8 | |
| | | | | llvm-svn: 49001 |