https://bugs.llvm.org/show_bug.cgi?id=52558
Bug ID: 52558
Summary: clang-format inserts spaces in include path
Product: clang
Version: 13.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: robin.gutoehrl...@trumpf.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
If a c++ file contains the following line:
#include <test//test.h>
(which compiles with the current microsoft c++ compiler), clang-format changes
this path to
#include <test //test.h>
if called with
clang-format test.cpp > test-formatted.cpp.
It seems that clang "thinks" the double slash is a comment and inserts a space
before it, but a comment should never start in a include path.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs