Skip to content

GCC Function handled_component_p

James Michael DuPont edited this page May 13, 2017 · 1 revision

Example of finding

switch (TREE_CODE (t))
g.V("field_decl").In("nodetype").Tag("field").Out("scpe").Out("name").Out("name").
Has("strg","tree_base").Tag("source").Back("field").Out("name").Has("strg","code")
.Tag("fieldname").Back("field")
.In("op_1")
.In("op_0")
.In(["cond","op_0","op_1"])
.In(["body"],"s4").Tag('s4a')
.Out("name").Out("strg").Tag("name")
.Back('s4a').Out(["srcp"],"SourceFile")
.All()

https://github.com/gcc-mirror/gcc/blob/9c4d4a489e6bcd9486b09363e4b00809337b4bf0/gcc/tree.h#L4546

{
  "result": [
    {
      "any": "srcp",
      "field": "@660",
      "fieldname": "@878",
      "id": "tree.h:4539",
      "name": "handled_component_p",
      "s4": "body",
      "s4a": "@65917",
      "source": "@876"
    }
  ]
}
Clone this wiki locally