https://bugs.llvm.org/show_bug.cgi?id=34385
Bug ID: 34385
Summary: Formatting some comments in macro causes a -Wcomment
comment
Product: clang
Version: 5.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: sylves...@debian.org
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
foo.cpp
----
#define MAX_COLSPAN 1000 // limit as IE and opera do. If this ever changes,
// change COL_SPAN_OFFSET/COL_SPAN_SHIFT accordingly.
----
is converted to:
----
#define MAX_COLSPAN
\
1000 // limit as IE and opera do. If this ever changes,
\
// change COL_SPAN_OFFSET/COL_SPAN_SHIFT accordingly.
----
Which triggers:
$ gcc -c -Wcomment foo4.cpp foo3.cpp
foo4.cpp:2:8: warning: multi-line comment [-Wcomment]
1000 // limit as IE and opera do. If this ever changes,
\
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs