Motivating use case is ".cu.cc" extensions used in some bazel projects.
Alternative is to work around this with IncludeIsMainRegex in styles.
I proposed this approach because it seems like a better default.
Paths
| Differential D86597
[Tooling][Format] Treat compound extensions (foo.bar.cc) as matching foo.h ClosedPublic Authored by sammccall on Aug 26 2020, 1:33 AM.
Details Summary Motivating use case is ".cu.cc" extensions used in some bazel projects. Alternative is to work around this with IncludeIsMainRegex in styles.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 26 2020, 7:03 AM Closed by commit rG266825620c7f: [Tooling][Format] Treat compound extensions (foo.bar.cc) as matching foo.h (authored by sammccall). · Explain WhyAug 27 2020, 6:34 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 288308 clang/lib/Tooling/Inclusions/HeaderIncludes.cpp
clang/unittests/Tooling/HeaderIncludesTest.cpp
|