[llvm-bugs] [Bug 33962] New: clang-format unexpected token with "}" a comment block
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 27 00:11:27 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33962
Bug ID: 33962
Summary: clang-format unexpected token with "}" a comment block
Product: clang
Version: 5.0
Hardware: PC
OS: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: patrick.sturm at tomra.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Created attachment 18858
--> https://bugs.llvm.org/attachment.cgi?id=18858&action=edit
Used .clang-format configuration file
The following code causes an error in clang-format:
void f()
{
if (true)
{
/*Hello*/}
}
The error message is: '5' is unexpected token. The expected token is '"' or ''.
Line2, position 66.
By moving the closing } to the next line, the error is gone:
void f()
{
if (true)
{
/*Hello*/
}
}
--
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/20170727/e5259e96/attachment.html>
More information about the llvm-bugs
mailing list