feat(parser): Add C and C++ support to ASTParser

This commit is contained in:
2026-05-05 18:42:53 -04:00
parent ab9446dc05
commit c025ebc29d
2 changed files with 19 additions and 2 deletions
+10
View File
@@ -42,6 +42,16 @@ def test_ast_parser_invalid_language() -> None:
# If it's intended to raise or handle gracefully, test it here.
pass
def test_ast_parser_cpp_init() -> None:
"""Verify that ASTParser can be initialized with 'cpp'."""
parser = ASTParser(language="cpp")
assert parser.language_name == "cpp"
def test_ast_parser_c_init() -> None:
"""Verify that ASTParser can be initialized with 'c'."""
parser = ASTParser(language="c")
assert parser.language_name == "c"
def test_ast_parser_get_curated_view() -> None:
"""Verify that get_curated_view preserves function bodies with @core_logic or # [HOT]."""
parser = ASTParser(language="python")