summaryrefslogtreecommitdiffstats
path: root/clang/lib/Rewrite/FixItRewriter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge System into Support.Michael J. Spencer2010-11-291-1/+1
| | | | llvm-svn: 120297
* Keep track of errors/warnings in FixItRewriter.Argyrios Kyrtzidis2010-11-181-0/+3
| | | | llvm-svn: 119735
* Refactoring of Diagnostic class.Argyrios Kyrtzidis2010-11-181-1/+1
| | | | | | | | | | | -Move the stuff of Diagnostic related to creating/querying diagnostic IDs into a new DiagnosticIDs class. -DiagnosticIDs can be shared among multiple Diagnostics for multiple translation units. -The rest of the state in Diagnostic object is considered related and tied to one translation unit. -Have Diagnostic point to the SourceManager that is related with. Diagnostic can now accept just a SourceLocation instead of a FullSourceLoc. -Reflect the changes to various interfaces. llvm-svn: 119730
* Simplify the ownership model for DiagnosticClients, which was reallyDouglas Gregor2010-08-181-1/+4
| | | | | | | convoluted and a bit leaky. Now, the Diagnostic object owns its DiagnosticClient. llvm-svn: 111437
* Simplify FixItHint by eliminated the unnecessary InsertionLocDouglas Gregor2010-08-181-12/+0
| | | | | | location. Patch by Eelis van der Weegen! llvm-svn: 111362
* Make the FixItOptions object required instead of optional.Nick Lewycky2010-08-151-4/+2
| | | | llvm-svn: 111105
* Remember that FixItOptions* is optional and don't crash when it's not provided.Nick Lewycky2010-08-141-1/+1
| | | | llvm-svn: 111084
* Add a new cc1 option -fix-what-you-can which when combined with the fix-it modeNick Lewycky2010-08-131-6/+6
| | | | | | 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/+167
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