diff options
| author | mydeveloperday <mydeveloperday@gmail.com> | 2019-11-12 21:15:17 +0000 |
|---|---|---|
| committer | paulhoad <mydeveloperday@gmail.com> | 2019-11-12 21:26:52 +0000 |
| commit | 335ac2eb662ce5f1888e2a50310b01fba2d40d68 (patch) | |
| tree | 6572fea0e79874c06cd4bdc683b85ad7e9559478 /clang/docs/ClangFormat.rst | |
| parent | fbb228c7d222b991bed20d674e3b43143848fb95 (diff) | |
| download | bcm5719-llvm-335ac2eb662ce5f1888e2a50310b01fba2d40d68.tar.gz bcm5719-llvm-335ac2eb662ce5f1888e2a50310b01fba2d40d68.zip | |
Allow additional file suffixes/extensions considered as source in main include grouping
Summary:
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.
Reviewers: rsmith, ioeric, krasimir, sylvestre.ledru, MyDeveloperDay
Reviewed By: MyDeveloperDay
Subscribers: MyDeveloperDay, cfe-commits
Patch by: furdyna
Tags: #clang
Differential Revision: https://reviews.llvm.org/D67750
Diffstat (limited to 'clang/docs/ClangFormat.rst')
| -rw-r--r-- | clang/docs/ClangFormat.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/docs/ClangFormat.rst b/clang/docs/ClangFormat.rst index 7fe050ec9e2..1138b233267 100644 --- a/clang/docs/ClangFormat.rst +++ b/clang/docs/ClangFormat.rst @@ -31,9 +31,9 @@ to format C/C++/Java/JavaScript/Objective-C/Protobuf/C# code. Clang-format options: --Werror - If set, changes formatting warnings to errors - --assume-filename=<string> - When reading from stdin, clang-format assumes this - filename to look for a style config file (with - -style=file) and to determine the language. + --assume-filename=<string> - Override filename used to determine the language. + When reading from stdin, clang-format assumes this + filename to determine the language. --cursor=<uint> - The position of the cursor when invoking clang-format from an editor integration --dry-run - If set, do not actually make the formatting changes |

