Skip to content

Commit 95b1805

Browse files
committed
Closes #14
1 parent d1108e9 commit 95b1805

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/lib/Lex/TokenLexer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,11 @@ bool TokenLexer::pasteTokens(Token &LHSTok, ArrayRef<Token> TokenStream,
822822
// Returns true the caller should immediately return the token.
823823
return true;
824824
}
825+
// [MSVC Compatibility] Handle "__FUNCTION__"##"string"
826+
if (LHSTok.is(tok::kw___FUNCTION__) && RHS.is(tok::string_literal)) {
827+
// Returns true the caller should immediately return the token.
828+
return true;
829+
}
825830
// [MSVC Compatibility] Handle "string"##"string"
826831
if ((LHSTok.is(tok::string_literal) && RHS.is(tok::string_literal))) {
827832
// Returns true the caller should immediately return the token.

0 commit comments

Comments
 (0)