summaryrefslogtreecommitdiffstats
path: root/clang/Driver
Commit message (Collapse)AuthorAgeFilesLines
...
* Use the "used" attribute. Without it, g++ removes all the meta-data:-( This ↵Steve Naroff2008-03-121-11/+11
| | | | | | doesn't happen when compiling straight C code. llvm-svn: 48287
* -Add missing visitor for ObjCIvarRefExpr.Steve Naroff2008-03-121-2/+7
| | | | | | -Wrap objc runtime calls with "extern "C"" (for now). llvm-svn: 48284
* Remove more dependencies on C "flexible array member" idiom (when generating ↵Steve Naroff2008-03-121-28/+35
| | | | | | meta-data). llvm-svn: 48271
* Make ivar rewrite C++ friendly (since C++ forces a unified namespace for ↵Steve Naroff2008-03-121-30/+36
| | | | | | typedefs/structures). The previous version of the rewriter generated both a type def and structure def for each class (which doesn't fly in C++). llvm-svn: 48266
* Make "super" rewrite for class methods C++ friendly (follow-up from last ↵Steve Naroff2008-03-111-7/+16
| | | | | | commit). llvm-svn: 48235
* Make "super" rewrite C++ friendly (since it doesn't support Compound Literals).Steve Naroff2008-03-111-9/+47
| | | | llvm-svn: 48230
* Generate meta-data in a C++ compatible way (remove 2 dependencies on C ↵Steve Naroff2008-03-111-23/+26
| | | | | | "flexible array member" idiom and perform some extra casts). llvm-svn: 48202
* Missed a couple "_IMPL" suffixes.Steve Naroff2008-03-101-0/+4
| | | | llvm-svn: 48191
* Fix dangling pointer and give the implementation struct for a class a unique ↵Steve Naroff2008-03-101-52/+58
| | | | | | name. llvm-svn: 48190
* Pass LangOptions to RewriteTest().Steve Naroff2008-03-103-6/+22
| | | | llvm-svn: 48172
* Add some missing #includes for GCC mainline, patch by Shantonu Sen!Chris Lattner2008-03-101-1/+1
| | | | llvm-svn: 48153
* Fix a ted-oChris Lattner2008-03-091-1/+1
| | | | llvm-svn: 48089
* simplify triple processing code now that there can be only one arch specified.Chris Lattner2008-03-091-44/+13
| | | | llvm-svn: 48066
* Added --trim-path-graph to the driver to trim paths from the ExplodedGraphTed Kremenek2008-03-073-8/+14
| | | | | | | | | | | | | | | | 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
* Added boilerplate to execute the CF reference count checker (which isn't yet ↵Ted Kremenek2008-03-063-0/+46
| | | | | | implemented). llvm-svn: 47982
* remove the source location arguments to various target query methods.Chris Lattner2008-03-051-3/+2
| | | | llvm-svn: 47954
* Remove the first layer of support for "portability" warnings. This is Chris Lattner2008-03-051-10/+5
| | | | | | | | | | | | | | | 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
* avoid a warning.Chris Lattner2008-03-031-1/+2
| | | | llvm-svn: 47839
* Find clang headers in the clang headers dir, search it before Chris Lattner2008-03-031-4/+15
| | | | | | | | | 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
* Add support for the CPATH, C_INCLUDE_PATH, CPLUS_INCLUDE_PATH,Chris Lattner2008-03-011-4/+35
| | | | | | | OBJC_INCLUDE_PATH, and OBJCPLUS_INCLUDE_PATH environment variables. Patch by Sam Bishop! llvm-svn: 47785
* fix an interaction between -isystem . and isysroot.Chris Lattner2008-02-261-2/+0
| | | | llvm-svn: 47646
* convert tabs to spaces, patch by Mike Stump!Chris Lattner2008-02-252-6/+6
| | | | llvm-svn: 47560
* enable digraphs for C94, thanks to Neil for pointing this out.Chris Lattner2008-02-251-1/+2
| | | | llvm-svn: 47543
* Modified clang driver option -dump-live-variables to (optionally) use theTed Kremenek2008-02-223-4/+6
| | | | | | --analyze-function option to analyze specific functions. llvm-svn: 47498
* clang driver options --dump-cfg and --view-cfg now (optionally) use theTed Kremenek2008-02-223-10/+18
| | | | | | --analyze-function option to dump/view the CFGs of specific functions. llvm-svn: 47497
* When running the GRSimpleVals analysis, skip functions that do notTed Kremenek2008-02-221-2/+4
| | | | | | appear in a file. llvm-svn: 47491
* For now, --grsimple skips analyzing functions in header files.Ted Kremenek2008-02-191-0/+4
| | | | llvm-svn: 47303
* --grsimple now reports the number of nodes in the ExplodedGraph forTed Kremenek2008-02-191-2/+2
| | | | | | | | | an analyzed function. GRExprEngine now records stores to "uninitialized lvalues" (which are sinks in the ExplodedGraph). llvm-svn: 47293
* Running -grsimple now emits diagnostics about the time spent analyzing each ↵Ted Kremenek2008-02-183-9/+41
| | | | | | | | | | | | 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
* A couple of msvc compile fixes from the ml; I haven't tested with msvc, Eli Friedman2008-02-161-0/+1
| | | | | | but the fixes are reasonable. llvm-svn: 47224
* Set Ubuntu 7.10 c++ include path.Lauro Ramos Venancio2008-02-151-0/+7
| | | | llvm-svn: 47186
* Added --grsimple-view option to clang driver; this is the same asTed Kremenek2008-02-153-6/+15
| | | | | | | | --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
* Renamed GRConstants => GRSimpleVals.Ted Kremenek2008-02-143-13/+13
| | | | | | Moved driver logic for --grsimple to GRSimpleVals.cpp. llvm-svn: 47137
* Move policy on unnamed fields (a Microsoft extension) from ↵Steve Naroff2008-02-111-0/+3
| | | | | | Parser::ParseStructDeclaration() to the driver. llvm-svn: 46974
* Fix http://llvm.org/bugs/show_bug.cgi?id=2013.Steve Naroff2008-02-111-1/+1
| | | | llvm-svn: 46972
* A bunch-o changes to fix <rdar://problem/5716046> incomplete implementation ↵Steve Naroff2008-02-082-1/+5
| | | | | | | | of ObjC class warning is incomplete As part of this fix, I made a low-level change to the text diagnostics machinery (to basically avoid printing duplicate source lines/carets when you have multiple diagnostics that refer to the same exact place). For now, this only happens with we don't have a source range (could be extended to support source ranges as well). llvm-svn: 46897
* Put back the top-level asm code; all tests pass now.Anders Carlsson2008-02-081-0/+6
| | | | llvm-svn: 46868
* Back out 46855 for now, it causes test failures on Darwin.Anders Carlsson2008-02-081-6/+0
| | | | llvm-svn: 46867
* Handle top-level asm declarations.Anders Carlsson2008-02-071-0/+6
| | | | llvm-svn: 46855
* Added proof-of-concept NULL pointer diagnostics to GRConstants.Ted Kremenek2008-02-073-5/+7
| | | | | | Modified the driver to pass the Diagnostic object to GRConstants. llvm-svn: 46847
* Implement -fms-extensions. This allows us to fuzzy parse non-standard MS ↵Steve Naroff2008-02-071-0/+6
| | | | | | constructs used in "windows.h". llvm-svn: 46838
* Make sure to propagate qualifiers through the member operator.Eli Friedman2008-02-061-1/+1
| | | | llvm-svn: 46830
* move the codegen ASTConsumer out of the driver into libcodegen,Chris Lattner2008-02-063-67/+2
| | | | | | | eliminating a bunch of forwarding methods and generally simplifying things. llvm-svn: 46792
* pull .ll and .bc writing out of the ASTConsumer destructors into some topChris Lattner2008-02-063-85/+70
| | | | | | | | | 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
* rename ASTSTreamer.{h|cpp} -> ParseAST.{h|cpp}Chris Lattner2008-02-062-2/+2
| | | | llvm-svn: 46786
* rewrite some of the type refinement code to eliminate dangling pointersChris Lattner2008-02-051-4/+1
| | | | | | simplify the code and generally make it more robust. llvm-svn: 46745
* Fix PR1966 by ignoring non-error diagnostics from system headers even if ↵Chris Lattner2008-02-032-15/+9
| | | | | | | | they are *mapped* onto errors. llvm-svn: 46686
* Minor API cleanup...Steve Naroff2008-02-011-1/+1
| | | | llvm-svn: 46649
* Remove temporary workaround (thanks to Ted for fixing ObjCAtCatchStmt so ↵Steve Naroff2008-02-011-3/+0
| | | | | | quickly:-). llvm-svn: 46648
* Fix two rewriter bugs with @catch.Steve Naroff2008-02-011-1/+18
| | | | | | | - Support @catch(...), rather than crash:-) - Make sure all catch bodies get rewritten. This "fix" is really a workaround until the iterator for the "try" AST is fixed. Will fix this in a separate commit. llvm-svn: 46644
OpenPOWER on IntegriCloud