forked from OSchip/llvm-project
Fix for PR4132: make sure to insert whitespace consistently before a
pasted token. llvm-svn: 70793
This commit is contained in:
parent
1de5cf548e
commit
2f621b72f4
|
@ -222,7 +222,7 @@ void TokenLexer::ExpandFunctionArguments() {
|
||||||
|
|
||||||
// If the next token was supposed to get leading whitespace, ensure it has
|
// If the next token was supposed to get leading whitespace, ensure it has
|
||||||
// it now.
|
// it now.
|
||||||
if (NextTokGetsSpace) {
|
if (CurTok.hasLeadingSpace() || NextTokGetsSpace) {
|
||||||
ResultToks[ResultToks.size()-NumToks].setFlag(Token::LeadingSpace);
|
ResultToks[ResultToks.size()-NumToks].setFlag(Token::LeadingSpace);
|
||||||
NextTokGetsSpace = false;
|
NextTokGetsSpace = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
// RUN: clang-cc %s -E | grep "movl %eax"
|
||||||
|
|
||||||
|
#define R1E %eax
|
||||||
|
#define epilogue(r1) movl r1;
|
||||||
|
epilogue(R1E)
|
Loading…
Reference in New Issue