summaryrefslogtreecommitdiff
path: root/lib/Lex/PPLexerChange.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2015-12-29 23:06:17 +0000
committerNico Weber <nicolasweber@gmx.de>2015-12-29 23:06:17 +0000
commit87455cb66c8b9e8d0311e38e013fb1629ac6ea99 (patch)
treed5e2c0038f769f574656b232494059ee1e16c675 /lib/Lex/PPLexerChange.cpp
parent78eca64919c366b8a11128cdbe70ae2720aa207b (diff)
Emit a -Wmicrosoft warning when pasting /##/ into a comment token in MS mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPLexerChange.cpp')
-rw-r--r--lib/Lex/PPLexerChange.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp
index 7c0d55e1f0..2f09841c5b 100644
--- a/lib/Lex/PPLexerChange.cpp
+++ b/lib/Lex/PPLexerChange.cpp
@@ -561,7 +561,6 @@ void Preprocessor::RemoveTopOfLexerStack() {
void Preprocessor::HandleMicrosoftCommentPaste(Token &Tok) {
assert(CurTokenLexer && !CurPPLexer &&
"Pasted comment can only be formed from macro");
-
// We handle this by scanning for the closest real lexer, switching it to
// raw mode and preprocessor mode. This will cause it to return \n as an
// explicit EOD token.