Closed bk322 closed 5 years ago
GCC 6/Clang 6 default to -std=gnu++14
Make sure your compile_commands.json
or .ccls
specifys -std=c++17
(or gnu++17
)
Indeed, creating .ccls
in root folder with
clang++
%cpp -std=c++17
solves it.
Also, header #include <iostream>
is clickable, but when I click it nothing happens. Is it supposed to be like that, or do I lack docs available to ccls / lsp?
I'm using latest of everything, but
flycheck
underlsp-ui
suggest thatccls
doesn't support C++17:Where to look for a fix?