Skip to content

Commit

Permalink
Merge branch 'main' into srj/cmake-jit-generators
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-johnson committed Aug 23, 2024
2 parents 4f2e34c + 45518ac commit 408c73c
Show file tree
Hide file tree
Showing 550 changed files with 22,559 additions and 15,796 deletions.
24 changes: 22 additions & 2 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Checks: >
bugprone-dangling-handle,
bugprone-dynamic-static-initializers,
-bugprone-easily-swappable-parameters,
-bugprone-empty-catch,
-bugprone-exception-escape,
bugprone-fold-init-type,
bugprone-forward-declaration-namespace,
Expand All @@ -35,8 +36,10 @@ Checks: >
bugprone-misplaced-pointer-arithmetic-in-alloc,
bugprone-misplaced-widening-cast,
bugprone-move-forwarding-reference,
bugprone-multiple-new-in-one-expression,
bugprone-multiple-statement-macro,
-bugprone-narrowing-conversions,,
-bugprone-narrowing-conversions,
bugprone-non-zero-enum-to-bool-conversion,
bugprone-no-escape,
bugprone-not-null-terminated-result,
bugprone-parent-virtual-call,
Expand All @@ -63,6 +66,7 @@ Checks: >
bugprone-suspicious-semicolon,
bugprone-suspicious-string-compare,
bugprone-swapped-arguments,
bugprone-switch-missing-default-case,
bugprone-terminating-continue,
bugprone-throw-keyword-missing,
bugprone-too-small-loop-variable,
Expand All @@ -71,16 +75,25 @@ Checks: >
bugprone-undelegated-constructor,
bugprone-unhandled-exception-at-new,
bugprone-unhandled-self-assignment,
bugprone-unique-ptr-array-mismatch,
bugprone-unsafe-functions,
bugprone-unused-raii,
bugprone-unused-return-value,
bugprone-use-after-move,
bugprone-virtual-near-miss,
clang-diagnostic-shadow-field,
cppcoreguidelines-avoid-capturing-lambda-coroutines,
cppcoreguidelines-misleading-capture-default-by-value,
-cppcoreguidelines-missing-std-forward, # TODO: consider enabling
cppcoreguidelines-rvalue-reference-param-not-moved,
misc-confusable-identifiers,
-misc-const-correctness,
misc-definitions-in-headers,
misc-header-include-cycle,
-misc-include-cleaner,
misc-misleading-bidirectional,
misc-misleading-identifier,
misc-misplaced-const,
Expand Down Expand Up @@ -115,6 +128,7 @@ Checks: >
-modernize-replace-random-shuffle,
-modernize-return-braced-init-list,
-modernize-shrink-to-fit,
-modernize-type-traits,
-modernize-unary-static-assert,
-modernize-use-auto,
modernize-use-bool-literals,
Expand All @@ -126,11 +140,13 @@ Checks: >
-modernize-use-noexcept,
modernize-use-nullptr,
modernize-use-override,
-modernize-use-std-print,
-modernize-use-trailing-return-type,
-modernize-use-transparent-functors,
-modernize-use-uncaught-exceptions,
-modernize-use-using
-modernize-use-using,
performance-avoid-endl,
performance-faster-string-find,
performance-for-range-copy,
performance-implicit-conversion-in-loop,
Expand All @@ -141,13 +157,16 @@ Checks: >
performance-move-constructor-init,
performance-no-automatic-move,
-performance-no-int-to-ptr,
performance-noexcept-destructor,
performance-noexcept-move-constructor,
performance-noexcept-swap,
performance-trivially-destructible,
performance-type-promotion-in-math-fn,
performance-unnecessary-copy-initialization,
performance-unnecessary-value-param,
readability-avoid-const-params-in-decls,
-readability-avoid-unconditional-preprocessor-if,
readability-braces-around-statements,
readability-const-return-type,
-readability-container-contains,
Expand All @@ -170,6 +189,7 @@ Checks: >
readability-misplaced-array-index,
-readability-named-parameter,
-readability-non-const-parameter,
-readability-operators-representation,
readability-qualified-auto,
readability-redundant-access-specifiers,
readability-redundant-control-flow,
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: DoozyX/clang-format-lint-action@v0.16.2
- uses: DoozyX/clang-format-lint-action@v0.17
with:
source: '.'
extensions: 'h,c,cpp'
clangFormatVersion: 16
clangFormatVersion: 17
# As of Aug 2023, the macOS runners have more RAM (14GB vs 7GB) and CPU (3 cores vs 2)
# than the Linux and Windows runners, so let's use those instead, since clang-tidy is
# a bit of a sluggard
Expand All @@ -36,14 +36,14 @@ jobs:
# from apt.llvm.org
# wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 15CF4D18AF4F7421
sudo apt-add-repository "deb https://apt.llvm.org/$(lsb_release -sc)/ llvm-toolchain-$(lsb_release -sc)-16 main"
sudo apt-add-repository "deb https://apt.llvm.org/$(lsb_release -sc)/ llvm-toolchain-$(lsb_release -sc)-17 main"
sudo apt-get update
sudo apt-get install llvm-16 clang-16 liblld-16-dev libclang-16-dev clang-tidy-16 ninja-build
sudo apt-get install llvm-17 clang-17 liblld-17-dev libclang-17-dev clang-tidy-17 ninja-build
- name: Run clang-tidy
run: |
export CC=clang-16
export CXX=clang++-16
export CLANG_TIDY_LLVM_INSTALL_DIR=/usr/lib/llvm-16
export CC=clang-17
export CXX=clang++-17
export CLANG_TIDY_LLVM_INSTALL_DIR=/usr/lib/llvm-17
export CMAKE_GENERATOR=Ninja
./run-clang-tidy.sh
check_cmake_file_lists:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ install_manifest.txt
# Ninja files
*.ninja*

# Package managers
vcpkg_installed/

################################################################################
## IDE directories and metadata

Expand Down
Loading

0 comments on commit 408c73c

Please sign in to comment.