Commit 19b1a06e authored by Leandro Melo's avatar Leandro Melo Committed by Leandro T. C. Melo
Browse files

C++: Handle multi-line if/elif directives



Task-number: QTCREATORBUG-5843

Change-Id: Ie32ed9daadf70f3b972a96fb53edcde9b1debb6c
Reviewed-by: default avatarChristian Kamm <christian.d.kamm@nokia.com>
parent 494fbdb0
......@@ -180,6 +180,17 @@ const char *MacroExpander::expand(const char *__first, const char *__last,
__result->append(__first, next_pos - __first);
__first = next_pos;
}
else if (*__first == '\\')
{
++__first;
if (__first != __last && *__first == '\n')
{
++lines;
++__first;
} else {
__result->append('\\');
}
}
else if (comment_p (__first, __last))
{
__first = skip_comment_or_divop (__first, __last);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment