http://llvm.org/bugs/show_bug.cgi?id=11452
Bug #: 11452
Summary: Line splicing in MSVC compatibility mode
Product: clang
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Source lines followed by a backslash (\) and a newline immediately after it are
spliced by clang. In case of the following:
int Test(int a, int b) \
{int c = a + b; \
return c;\
}
It will be preprocessed by clang as:
int Test(int a, int b) {int c = a + b; return c;}
MSVC preprocessor behaves differently and will splice the lines only inside a
macro definition. The code example above will not be joined into a single line
by MSVC preprocessor.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs