https://bugs.llvm.org/show_bug.cgi?id=35768
Bug ID: 35768
Summary: Clang format does not add an extra space for comments
that starts with #
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: jasju...@gmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
For normal situations, if I comment out code like
//int a;
Clang format reformats it to
// int a;
However for the below code
//#include <iostream>
Clang format doesn't do anything to it. I am expecting it to reformat it to
// #include <iostream>
I am dealing with legacy code and because clang format doesn't handle this I
had to manually go in one by one to fix it otherwise it won't pass the check by
cpplint, which causes the CI to fail.
It would be great to have this fixed.
--
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