summaryrefslogtreecommitdiffstats
path: root/clang/Driver
Commit message (Collapse)AuthorAgeFilesLines
...
* give location info to another paren expr.Chris Lattner2008-05-281-1/+2
| | | | llvm-svn: 51646
* minor changes, collect the range of an expr before rewriting the subexprsChris Lattner2008-05-231-14/+19
| | | | | | no functionality change. llvm-svn: 51497
* Make sure method definitions get output with -ast-dump.Steve Naroff2008-05-231-0/+5
| | | | llvm-svn: 51494
* Update driver include paths to work on darwin10.Ted Kremenek2008-05-221-0/+12
| | | | llvm-svn: 51431
* Explicitly #include Support/Streams.h when using llvm::cout and friends.Dan Gohman2008-05-211-0/+1
| | | | llvm-svn: 51391
* Fix the destruction "properly" in the sense that we actually destroy the Eli Friedman2008-05-211-1/+4
| | | | | | | ASTs. This is a hack, but I haven't considered how we really want to do this. llvm-svn: 51364
* Fix rewriter bug <rdar://problem/5929344> clang ObjC rewriter: "extern int ↵Steve Naroff2008-05-151-4/+4
| | | | | | | | __CFConstantStringClassReference[];" should be extern "C". Have clang predefine OBJC_NEW_PROPERTIES (which is what gcc does). llvm-svn: 51163
* Implement -rewrite-macros, which is a crazy macro expander that expandsChris Lattner2008-05-101-9/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | macros but doesn't expand #includes, remove comments, remove #defines etc. For example: ---- #include <stdio.h> #define bbaa #define funclike(x) x "a" x "b" x bbaa bbaa #if 1 funclike("gar") foo /*blah*/ bar bar #endif #if 0 funclike() #endif ---- rewrites to: ---- #include <stdio.h> #define bbaa #define funclike(x) x "a" x "b" x /*bbaa bbaa*/ #if 1 "gar" "a" "gar" "b" "gar"/*funclike*//*("gar")*/ foo /*blah*/ bar bar #endif #if 0 /*funclike()*/ #endif ---- llvm-svn: 50925
* make #if 0 code compile, even though it still isn't very useful.Chris Lattner2008-05-093-15/+7
| | | | llvm-svn: 50920
* Fix <rdar://problem/5924225> clang ObjC rewriter: objc_exception_throw ↵Steve Naroff2008-05-091-1/+1
| | | | | | declaration in preamble does not match objc/objc-exception.h. llvm-svn: 50915
* Make sure the prototype for objc_msgSend_fpret() returns a double.Steve Naroff2008-05-081-3/+3
| | | | llvm-svn: 50873
* Fix <rdar://problem/5879237> clang objc rewriter: ivars not accessible in ↵Steve Naroff2008-05-081-34/+33
| | | | | | structure generated for class llvm-svn: 50862
* Added -g command line options to clang for generating source level debug ↵Sanjiv Gupta2008-05-082-2/+9
| | | | | | information. This patch currently enables generation of line number debug information (stoppoints) and region begin/end debug information. The new files CGDebugInfo.h and CGDebugInfo.cpp implements the debug info manager class CGDebugInfo. llvm-svn: 50848
* Remove the ending "." from clang options descriptions.Sanjiv Gupta2008-05-081-23/+23
| | | | llvm-svn: 50847
* start implementation of a macro rewriter, this is currently just stubbed out.Chris Lattner2008-05-083-2/+89
| | | | llvm-svn: 50845
* Fix <rdar://problem/5887874> clang ObjC rewriter: Use a different name for ↵Steve Naroff2008-05-071-3/+3
| | | | | | 'offsetof' macro llvm-svn: 50832
* This patch introduces declaration of getter methods for ObjC2'sFariborz Jahanian2008-05-071-4/+4
| | | | | | | properties. Couple of property tests will fail with this patch. Will fix them next. llvm-svn: 50818
* Fix <rdar://problem/5908598> clang ObjC rewriter: typo in #pragma at endSteve Naroff2008-05-071-1/+1
| | | | llvm-svn: 50790
* Improve HTMLDiagnostics by understanding the "Below" hint.Ted Kremenek2008-05-061-7/+30
| | | | llvm-svn: 50783
* Fix <rdar://problem/5879237> clang objc rewriter: ivars not accessible in ↵Steve Naroff2008-05-061-3/+29
| | | | | | structure generated for class llvm-svn: 50781
* Print ObjC methods of ObjC classes.Fariborz Jahanian2008-05-061-0/+8
| | | | llvm-svn: 50779
* Fix <rdar://problem/5888515> clang ObjC rewriter: Use objc.h for ↵Steve Naroff2008-05-061-15/+17
| | | | | | declarations instead of putting them in the preamble? llvm-svn: 50774
* Fix <rdar://problem/5881225> clang ObjC Rewriter: Protocol structure defined ↵Steve Naroff2008-05-061-1/+11
| | | | | | twice when two interfaces use it in same file llvm-svn: 50767
* Patch to refactor setter/getter names of property attributes into SelectorFariborz Jahanian2008-05-061-2/+2
| | | | | | | (was IdentifierInfo * before). This will make method declartations whole lot easier. llvm-svn: 50747
* Add support for -Wimplicit-function-declaration, rdar://5907433Chris Lattner2008-05-051-0/+7
| | | | llvm-svn: 50672
* percolate @optional/@required protocols down to ASTs forFariborz Jahanian2008-05-051-1/+5
| | | | | | properties declared in the protocol. llvm-svn: 50662
* Fix PR2281: these two warnings should be promoted to error onChris Lattner2008-05-041-0/+9
| | | | | | | pedantic error. Perhaps I should add a class of 'extension' that is 'extension that warns by default', which would be cleaner. llvm-svn: 50633
* Output better paths to display in bug reports and compute a commonTed Kremenek2008-05-021-5/+6
| | | | | | prefix for all files. llvm-svn: 50592
* When running the reference count checker twice (GC and non-GC mode), only emitTed Kremenek2008-05-021-4/+4
| | | | | | basic warnings (dead stores, null dereferences) on the first pass. llvm-svn: 50584
* added preliminary diagnostics in scan-build results to denote whetherTed Kremenek2008-04-302-7/+14
| | | | | | a CF memory leak occurred with GC enabled, etc. llvm-svn: 50507
* Provide the option to run the CF-retain checker in GC enabled mode.Ted Kremenek2008-04-293-24/+51
| | | | | | The transfer functions for the checker don't do anything special yet in GC mode. llvm-svn: 50394
* Add -fobjc-gc and -fobjc-gc-only options to the driver.Ted Kremenek2008-04-291-1/+20
| | | | | | Add corresponding enum in LangOptions. llvm-svn: 50387
* Better handling for directory names in HTML diagnostics. Work in progress.Ted Kremenek2008-04-241-1/+7
| | | | llvm-svn: 50234
* TranslationUnit now owns IdentifierTable, TargetInfo, and Selectors objectsTed Kremenek2008-04-233-15/+24
| | | | | | | | | | | | | | | | 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
* Patch to build AST for property implementation declarations andFariborz Jahanian2008-04-231-2/+24
| | | | | | to print declaration from its AST. llvm-svn: 50117
* PathDiagnosticClients now retain ownership of passed PathDiagnostics, requiringTed Kremenek2008-04-221-6/+34
| | | | | | | | | | them to not be stack-allocated. HTMLDiagnostics now batches PathDiagnostics before emitting HTML in its dtor. This is a workaround for a problem when we trampled the Preprocessor state when highlighting macros (sometimes resulting in an assertion failure). llvm-svn: 50102
* html::EscapeText (using the Rewriter) now replaces tabs by default.Ted Kremenek2008-04-201-6/+1
| | | | llvm-svn: 49982
* simplify the return of InitializePreprocessor to be bool instead of a fileidChris Lattner2008-04-191-10/+9
| | | | llvm-svn: 49974
* simplify ownership of the predefines buffer.Chris Lattner2008-04-192-17/+7
| | | | llvm-svn: 49973
* Remove bogus cast (<rdar://problem/5874848> clang objc-rewriter: structure ↵Steve Naroff2008-04-181-1/+1
| | | | | | with list of protocols has wrong cast). llvm-svn: 49935
* Implement FIXME discoved by <rdar://problem/5874876> Rewriter: Explicit ivar ↵Steve Naroff2008-04-181-6/+5
| | | | | | refs outside a method are being rewritten llvm-svn: 49932
* Fix <rdar://problem/5874697> Rewriter: method arguments with complex types ↵Steve Naroff2008-04-181-6/+8
| | | | | | not being rewritten properly. llvm-svn: 49925
* Restore macro expansion for HTMLPrint by using the original Preprocessor.Ted Kremenek2008-04-181-1/+1
| | | | | | | This is a workaround until we figure out why a freshly create Preprocessor doesn't expand macros from headers. llvm-svn: 49897
* Fixed range highlighting bug in HTML diagnostics.Ted Kremenek2008-04-181-4/+2
| | | | llvm-svn: 49893
* class Preprocessor: Now owns the "predefines" char*; it deletes [] it in its ↵Ted Kremenek2008-04-176-65/+110
| | | | | | | | | | | | | | | | | 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
* Handle text escaping (e.g. & -> &amp;) last, to avoid interactions between ↵Chris Lattner2008-04-171-1/+1
| | | | | | 'replace' operations and insert operations. This fixes a problem with "&;&" on line 666 of the gcc.c example I sent out. llvm-svn: 49874
* Generate the Preprocessor using a local PreprocessorFactory object.Ted Kremenek2008-04-171-3/+32
| | | | | | | While this adds no extra functionality now, we will soon pass the PreprocessorFactory object to some ASTConsumers. llvm-svn: 49873
* Temporarily disable macro expansion in the HTML output of HTMLDiagnostics toTed Kremenek2008-04-171-1/+1
| | | | | | avoid corrupting Preprocessor state. Working on a fix. llvm-svn: 49864
* HAve HTMLDiagnostics use html::HighlightRange to highlight message ranges.Ted Kremenek2008-04-171-64/+6
| | | | llvm-svn: 49863
* Added property decl support for protocols.Fariborz Jahanian2008-04-171-119/+71
| | | | | | | 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
OpenPOWER on IntegriCloud