This is an archive of the discontinued LLVM Phabricator instance.

[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.
I proposed this approach because it seems like a better default.

Diff Detail