diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-10-06 05:22:26 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-10-06 05:22:26 +0000 |
| commit | d3e9895b9aa6d312733d0523aee222198a4bcfcd (patch) | |
| tree | dd971b780a71431431688c1f50582267cbe3dda3 /clang/Lex/MacroExpander.cpp | |
| parent | 19acaadc2bba4cf0f38c5c4630a9b7eb35d0bc56 (diff) | |
| download | bcm5719-llvm-d3e9895b9aa6d312733d0523aee222198a4bcfcd.tar.gz bcm5719-llvm-d3e9895b9aa6d312733d0523aee222198a4bcfcd.zip | |
Initial support for semantic analysis and AST building for StringExpr nodes.
llvm-svn: 38960
Diffstat (limited to 'clang/Lex/MacroExpander.cpp')
| -rw-r--r-- | clang/Lex/MacroExpander.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/Lex/MacroExpander.cpp b/clang/Lex/MacroExpander.cpp index 423eb9ba360..1a64e36a10d 100644 --- a/clang/Lex/MacroExpander.cpp +++ b/clang/Lex/MacroExpander.cpp @@ -161,8 +161,9 @@ static LexerToken StringifyArgument(const LexerToken *ArgToks, // If this is a string or character constant, escape the token as specified // by 6.10.3.2p2. - if (Tok.getKind() == tok::string_literal || // "foo" and L"foo". - Tok.getKind() == tok::char_constant) { // 'x' and L'x'. + if (Tok.getKind() == tok::string_literal || // "foo" + Tok.getKind() == tok::wide_string_literal || // L"foo" + Tok.getKind() == tok::char_constant) { // 'x' and L'x'. Result += Lexer::Stringify(PP.getSpelling(Tok)); } else { // Otherwise, just append the token. |

