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

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to