pub struct CppParser;Expand description
C++ language parser with full CodeIntelligence implementation
Implementations§
Trait Implementations§
Source§impl CodeIntelligence for CppParser
impl CodeIntelligence for CppParser
Source§fn get_signatures(&self, source: &[u8]) -> Result<Vec<SignatureInfo>>
fn get_signatures(&self, source: &[u8]) -> Result<Vec<SignatureInfo>>
Extract function/class signatures from source code Read more
Source§fn get_signatures_with_parser(
&self,
source: &[u8],
parser: &mut Parser,
) -> Result<Vec<SignatureInfo>>
fn get_signatures_with_parser( &self, source: &[u8], parser: &mut Parser, ) -> Result<Vec<SignatureInfo>>
Extract signatures using a provided parser instance (for pooling) Read more
Source§fn compute_cfg(
&self,
source: &[u8],
node_id: usize,
) -> Result<Graph<Block, Edge>>
fn compute_cfg( &self, source: &[u8], node_id: usize, ) -> Result<Graph<Block, Edge>>
Compute control flow graph for a node Read more
Source§fn extract_complexity(&self, node: &Node<'_>) -> ComplexityMetrics
fn extract_complexity(&self, node: &Node<'_>) -> ComplexityMetrics
Extract complexity metrics for a node Read more
Auto Trait Implementations§
impl Freeze for CppParser
impl RefUnwindSafe for CppParser
impl Send for CppParser
impl Sync for CppParser
impl Unpin for CppParser
impl UnsafeUnpin for CppParser
impl UnwindSafe for CppParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more