Hello!
In the last changelog, you mention the added support to configure the C/C++ standard used for compilation (which is supper cool btw!). But what is the configuration needed in the toml file to use this?
Hello!
In the last changelog, you mention the added support to configure the C/C++ standard used for compilation (which is supper cool btw!). But what is the configuration needed in the toml file to use this?
Hi,
You can configure it using the options c_version
and cpp_version
.
Here is a sample .deepsource.toml
that uses these configuration options:
[[analyzers]]
name = "cxx"
[analyzers.meta]
c_version = "c99"
cpp_version = "c++11"
The possible values for c_version
are “c99”, “c11” and “c17”.
For cpp_version
, the possible values are “c++98”, “c++03”, “c++11”, “c++14”, “c++17”, “c++20”, and “c++23”