Skip to main content

cpp_name

Function cpp_name 

Source
pub fn cpp_name(ast: &Ast, type_: Id<TypeNode>) -> String
Expand description

The C++ name a type takes in fastddsgen’s output.

The module path stays a namespace path, so ::common::util::Location is common::util::Location. This is what --print-c-name prints for the Fast DDS probe, and it is also the enum’s scope: enum class means an enumerator is Colour::RED, never a bare RED.