[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:
Joshua Huels 2021-12-17 18:37:55 -08:00 committed by Owen Pan
parent fee57711fe
commit 212e6c9977
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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