[PATCH] D107304: [clangd][query-driver] Extract GCC version from the driver output
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 3 01:21:21 PDT 2021
kadircet added a comment.
I am not sure this is a good idea. Surely we can go with this approach and pretend to have the same GNUC version as the toolchain, but we are still using clang underneath as @joerg pointed out and we might not be able to parse language/compiler extensions supported by GNU compilers, which will lead to confusion.
I think in such cases people should just have a `.clangd` file in their repo that adds `-fgnuc-version=x.y.z` to compile flags, i.e:
CompileFlags:
Add: -fgnuc-version=x.y.z
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107304/new/
https://reviews.llvm.org/D107304
More information about the cfe-commits
mailing list