[PATCH] D67750: Allow additional file suffixes/extensions considered as source in main include grouping
Mateusz Furdyna via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 19 01:47:24 PDT 2019
furdyna created this revision.
furdyna added reviewers: rsmith, ioeric.
Herald added a project: clang.
furdyna edited the summary of this revision.
By additional regex match, grouping of main include can be enabled in files that are not normally considered as a C/C++ source code.
For example, this might be useful in templated code, where template implementations are being held in *Impl.hpp files.
On the occassion, 'assume-filename' option description was reworded as it was misleading. It has nothing to do with `style=file` option and it does not influence sourced style filename.
Repository:
rC Clang
https://reviews.llvm.org/D67750
Files:
clang/docs/ClangFormat.rst
clang/docs/ClangFormatStyleOptions.rst
clang/docs/ReleaseNotes.rst
clang/include/clang/Tooling/Inclusions/IncludeStyle.h
clang/lib/Format/Format.cpp
clang/lib/Tooling/Inclusions/HeaderIncludes.cpp
clang/tools/clang-format/ClangFormat.cpp
clang/unittests/Format/FormatTest.cpp
clang/unittests/Format/SortIncludesTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67750.220824.patch
Type: text/x-patch
Size: 10780 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190919/43c377cc/attachment-0001.bin>
More information about the cfe-commits
mailing list