MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / new

Method new

atomic-semantic/src/parsers/cpp.rs:34–43  ·  view source on GitHub ↗

Create a new C++ parser.

()

Source from the content-addressed store, hash-verified

32impl CppParser {
33 /// Create a new C++ parser.
34 pub fn new() -> Self {
35 let mut parser = Parser::new();
36 parser
37 .set_language(&tree_sitter_cpp::LANGUAGE.into())
38 .expect("Failed to load C++ grammar");
39 Self {
40 parser,
41 is_c: false,
42 }
43 }
44
45 /// Create a new C parser.
46 pub fn new_c() -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected