aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorChris Carlon <chris.carlon25@gmail.com>2023-10-24 17:33:00 -0400
committerGitHub <noreply@github.com>2023-10-24 17:33:00 -0400
commit3935a29a3e8acf31bb1658265e8f9b977435f6bb (patch)
tree09e1c87cb65159fa1694c718b6381cd0b82cbd53 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parent2f3d4f6c9829bfc17a3e2d034286c03940d506ec (diff)
downloadllvm-3935a29a3e8acf31bb1658265e8f9b977435f6bb.zip
llvm-3935a29a3e8acf31bb1658265e8f9b977435f6bb.tar.gz
llvm-3935a29a3e8acf31bb1658265e8f9b977435f6bb.tar.bz2
[clangd] Support `-stdlib` flags in SystemIncludeExtractor. (#69283)
The `--stdlib` flag can affect the system headers used by `clang` during compilation. By default, `clang` will use the platform-installed C++ standard headers, but with `--stdlib=libc++`, `clang` can use headers included in the distribution for its `libc++` implementation. Prior to this patch, if `compile_commands.json` specified `-stdlib=libc++` or an equivalent form and `--query-driver` took effect, `clangd` would ignore `stdlib` and index based on the platform's headers. When these mismatch, e.g. due to version differences, `clangd`'s completions and the actual compilation can differ. fixes clangd/clangd#1784 --------- Co-authored-by: Chris Carlon <cjc25@cjc25.com>
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions