Issue |
93820
|
Summary |
Aligned comments after closed brace is throwing error
|
Labels |
new issue
|
Assignees |
|
Reporter |
RajeshDasari
|
#include <stdio.h>
int main()
{
int x;
if (x >= 1)
{
if (x > 1)
{
printf("x is greater");
} /*2ndtif*/
} /*1stif*/
}
the above snippet works well with the clang-17.0.6 but where as with clang-format 18.1.1 , I get the below error
test.c:12:6: error: code should be clang-formatted [-Wclang-format-violations]
} /*1stif*/
^
I have used the same .clang-format file for both the versions
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs