Commit Graph

6 Commits

Author SHA1 Message Date
Eike Foede
b9ea8c2256 clang-tools: Respect $CLANGD_FLAGS in wrapper
clangd can take arguments also via environment variable CLANGD_FLAGS.
This has to be respected in the wrapper, which checks whether a
--query-driver was provided.
2026-03-12 11:53:22 +01:00
Yuxuan Shui
0273d9cedf clang-tools: use $C_INCLUDE_PATH for C includes
$CPATH is taken to mean the same thing as -I by clang, whereas
$C_INCLUDE_PATH is -isystem. Using $CPATH means tools like clangd will
generate warnings for problems in system headers, which is undesirable.

See llvm/llvm-project#154015
2026-01-28 13:08:37 +00:00
Yuxuan Shui
10b12020a8 clang-tools: don't include C++ include paths in $CPATH 2026-01-28 13:08:35 +00:00
Patryk Wychowaniec
f9c27d12ca clang-tools: add support for --query-driver 2026-01-05 15:53:46 +02:00
Randy Eckenrode
d46fa2640e llvmPackages.clang-tools: add support for -cxx-isystem
This is necessary after https://github.com/NixOS/nixpkgs/pull/445095,
which moved libc++ to -cxx-isystem to improve compatibility with build
systems that invoke `clang` to compile C++ code.
2025-11-17 20:35:07 -05:00
Yueh-Shun Li
eb572c420d clang-tools: move into llvmPackages 2024-06-23 01:34:26 +05:30