http://bugzilla.opensuse.org/show_bug.cgi?id=1199943 http://bugzilla.opensuse.org/show_bug.cgi?id=1199943#c2 --- Comment #2 from Aaron Puchert <aaronpuchert@alice-dsl.net> --- (In reply to Andreas Nordal from comment #0)
Minimal reproducer:
/tmp/compile_commands.json:
[{ "directory": "/tmp", "command": "g++ -std=c++17 -Iweird_include -c takes_string_view.cpp -o takes_string_view.o", "file": "takes_string_view.o" }]
What if you use clang++ instead of g++? Not sure how clangd reads that file, it might ignore some flags if the compiler isn't clang, as GCC and Clang flags aren't fully compatible. If that doesn't work, please try passing --log=info or --log=verbose to clangd itself (not via compile_commands.json), maybe that gives us more information. -- You are receiving this mail because: You are on the CC list for the bug.