CoolFace
Apppublic

salim0986/graph-bug-ai

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes
relationships.scm45 linesDownload Raw Back to cpp
1; ============================================================2; C++ — structural relationships3; ============================================================4 5; --- CALLS ---6 7; foo()8(call_expression9  function: (identifier) @call.callee)10 11; obj.method()  /  ptr->method()12(call_expression13  function: (field_expression14    field: (field_identifier) @call.callee))15 16; ns::func()  /  Class::static_method()17(call_expression18  function: (qualified_identifier19    name: (identifier) @call.callee))20 21; --- IMPORTS (includes) ---22 23; #include "header.h"24(preproc_include25  path: (string_literal) @import.module)26 27; #include <vector>28(preproc_include29  path: (system_lib_string) @import.module)30 31; --- INHERITANCE ---32 33; class Foo : public Bar34(class_specifier35  name: (type_identifier) @inherit.child36  (base_class_clause37    (type_identifier) @inherit.parent))38 39; Multiple inheritance: class Foo : public Bar, public Baz40(class_specifier41  name: (type_identifier) @inherit.child42  (base_class_clause43    (qualified_identifier44      name: (identifier) @inherit.parent)))45