We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4768173 commit 9841d71Copy full SHA for 9841d71
clang/lib/Lex/Pragma.cpp
@@ -220,11 +220,12 @@ void Preprocessor::Handle_Pragma(Token &Tok) {
220
if (!tok::isStringLiteral(Tok.getKind())) {
221
Diag(PragmaLoc, diag::err__Pragma_malformed);
222
// Skip bad tokens, and the ')', if present.
223
- if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::eof))
+ if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::eof) && Tok.isNot(tok::eod))
224
Lex(Tok);
225
while (Tok.isNot(tok::r_paren) &&
226
!Tok.isAtStartOfLine() &&
227
- Tok.isNot(tok::eof))
+ Tok.isNot(tok::eof) &&
228
+ Tok.isNot(tok::eod))
229
230
if (Tok.is(tok::r_paren))
231
0 commit comments