Change #259982
| Category | curl |
| Changed by | Viktor Szakats <commit@vsz.me> |
| Changed at | Fri 06 Mar 2026 04:56:33 |
| Repository | https://github.com/curl/curl.git |
| Project | curl |
| Branch | master |
| Revision | 009facd23216d0884913d7db32c54bcd36ab002c |
Comments
cmake: improve clang-tidy test command-line reproduction - also query `INTERFACE_COMPILE_DEFINITIONS` and `INTERFACE_COMPILE_OPTIONS`. To further sync clang-tidy manual command-lines with the C compiler command-lines generated by CMake. In practice this adds `-I` options (via `INTERFACE_COMPILE_OPTIONS`) to the end of the command-line for dependency header directories. It does not change the outcome of clang-tidy runs. - limit querying `COMPILE_DEFINITIONS` and `COMPILE_OPTIONS` to the top target, the test itself. To not include options such as `-DCURL_HIDDEN_SYMBOLS` and `-fvisibility=hidden` (when set) via the libcurl shared lib. To sync with the actual C compiler command-line. - drop redundant `unset()`. - rename local function to be more specific. Follow-up to d9386a2f8ec3c4bd5ababc4eeb96ecd3e522b77c #20759 Closes #20829
Changed files
- CMake/Macros.cmake
- scripts/cmakelint.sh