ccls
ccls copied to clipboard
Ability to suppress errors about unimplemented features
Observed behavior
Use of std::source_location (and presumably any other feature not yet implemented in clang) is flagged as an error.
Expected behavior
Use of these features is not flagged as an error.
Steps to reproduce
- Create a minimal application that uses a feature clang has not implemeted yet
#include <source_location>
#include <iostream>
int main(){
std::cout << std::source_location::current().function_name();
}
- Make sure it compiles with gcc
g++ test.cpp -std=c++20
- run ccls on it (see minimal
compile_commands.jsonbelow)
[
{
"directory": ".",
"command": "/usr/bin/c++ -std=gnu++20 -o test test.cpp",
"file": "test.cpp"
}
]
System information
- ccls version (
git describe --tags --long): 0.20210330-3 - clang version: 12.0.1
- OS: Linux
- Editor: neovim
- Language client (and version): c++20 compiled with gcc (not sure what is meant by language client).
I did try it with --gcc-toolchain=/usr (and various other directories) but that didn't work either.
Thanks in advance.