Skip to content

Commit

Permalink
disabled some clang-tidy checks which only apply to standards newer t…
Browse files Browse the repository at this point in the history
…han C++11
  • Loading branch information
firewave committed Oct 6, 2023
1 parent f5cda66 commit 91a6c5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ Checks: >
-modernize-raw-string-literal,
-modernize-replace-auto-ptr,
-modernize-return-braced-init-list,
-modernize-type-traits,
-modernize-use-auto,
-modernize-use-nodiscard,
-modernize-use-trailing-return-type,
-performance-avoid-endl,
-performance-inefficient-string-concatenation,
Expand Down
5 changes: 5 additions & 0 deletions clang-tidy.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ To be evaluated (need to remove exclusion).

To be evaluated (need to enable explicitly).

`modernize-type-traits`</br>
`modernize-use-nodiscard`</br>

These apply to codebases which use later standards then C++11 (C++17 is used when building with Qt6) so we cannot simply apply them.

`portability-std-allocator-const`<br/>

Only necessary for code which is exclusively compiled with `libc++`. Also disabled for performance reasons - see https://github.com/llvm/llvm-project/issues/57527#issuecomment-1237935132.
Expand Down

0 comments on commit 91a6c5a

Please sign in to comment.