[all-commits] [llvm/llvm-project] 266825: [Tooling][Format] Treat compound extensions (foo.b...
Sam McCall via All-commits
all-commits at lists.llvm.org
Thu Aug 27 06:35:03 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 266825620c7f8d10d48abd0346527cea50c8202d
https://github.com/llvm/llvm-project/commit/266825620c7f8d10d48abd0346527cea50c8202d
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2020-08-27 (Thu, 27 Aug 2020)
Changed paths:
M clang/lib/Tooling/Inclusions/HeaderIncludes.cpp
M clang/unittests/Tooling/HeaderIncludesTest.cpp
Log Message:
-----------
[Tooling][Format] Treat compound extensions (foo.bar.cc) as matching foo.h
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.
Differential Revision: https://reviews.llvm.org/D86597
More information about the All-commits
mailing list