language server clangd for c++11 warning #8844
Answered
by
kirawi
Kurt-Shiwz
asked this question in
General
-
What should do in language.toml, i have try [[language]]
name = "cpp"
# args = [ "-Wc++11-extensions" ]
# args = [ "-std=c++11" ]
# config = { "clangd.fallbackFlags" = [ "-Wc++11-extensions" ] }
# config = { "clangd.fallbackFlags" = [ "-std=c++11" ] }
# config = { "clangd.arguments" = [ "-std=c++11" ] }
# config = { "clangd.arguments" = [ "-Wc++11-extensions" ] }
scope = "source.cpp"
injection-regex = "cpp"
file-types = ["cc", "hh", "c++", "cpp", "hpp", "h", "ipp", "tpp", "cxx", "hxx", "ixx", "txx", "ino", "C", "H", "cu", "cuh", "cppm", "h++", "ii", "inl", { suffix = ".hpp.in" }, { suffix = ".h.in" }]
comment-token = "//"
language-servers = [ "clangd" ]
indent = { tab-width = 4, unit = " " }
|
Beta Was this translation helpful? Give feedback.
Answered by
kirawi
Nov 17, 2023
Replies: 1 comment 4 replies
-
Configuration is now under the language-server, not the language. The block would be |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also the config should be
languages.toml
notlanguage.toml