summaryrefslogtreecommitdiffstats
path: root/clang/Driver/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-29 17:50:10 +0000
committerChris Lattner <sabre@nondot.org>2006-07-29 17:50:10 +0000
commit4beb0381ed2c7f1a8492ce2aee13effd9cd81a8d (patch)
treefaddb8af61790739af50faee0f55c159eede58df /clang/Driver/PrintPreprocessedOutput.cpp
parent273ddd5c572869557cd7de22853dbbe90475617e (diff)
downloadbcm5719-llvm-4beb0381ed2c7f1a8492ce2aee13effd9cd81a8d.tar.gz
bcm5719-llvm-4beb0381ed2c7f1a8492ce2aee13effd9cd81a8d.zip
Trigraphs are not enabled in -fpreprocessed mode.
llvm-svn: 38796
Diffstat (limited to 'clang/Driver/PrintPreprocessedOutput.cpp')
-rw-r--r--clang/Driver/PrintPreprocessedOutput.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/Driver/PrintPreprocessedOutput.cpp b/clang/Driver/PrintPreprocessedOutput.cpp
index 57b069e4f98..0a3e46f6609 100644
--- a/clang/Driver/PrintPreprocessedOutput.cpp
+++ b/clang/Driver/PrintPreprocessedOutput.cpp
@@ -341,9 +341,6 @@ static bool AvoidConcat(const LexerToken &PrevTok, const LexerToken &Tok,
return FirstChar == ':' || FirstChar == '>';
case tok::hash: // ##, #@, %:%:
return FirstChar == '#' || FirstChar == '@' || FirstChar == '%';
- case tok::question: // <?=, >?=, ??x -> trigraphs.
- // Have to check for <?= in case <? is disabled.
- return FirstChar == '?' || FirstChar == '=';
case tok::arrow: // ->*
return FirstChar == '*';
@@ -355,6 +352,7 @@ static bool AvoidConcat(const LexerToken &PrevTok, const LexerToken &Tok,
case tok::equal: // ==
case tok::lessquestion: // <?=
case tok::greaterquestion: // >?=
+ case tok::question: // <?=, >?=, check for <?= in case <? is disabled.
// Cases that concatenate only if the next char is =.
return FirstChar == '=';
}
OpenPOWER on IntegriCloud