Skip to content

Commit

Permalink
Update clang-tidy-lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RiscadoA authored Nov 9, 2023
1 parent 47cd055 commit 097e200
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/clang-tidy-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,18 @@ jobs:
- name: Make all changed headers reachable
run: |
git diff -U0 --name-only HEAD^ | grep -oP 'core/include/\K.*.hpp' | awk '{ $0= "#include <" $0 ">"; print }' > core/src/extra.cpp
echo '// NOLINTBEGIN(misc-include-cleaner)' > core/src/extra.cpp
git diff -U0 --name-only HEAD^ | grep -oP 'core/include/\K.*.hpp' | awk '{ $0= "#include <" $0 ">"; print }' >> core/src/extra.cpp
git diff -U0 --name-only HEAD^ | grep -oP 'core/src/\K.*.hpp' | awk '{ $0= "#include \"" $0 "\""; print }' >> core/src/extra.cpp
sed -i '/set(CUBOS_CORE_SOURCE/a "src/extra.cpp"' core/CMakeLists.txt
echo '// NOLINTEND(misc-include-cleaner)' >> core/src/extra.cpp
git add core/src/extra.cpp
echo '// NOLINTBEGIN(misc-include-cleaner)' > core/src/extra.cpp
git diff -U0 --name-only HEAD^ | grep -oP 'engine/include/\K.*.hpp' | awk '{ $0= "#include <" $0 ">"; print }' > engine/src/extra.cpp
git diff -U0 --name-only HEAD^ | grep -oP 'engine/src/\K.*.hpp' | awk '{ $0= "#include \"" $0 "\""; print }' >> engine/src/extra.cpp
sed -i '/set(CUBOS_ENGINE_SOURCE/a "src/extra.cpp"' engine/CMakeLists.txt
echo '// NOLINTEND(misc-include-cleaner)' >> core/src/extra.cpp
git add engine/src/extra.cpp
- name: Prepare compile_commands.json
Expand Down

0 comments on commit 097e200

Please sign in to comment.