ICG 2
Electric Boogaloo
JClang.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 
4 #include <nlohmann/json.hpp>
5 
7 
8 namespace JClang {
9 
10  enum NodeKind {
20  Unknown
21  };
22 
29  NodeKind getNodeKind (json& node);
30 
37  std::string getQualifiedType (json& node);
38 
45  std::vector<std::string> getBaseClasses (json& class_node);
46 
53  std::string getNodeName(json& node);
54 
61  json& getNodeInner(json& node);
62 }
nlohmann::json json
Definition: ASTFilter.hpp:11
nlohmann::json json
Definition: JClang.hpp:6
Definition: JClang.hpp:8
NodeKind getNodeKind(json &node)
Get the kind of a node.
Definition: JClang.cpp:9
std::string getNodeName(json &node)
Get the name of the given node.
Definition: JClang.cpp:102
std::vector< std::string > getBaseClasses(json &class_node)
Get the base classes of a class declaration.
Definition: JClang.cpp:82
std::string getQualifiedType(json &node)
Get the Qualified Type of the field.
Definition: JClang.cpp:62
json & getNodeInner(json &node)
Get a reference to the json node representing a list of what's inside this node.
Definition: JClang.cpp:111
NodeKind
Definition: JClang.hpp:10
@ ClassTemplateSpecialization
Definition: JClang.hpp:15
@ TypedefDecl
Definition: JClang.hpp:19
@ TemplateArgument
Definition: JClang.hpp:17
@ NamespaceDecl
Definition: JClang.hpp:13
@ ClassDecl
Definition: JClang.hpp:11
@ ClassTemplateDecl
Definition: JClang.hpp:14
@ UsingDecl
Definition: JClang.hpp:18
@ FieldDecl
Definition: JClang.hpp:12
@ Unknown
Definition: JClang.hpp:20
@ TemplateParameterDecl
Definition: JClang.hpp:16