diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-07-19 16:11:58 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-07-19 16:11:58 +0000 |
| commit | 24dbee71abad508f4f19195d7d373b10bc792fac (patch) | |
| tree | 3e9b0e1ff674b7455c74ba88494b81c60918df04 /clang/Lex/MacroExpander.cpp | |
| parent | b4acc033cf9e11b75f0cbf103332415461dcad96 (diff) | |
| download | bcm5719-llvm-24dbee71abad508f4f19195d7d373b10bc792fac.tar.gz bcm5719-llvm-24dbee71abad508f4f19195d7d373b10bc792fac.zip | |
Fix a stringizing bug that Neil noticed. We should preprocess this:
#define t(x) #x
t(a
c)
to "a c", not "ac".
llvm-svn: 40060
Diffstat (limited to 'clang/Lex/MacroExpander.cpp')
| -rw-r--r-- | clang/Lex/MacroExpander.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Lex/MacroExpander.cpp b/clang/Lex/MacroExpander.cpp index ed1725dccf7..e474906050b 100644 --- a/clang/Lex/MacroExpander.cpp +++ b/clang/Lex/MacroExpander.cpp @@ -153,7 +153,7 @@ static LexerToken StringifyArgument(const LexerToken *ArgToks, bool isFirst = true; for (; ArgToks->getKind() != tok::eof; ++ArgToks) { const LexerToken &Tok = *ArgToks; - if (!isFirst && Tok.hasLeadingSpace()) + if (!isFirst && (Tok.hasLeadingSpace() || Tok.isAtStartOfLine())) Result += ' '; isFirst = false; |

