Revision 90d643c31221a1b1e3841a0a1f7a2b2f8d16d2d8 authored by Sebastian Holtermann on 30 October 2019, 10:09:28 UTC, committed by Brad King on 30 October 2019, 13:34:06 UTC
On Windows, `CollapseFullPath` called with a path that ends with a dot
might return a file with the same base name but any extension.
To make sure we get only the file with the requested header extension,
pass the complete file name to `CollapseFullPath`.

Fixes: #19892
1 parent 9278028
Raw File
.clang-format
---
# This configuration requires clang-format version 6.0 exactly.
BasedOnStyle: Mozilla
AlignOperands: false
AllowShortFunctionsOnASingleLine: InlineOnly
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
  AfterClass:      true
  AfterEnum:       true
  AfterFunction:   true
  AfterStruct:     true
  AfterUnion:      true
BreakBeforeBraces: Custom
ColumnLimit: 79
IndentPPDirectives: AfterHash
SortUsingDeclarations: false
SpaceAfterTemplateKeyword: true
IncludeBlocks: Regroup
IncludeCategories:
  - Regex:           '^[<"]cmConfigure\.h'
    Priority:        -1
  - Regex:           '^(<|")cm/'
    Priority:        2
  - Regex:           '^(<|")windows\.h'
    Priority:        3
  - Regex:           '^<sys/'
    Priority:        5
  - Regex:           '^(<|")Qt?[A-Z]'
    Priority:        6
  - Regex:           '^(<|")cmsys/'
    Priority:        7
  - Regex:           '^(<|")cm_'
    Priority:        8
  - Regex:           '^(<|")cm[A-Z][^.]+\.h'
    Priority:        9
  - Regex:           '^<[^.]+\.h'
    Priority:        4
  - Regex:           '^<'
    Priority:        1
  - Regex:           '.*'
    Priority:        10
...
back to top