http://llvm.org/bugs/show_bug.cgi?id=17122
Bug ID: 17122
Summary: clang-format breaks code by splitting a string in a
macro call.
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Assume you have a macro defined as follows:
_T(x) L ## x
Where L"A string" makes wchar_t literal
Now when you have code like this:
_T("Some really long string that needs to be split into multiple lines")
clang-format will output:
_T("Some really long string that needs"
" to be split into multiple lines")
On visual studio 2010, this appears to be expanded as:
L"Some really long string that needs" " to be split into multiple lines"
and I get an error:
error C2308: concatenating mismatched strings
--
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