Comment # 4 on bug 1199943 from
(In reply to Andreas Nordal from comment #3)
> I[19:42:18.100] Compile command from CDB is: /usr/bin/clang++
> --driver-mode=g++ -Iweird_include -c -resource-dir=/usr/lib64/clang/13.0.1
> -- /tmp/takes_string_view.cpp

That looks like it's really being dropped. Not nice.

I haven't yet figured out why, but looking through clangd/CompileCommands.cpp
indicates that -Xclang -std=c++17 should be passed through. That should have
the same effect (I think). I tried this locally and get

/usr/bin/clang++ --driver-mode=g++ -Xclang -std=c++17 [...]

So that should give you a workaround for now.

The bug is somewhat perplexing to me, because we don't have any patch in that
area, and this bug seems like something many users should notice. But I find no
reports of it upstream.


You are receiving this mail because: