Struct rust_code_analysis::PreprocFile
source · pub struct PreprocFile {
pub direct_includes: HashSet<String>,
pub indirect_includes: HashSet<String>,
pub macros: HashSet<String>,
}
Expand description
Preprocessor data of a C/C++
file.
Fields§
§direct_includes: HashSet<String>
The set of include directives explicitly written in a file
indirect_includes: HashSet<String>
The set of include directives implicitly imported in a file from other files
macros: HashSet<String>
The set of macros of a file
Implementations§
source§impl PreprocFile
impl PreprocFile
sourcepub fn new_macros(macros: &[&str]) -> Self
pub fn new_macros(macros: &[&str]) -> Self
Adds new macros to the set of macro of a file.
Trait Implementations§
source§impl Debug for PreprocFile
impl Debug for PreprocFile
source§impl Default for PreprocFile
impl Default for PreprocFile
source§fn default() -> PreprocFile
fn default() -> PreprocFile
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PreprocFile
impl<'de> Deserialize<'de> for PreprocFile
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more