CQuery - Helmut-Ortmann/lsp-csharp-analyzer GitHub Wiki
CQuery Langage Server
I use the C/C++ CQuery language server.
Tips
See the CQuery Settings in CQuery Settings dialog, Contributions:
Here you find things I stumbled about. If you have experiences or correction don't hesitate to contact me.
I admit, my knowledge about clang, C/C++ is limited.
Extensions
Symbol
- Alias 254
- Macro 255
Function
- Cquery/Callers Usage of a function
- CQuery/Vars Usage of variables
clang arguments
It tooks me a while to get a foreign C/C++ workspace running. After a lot of try and error I dentified parameters to start with. The easiest way if you have just a bunch of code is to create a '.Query' file in your workspace root. I got the parameters from the file 'project.cc' and as if by magic CQuery works. If it related to this parameters? Whow knows?
%clang++
%C -std=gnu11
%cpp -std=gnu++14
-xc
# possible values see in
# - project.cc
-Wno-unknown-warning-option
-Wno-portable-include-path
-Wno-missing-field-initializers
-Wno-unused-parameter
-Wno-c++11-narrowing
-Wno-covered-switch-default
-Wno-unneeded-internal-declaration
-Wno-inconsistent-missing-override
-Wno-undefined-var-template
-Wno-nonportable-include-path
-Wno-address-of-packed-member
-Wno-unused-lambda-capture
-Wno-user-defined-warnings
-Wno-enum-compare-switch
-Wno-tautological-unsigned-zero-compare
-Wno-null-pointer-arithmetic
-Wno-tautological-unsigned-enum-zero-compare
File .CQuery
.CQuery File to put clang parameters into. There are other possibilities (See clang arguments).