curl-curl/scripts
Viktor Szakats d9386a2f8e
cmake: fix system include directory position for clang-tidy in tests
To avoid a system include masking a custom directory, and e.g. picking
up system OpenSSL headers from `/usr/include` on Linux, instead of the
correct ones from a custom header directory, move system include
directories to the back of the header path list. Also to match what
CMake seems to be doing for the C compiler command-lines it generates.

CMake seems to use `-I`, while for these invocations we stick with
`-isystem` just in case.

This area remains fragile and likely not the final issue.

Fixing (seen in GHA/linux H3 c-ares):
```
Error while processing bld/tests/libtest/lib1521.c.
/usr/include/openssl/macros.h:147:4: error: "OPENSSL_API_COMPAT expresses an impossible API compatibility level" [clang-diagnostic-error]
Found compiler error(s).
  147 | #  error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
      |    ^
FAILED: [code=1] tests/libtest/CMakeFiles/libtests-clang-tidy
```
Ref: https://github.com/curl/curl/actions/runs/22468472670/job/65079885471?pr=20751

Bug: https://github.com/curl/curl/pull/20751#issuecomment-3970180687
Cherry-picked from #20751

Closes #20759
2026-02-27 13:40:30 +01:00
..
.checksrc REUSE: move copyright headers to .checksrc 2025-10-13 11:54:22 +02:00
cd2cd tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
cd2nroff tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
cdall badwords: fix issues found in scripts and other files 2025-11-17 17:18:07 +01:00
checksrc-all.pl checksrc-all.pl: skip non-repository files 2026-01-26 16:07:58 +01:00
checksrc.pl tidy-up: miscellaneous 2026-02-25 14:44:56 +01:00
ciconfig.pl tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
cijobs.pl tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
cmakelint.sh cmake: fix system include directory position for clang-tidy in tests 2026-02-27 13:40:30 +01:00
CMakeLists.txt cmake: replace deprecated PERL_FOUND with Perl_FOUND 2025-12-17 17:56:32 +01:00
completion.pl badwords: fix issues found in scripts and other files 2025-11-17 17:18:07 +01:00
contributors.sh tidy-up: miscellaneous 2026-01-15 13:06:13 +01:00
contrithanks.sh contrithanks.sh: adopt the stricter by: check from contributors.sh 2025-12-20 17:45:15 +01:00
coverage.sh GHA: add shellcheck job and fix warnings, shell tidy-ups 2024-04-08 09:37:24 +00:00
delta delta: fix grep patterns after white space edits 2025-12-30 14:04:10 +01:00
dmaketgz dmaketgz: use --no-cache when building docker image 2024-12-05 15:41:53 +01:00
extract-unit-protos scripts: enable strict warnings in Perl where missing, fix fallouts 2025-07-27 22:35:18 +02:00
firefox-db2pem.sh tidy-up: miscellaneous 2025-12-12 04:18:48 +01:00
installcheck.sh GHA: add shellcheck job and fix warnings, shell tidy-ups 2024-04-08 09:37:24 +00:00
Makefile.am build: add curl-lint/lint targets, CURL_LINT cmake option 2026-01-12 16:45:24 +01:00
maketgz scripts: use end-of-options marker in find -exec commands 2025-11-10 18:52:29 +01:00
managen tidy-up: miscellaneous 2026-02-25 14:44:56 +01:00
mdlinkcheck mdlinkcheck: only look for markdown links in markdown files 2025-12-11 23:40:07 +01:00
mk-ca-bundle.pl tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
mk-unity.pl cmake: add native clang-tidy support for tests, with concatenated sources 2026-02-25 17:28:35 +01:00
nroff2cd scripts: enable strict warnings in Perl where missing, fix fallouts 2025-07-27 22:35:18 +02:00
perlcheck.sh cmake: match filename suffixes with file content 2025-12-20 11:34:27 +01:00
pythonlint.sh scripts: move the ruff linter command into a script 2025-05-13 16:41:32 -07:00
randdisable spelling: file system 2025-08-22 15:53:41 +02:00
release-notes.pl badwords: fix issues found in scripts and other files 2025-11-17 17:18:07 +01:00
release-tools.sh badwords: fix issues found in scripts and other files 2025-11-17 17:18:07 +01:00
schemetable.c lib: separate scheme info from protocol implementation 2026-01-19 23:15:13 +01:00
singleuse.pl tidy-up: merge root packages directory into projects 2026-01-12 23:49:35 +01:00
spacecheck.pl tidy-up: miscellaneous 2026-02-25 14:44:56 +01:00
top-complexity tidy-up: miscellaneous 2026-02-25 14:44:56 +01:00
verify-release verify-release: update to avoid shellcheck warning SC2034 2025-11-10 16:06:48 +01:00
wcurl wcurl: import v2026.01.05 2026-01-06 10:12:31 +01:00