https://bugs.llvm.org/show_bug.cgi?id=37336
Bug ID: 37336
Summary: -rewrite-macros breaks for consecutive comments
Product: clang
Version: 6.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
The following code:
/* Comment 1 */
/* Comment 2 */
Gets rewritten by -rewrite-macros as:
/* Comment 1 */
/*/* Comment 2 */*/
which then will fail to compile. This behaviour applies to the first pair of
any consecutive comments separated only by whitespace, including in the context
of other code. E.g.
// Comment 3
/* Comment 4 */
becomes:
// Comment 3
/*/* Comment 4 */*/
and
// Comment 5
// Comment 6
// Comment 7
// Comment 8
becomes
// Comment 5
/* // Comment 6 */
// Comment 7
// Comment 8
(The last one is legal code but still not desirable.)
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs