summaryrefslogtreecommitdiffstats
path: root/clang/lib/Rewrite/FrontendActions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Split library clangRewrite into clangRewriteCore and clangRewriteFrontend.Ted Kremenek2012-09-011-192/+0
| | | | | | | This is similar to how we divide up the StaticAnalyzer libraries to separate core functionality to what is clearly associated with Frontend actions. llvm-svn: 163050
* Restructure how the driver communicates information about theJohn McCall2012-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | target Objective-C runtime down to the frontend: break this down into a single target runtime kind and version, and compute all the relevant information from that. This makes it relatively painless to add support for new runtimes to the compiler. Make the new -cc1 flag, -fobjc-runtime=blah-x.y.z, available at the driver level as a better and more general alternative to -fgnu-runtime and -fnext-runtime. This new concept of an Objective-C runtime also encompasses what we were previously separating out as the "Objective-C ABI", so fragile vs. non-fragile runtimes are now really modelled as different kinds of runtime, paving the way for better overall differentiation. As a sort of special case, continue to accept the -cc1 flag -fobjc-runtime-has-weak, as a sop to PLCompatibilityWeak. I won't go so far as to say "no functionality change", even ignoring the new driver flag, but subtle changes in driver semantics are almost certainly not intended. llvm-svn: 158793
* Add a -rewrite-includes option, which is similar to -rewrite-macros, but ↵David Blaikie2012-06-061-0/+9
| | | | | | | | | only expands #include directives. Patch contributed by Lubos Lunak (l.lunax@suse.cz). Review by Matt Beaumont-Gay (matthewbg@google.com). llvm-svn: 158093
* objc rewriter: start supporting modern objective-c abiFariborz Jahanian2012-02-071-1/+6
| | | | | | in objective-c rewriter. wip. llvm-svn: 149989
* Basic: import SmallString<> into clang namespaceDylan Noblesmith2012-02-051-3/+3
| | | | | | | (I was going to fix the TODO about DenseMap too, but that would break self-host right now. See PR11922.) llvm-svn: 149799
* Basic: import OwningPtr<> into clang namespaceDylan Noblesmith2012-02-051-2/+2
| | | | llvm-svn: 149798
* In FixItRecompile::BeginInvocation() reset the diagnostics before executingArgyrios Kyrtzidis2012-01-271-0/+1
| | | | | | the original action. llvm-svn: 149120
* In FixItRecompile::BeginInvocation(), check the return value of ↵Argyrios Kyrtzidis2012-01-271-18/+20
| | | | | | BeginSourceFile(). llvm-svn: 149107
* Remove the headers now that ::close() is not used.Argyrios Kyrtzidis2012-01-261-7/+0
| | | | llvm-svn: 149044
* In FixItRewriteToTemp::RewriteFilename don't try to close the file descriptorArgyrios Kyrtzidis2012-01-261-7/+8
| | | | | | | | with close(); return it instead. Fixes mingw build and eliminates possible racing issues. llvm-svn: 149043
* Rewrite/FrontendActions.cpp: Tweak to unbreak msvc.NAKAMURA Takumi2012-01-261-0/+6
| | | | llvm-svn: 149041
* Add missing include of <unistd.h>Douglas Gregor2012-01-261-0/+2
| | | | llvm-svn: 149035
* Introduce 3 new fixit options:Argyrios Kyrtzidis2012-01-261-0/+57
| | | | | | | | | | | | | | -fixit-recompile applies fixits and recompiles the result -fixit-to-temporary applies fixits to temporary files -fix-only-warnings">, applies fixits for warnings only, not errors Combining "-fixit-recompile -fixit-to-temporary" allows testing the result of fixits without touching the original sources. llvm-svn: 149027
* remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner2011-07-231-8/+8
| | | | | | | | LLVM.h imports them into the clang namespace. llvm-svn: 135852
* Replace all uses of PathV1::get{Basename,Dirname,Suffix} with their PathV2 ↵Michael J. Spencer2010-12-181-5/+4
| | | | | | equivalents. llvm-svn: 122140
* Merge System into Support.Michael J. Spencer2010-11-291-1/+1
| | | | llvm-svn: 120297
* More class anonymization.Benjamin Kramer2010-10-221-0/+2
| | | | llvm-svn: 117106
* Make the FixItOptions object required instead of optional.Nick Lewycky2010-08-151-1/+7
| | | | llvm-svn: 111105
* Add a new cc1 option -fix-what-you-can which when combined with the fix-it modeNick Lewycky2010-08-131-6/+9
| | | | | | will apply all fixes even when there were other errors in the file. llvm-svn: 111020
* Break Frontend's dependency on Rewrite, Checker and CodeGen in shared ↵Daniel Dunbar2010-06-151-0/+106
library configuration Currently, all AST consumers are located in the Frontend library, meaning that in a shared library configuration, Frontend has a dependency on Rewrite, Checker and CodeGen. This is suboptimal for clients which only wish to make use of the frontend. CodeGen in particular introduces a large number of unwanted dependencies. This patch breaks the dependency by moving all AST consumers with dependencies on Rewrite, Checker and/or CodeGen to their respective libraries. The patch therefore introduces dependencies in the other direction (i.e. from Rewrite, Checker and CodeGen to Frontend). After applying this patch, Clang builds correctly using CMake and shared libraries ("cmake -DBUILD_SHARED_LIBS=ON"). N.B. This patch includes file renames which are indicated in the patch body. Changes in this revision of the patch: - Fixed some copy-paste mistakes in the header files - Modified certain aspects of the coding to comply with the LLVM Coding Standards llvm-svn: 106010
OpenPOWER on IntegriCloud