summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PrintPreprocessedOutput.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove this hard-coded buffer size. In some basic experiments preprocessingDan Gohman2010-04-161-2/+0
| | | | | | | | | | | large files, this doesn't seem significantly better than just letting raw_ostream pick a buffer size. This code predates raw-ostream's automatic buffer sizing; in fact, it was introduced as part of the code which would eventually become raw_ostream. llvm-svn: 101473
* Improve line marker directive locations, patch by Jordy RoseChris Lattner2010-04-141-1/+1
| | | | llvm-svn: 101226
* make the token paste avoidance logic turn "..." into ".. ." instead of ". . ."Chris Lattner2010-04-141-3/+6
| | | | | | when avoiding paste. Patch by David Peixotto! llvm-svn: 101218
* cache the PP's SourceManager.Chris Lattner2010-04-131-5/+6
| | | | llvm-svn: 101099
* make the preprocessor listen to linemarker directives in -E mode,Chris Lattner2010-04-131-10/+14
| | | | | | PR6101. This is based on a patch and testcase by Jordy Rose! llvm-svn: 101097
* Entering the main source file in the preprocessor can fail if theDouglas Gregor2010-03-171-2/+4
| | | | | | source file has been changed. Handle that failure more gracefully. llvm-svn: 98727
* Use SmallString instead of SmallVectorKovarththanan Rajaratnam2010-03-131-1/+1
| | | | llvm-svn: 98436
* Rename to addPPCallbacks since we're effectively adding a callback and maybe ↵Kovarththanan Rajaratnam2010-03-071-4/+4
| | | | | | chaining it to an existing one llvm-svn: 97913
* Revert 97324. Chris says this cleanup could hurt -E performance.Benjamin Kramer2010-02-271-8/+24
| | | | llvm-svn: 97331
* Simplify code.Benjamin Kramer2010-02-271-24/+8
| | | | llvm-svn: 97324
* Add an overload of Preprocessor::getSpelling which takes a SmallVector andBenjamin Kramer2010-02-271-6/+1
| | | | | | returns a StringRef. Use it to simplify some repetitive code. llvm-svn: 97322
* Avoid an instantiation of std::sort.Benjamin Kramer2010-01-191-14/+10
| | | | llvm-svn: 93882
* Neil points out that this could be simplified, do it.Chris Lattner2009-12-091-15/+9
| | | | llvm-svn: 90927
* fix -dM with variadic macros, PR5699Chris Lattner2009-12-071-8/+15
| | | | llvm-svn: 90735
* some code cleanup.Chris Lattner2009-12-071-9/+14
| | | | llvm-svn: 90732
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-061-7/+13
| | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=71473 llvm-svn: 90688
* Add PreprocessorOutputOptions to CompilerInvocation, and move initialization toDaniel Dunbar2009-11-111-1/+1
| | | | | | clang-cc/Options.cpp llvm-svn: 86828
* Add PreprocessorOutputOptions, for things like -dM, -C, -CC which control -EDaniel Dunbar2009-11-111-10/+16
| | | | | | mode. llvm-svn: 86827
* Fix buffer overflow in PrintMacroDefinition() by inverting the check to see ↵Ted Kremenek2009-11-031-1/+1
| | | | | | if the target buffer needs to be resized. Fixes <rdar://problem/7255377>. llvm-svn: 85872
* PR5218: Replace IdentifierInfo::getName with StringRef version, now that clientsDaniel Dunbar2009-10-181-2/+2
| | | | | | are updated. llvm-svn: 84447
* Move misc clients to IdentifierInfo StringRef API.Daniel Dunbar2009-10-181-2/+2
| | | | | | | | | - strcmp -> == - OS.write(II->getName() ...) -> OS << II->getNameStr() - Avoid std::string concatenation - Use getNameStr().str() when an std::string is really needed. llvm-svn: 84437
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-48/+48
| | | | llvm-svn: 81346
* no really, add the lines :)Chris Lattner2009-06-151-1/+1
| | | | llvm-svn: 73367
* Fix PR2741 by making our newline tracking be aware of newlines thatChris Lattner2009-06-151-0/+35
| | | | | | can occur in the middle of comment tokens. llvm-svn: 73365
* PR4288: Make -dD (dump macros with preprocessed source) play nicely with Eli Friedman2009-06-021-2/+7
| | | | | | # line directives. llvm-svn: 72724
* Use v.data() instead of &v[0] when SmallVector v might be empty.Jay Foad2009-05-211-1/+1
| | | | llvm-svn: 72210
* Clean up some unnecessary includes.Eli Friedman2009-05-191-2/+0
| | | | llvm-svn: 72101
* Move clang-cc.h to lib/Frontend/Utils.h, and move the associated .cpp Eli Friedman2009-05-191-0/+467
files to lib/Frontend. llvm-svn: 72099
OpenPOWER on IntegriCloud