Skip to main content

cpp_rendered_name_fq

Function cpp_rendered_name_fq 

Source
pub fn cpp_rendered_name_fq(rendered: &str) -> FqName
Expand description

Structured name for a rendered C++ qualified name supplied at the input edge, such as an Analyzer::definitions("ns.Outer$Inner") argument.

The shared client-path splitter only knows ::, ., \, / and +, so it hands back one component for a nested-class chain (Outer$Inner). An exact-name lookup then asks the store for owner ns with identifier Outer$Inner, while the declaration persists as a SegmentKind::Type/SegmentKind::Nested pair whose identifier is the class’s own name (Inner). Rebuilding the $ split from the same rule that emits it ([cpp_push_type_chain]) keeps the query’s owner/terminal boundary identical to the persisted one. A $ that is not a nesting join (gcc $-identifiers, #2140) cannot be told apart from this spelling here, and stays reachable through the identifier fallback, which seeks the whole component text as one spelling.