Skip to content

Commit

Permalink
Merge pull request #1421 from dtolnay/clang-tidy
Browse files Browse the repository at this point in the history
Update clang-tidy from Clang 11 to Clang 18
  • Loading branch information
dtolnay authored Jan 18, 2025
2 parents 47ec95b + a75dadf commit 16c5e26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Checks:
clang-diagnostic-*,
cppcoreguidelines-*,
modernize-*,
-cppcoreguidelines-avoid-const-or-ref-data-members,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
Expand All @@ -12,6 +13,7 @@ Checks:
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-special-member-functions,
-modernize-return-braced-init-list,
-modernize-use-default-member-init,
-modernize-use-equals-default,
-modernize-use-trailing-return-type,
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install clang-tidy
run: sudo apt-get install clang-tidy-11
run: sudo apt-get install clang-tidy-18
- name: Run clang-tidy
run: clang-tidy-11 src/cxx.cc --warnings-as-errors=*
run: clang-tidy-18 src/cxx.cc --warnings-as-errors=*

outdated:
name: Outdated
Expand Down

0 comments on commit 16c5e26

Please sign in to comment.