[llvm-bugs] [Bug 35768] New: Clang format does not add an extra space for comments that starts with #
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Dec 28 08:58:16 PST 2017
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: unassignedclangbugs at nondot.org
Reporter: jasjuang at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171228/655e6b1f/attachment.html>
More information about the llvm-bugs
mailing list