Skip to content

Commit

Permalink
Enforce 'const' left of the type, even via clang-tidy's FIX-ITs (#15948)
Browse files Browse the repository at this point in the history
### Ticket
None

### Problem description
Clang-tidy was trying to insert `const` right of the type.

### What's changed
* Told clang-format we want it on the left.
* Told clang-tidy to do what clang-format says.
  • Loading branch information
afuller-TT authored Dec 12, 2024
1 parent 5b04331 commit dd874dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left
QualifierAlignment: Left
RawStringFormats:
- Language: Cpp
Delimiters:
Expand Down
2 changes: 2 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,5 @@ Checks: >
CheckOptions:
- key: readability-function-cognitive-complexity.IgnoreMacros
value: true

FormatStyle: 'file'

0 comments on commit dd874dd

Please sign in to comment.