We receive internal bugs about this false positives after D86597.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Tooling/Inclusions/HeaderIncludes.cpp | ||
---|---|---|
237 | this deserves a comment: Not matchingStem: implementation files may have compound extensions but headers may not. |
Comment Actions
It looks like this fix caused a different regression in not accepting name.<x>.h as the main header for name.<x>.cc, e.g.:
$ cat /tmp/foo.bar.cc #include "a.h" #include "z.h" #include "foo.bar.h" $ clang-format /tmp/foo.bar.cc # Before #include "foo.bar.h" #include "a.h" #include "z.h" $ clang-format /tmp/foo.bar.cc # After #include "a.h" #include "foo.bar.h" #include "z.h"
this deserves a comment: Not matchingStem: implementation files may have compound extensions but headers may not.