use serde::{Deserialize, Serialize};
use super::{default_cc_compiler, default_cxx_compiler};
use super::processor_configs::IncludeScanner;
#[derive(Debug, Deserialize, Serialize, Clone)]
#[serde(deny_unknown_fields)]
pub struct CppAnalyzerConfig {
#[serde(default)]
pub include_scanner: IncludeScanner,
#[serde(default)]
pub include_paths: Vec<String>,
#[serde(default)]
pub pkg_config: Vec<String>,
#[serde(default)]
pub include_path_commands: Vec<String>,
#[serde(default)]
pub exclude_dirs: Vec<String>,
#[serde(default = "default_cc_compiler")]
pub cc: String,
#[serde(default = "default_cxx_compiler")]
pub cxx: String,
#[serde(default)]
pub cflags: Vec<String>,
#[serde(default)]
pub cxxflags: Vec<String>,
}
impl Default for CppAnalyzerConfig {
fn default() -> Self {
Self {
include_scanner: IncludeScanner::default(),
include_paths: Vec::new(),
pkg_config: Vec::new(),
include_path_commands: Vec::new(),
exclude_dirs: Vec::new(),
cc: default_cc_compiler(),
cxx: default_cxx_compiler(),
cflags: Vec::new(),
cxxflags: Vec::new(),
}
}
}
#[derive(Debug, Deserialize, Serialize, Clone, Default)]
#[serde(deny_unknown_fields)]
pub struct PythonAnalyzerConfig {
}