diff options
| -rw-r--r-- | clang/Driver/PrintPreprocessedOutput.cpp | 4 |
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 == '='; } |

