[llvm-bugs] [Bug 27366] New: Formatter does not handle c++11 string literal prefix with stringize #
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Apr 15 04:40:59 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27366
Bug ID: 27366
Summary: Formatter does not handle c++11 string literal prefix
with stringize #
Product: clang
Version: unspecified
Hardware: All
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: gunnar.roth at gmx.de
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Classification: Unclassified
For L this was fixed in bug 17144, but u etc. are not fixed.
Example :
#define _u(str) u#str
will become
#define _u(str) u #str
this breaks compiling.
the code
if (Right.is(tok::hash) && Left.is(tok::identifier) && Left.TokenText == "L")
return false;
in TokenAnnotator.cpp takes only care of L not the other possible prefixes.
see https://msdn.microsoft.com/en-US/library/69ze775t.aspx
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160415/348e86bd/attachment.html>
More information about the llvm-bugs
mailing list