forked from OSchip/llvm-project
[doc] Fix regex in ClangFormatStyleOptions for IncludeCategories
This fixes the regex in ClangFormatStyleOptions for IncludeCategories to match anything starting with < or starting with | AND followed by (gtest|gmock|isl|json) then /. Differential Revision: https://reviews.llvm.org/D115910
This commit is contained in:
parent
fee57711fe
commit
212e6c9977
|
@ -2457,7 +2457,7 @@ the configuration (without a prefix: ``Auto``).
|
|||
Priority: 2
|
||||
SortPriority: 2
|
||||
CaseSensitive: true
|
||||
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
|
||||
- Regex: '^((<|")(gtest|gmock|isl|json)/)'
|
||||
Priority: 3
|
||||
- Regex: '<[[:alnum:].]+>'
|
||||
Priority: 4
|
||||
|
@ -3236,7 +3236,7 @@ the configuration (without a prefix: ``Auto``).
|
|||
**QualifierAlignment** (``QualifierAlignmentStyle``) :versionbadge:`clang-format 14`
|
||||
Different ways to arrange specifiers and qualifiers (e.g. const/volatile).
|
||||
|
||||
.. warning::
|
||||
.. warning::
|
||||
|
||||
Setting ``QualifierAlignment`` to something other than `Leave`, COULD
|
||||
lead to incorrect code formatting due to incorrect decisions made due to
|
||||
|
|
|
@ -106,7 +106,7 @@ struct IncludeStyle {
|
|||
/// Priority: 2
|
||||
/// SortPriority: 2
|
||||
/// CaseSensitive: true
|
||||
/// - Regex: '^(<|"(gtest|gmock|isl|json)/)'
|
||||
/// - Regex: '^((<|")(gtest|gmock|isl|json)/)'
|
||||
/// Priority: 3
|
||||
/// - Regex: '<[[:alnum:].]+>'
|
||||
/// Priority: 4
|
||||
|
|
Loading…
Reference in New Issue