summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/TokenConcatenation.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add missing cctype includes.Joerg Sonnenberger2012-08-101-0/+1
| | | | llvm-svn: 161660
* Unify naming of LangOptions variable/get function across the Clang stack ↵David Blaikie2012-03-111-7/+7
| | | | | | | | | | (Lex to AST). The member variable is always "LangOpts" and the member function is always "getLangOpts". Reviewed by Chris Lattner llvm-svn: 152536
* User-defined literals: reject string and character UDLs in all places where theRichard Smith2012-03-061-1/+38
| | | | | | | | | | grammar requires a string-literal and not a user-defined-string-literal. The two constructs are still represented by the same TokenKind, in order to prevent a combinatorial explosion of different kinds of token. A flag on Token tracks whether a ud-suffix is present, in order to prevent clients from needing to look at the token's spelling. llvm-svn: 152098
* Remove unreachable code in Clang. (replace with llvm_unreachable where ↵David Blaikie2012-01-171-2/+0
| | | | | | appropriate or when GCC requires it) llvm-svn: 148292
* Rename SourceLocation::getFileLocWithOffset -> getLocWithOffset.Argyrios Kyrtzidis2011-09-191-1/+1
| | | | | | It already works (and is useful with) macro locs as well. llvm-svn: 140057
* Raw string followup. Pass a couple StringRefs by value.Craig Topper2011-08-111-1/+1
| | | | llvm-svn: 137301
* Add support for C++0x raw string literals.Craig Topper2011-08-111-17/+31
| | | | llvm-svn: 137298
* Add support for C++0x unicode string and character literals, from Craig Topper!Douglas Gregor2011-07-271-36/+28
| | | | llvm-svn: 136210
* Introduced raw_identifier token kind.Abramo Bagnara2010-12-221-1/+9
| | | | llvm-svn: 122394
* make the token paste avoidance logic turn "..." into ".. ." instead of ". . ."Chris Lattner2010-04-141-2/+4
| | | | | | when avoiding paste. Patch by David Peixotto! llvm-svn: 101218
* fix a bug in paste avoidance which would cause us to accidentallyChris Lattner2010-03-261-1/+1
| | | | | | form a >>=. Patch by Abramo Bagnara, testcase by me. llvm-svn: 99624
* Move clients to use IdentifierInfo::getNameStart() instead of getName()Daniel Dunbar2009-10-181-1/+1
| | | | llvm-svn: 84436
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-21/+21
| | | | llvm-svn: 81346
* PR4395: Don't detect token concatenation in C mode for Eli Friedman2009-06-151-3/+5
| | | | | | C++-specific tokens. llvm-svn: 73408
* Don't vary token concatenation based on the language options; this Eli Friedman2009-05-271-6/+3
| | | | | | behavior is more likely to be confusing than useful. llvm-svn: 72499
* apply Eli's patch to fix PR4008, with a testcase. Thanks Eli!Chris Lattner2009-04-211-0/+8
| | | | llvm-svn: 69750
* Fix -E mismatch; an identifier followed by a numeric constant does notDaniel Dunbar2009-03-181-22/+31
| | | | | | | | require a space (to avoid concatenation) if the numeric constant had a leading period. - PR3819. llvm-svn: 67163
* factor token concatenation avoidance logic out of Chris Lattner2009-02-131-0/+205
PrintPreprocessedOutput into its own file. No functionality change. llvm-svn: 64418
OpenPOWER on IntegriCloud