Skip to content

Commit

Permalink
ast: Remove prefixes of ast interfaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
xlauko committed Sep 9, 2024
1 parent 83d8d9c commit c48a261
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions include/vast/Interfaces/AST/DeclInterface.td
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
include "mlir/IR/OpBase.td"
include "vast/Interfaces/AST/Common.td"

def VAST_TagDeclInterface : VAST_ASTOpInterface< "VAST_TagDeclInterface" > {
def VAST_TagDeclInterface : VAST_ASTOpInterface< "TagDeclInterface" > {

let description = [{
An interface to provide [`clang::TagDecl`]
Expand All @@ -16,7 +16,7 @@ def VAST_TagDeclInterface : VAST_ASTOpInterface< "VAST_TagDeclInterface" > {
let methods = [];
}

def VAST_DeclInterface : VAST_ASTOpInterface< "VAST_DeclInterface" > {
def VAST_DeclInterface : VAST_ASTOpInterface< "DeclInterface" > {

let description = [{
An interface to provide [`clang::Decl`]
Expand All @@ -30,7 +30,7 @@ def VAST_DeclInterface : VAST_ASTOpInterface< "VAST_DeclInterface" > {
];
}

def VAST_NamedDeclInterface : VAST_ASTOpInterface< "VAST_NamedDeclInterface",
def VAST_NamedDeclInterface : VAST_ASTOpInterface< "NamedDeclInterface",
[VAST_DeclInterface] > {

let description = [{
Expand All @@ -41,7 +41,7 @@ def VAST_NamedDeclInterface : VAST_ASTOpInterface< "VAST_NamedDeclInterface",
let methods = [];
}

def VAST_ValueDeclInterface : VAST_ASTOpInterface< "VAST_ValueDeclInterface",
def VAST_ValueDeclInterface : VAST_ASTOpInterface< "ValueDeclInterface",
[VAST_NamedDeclInterface] > {

let description = [{
Expand All @@ -54,7 +54,7 @@ def VAST_ValueDeclInterface : VAST_ASTOpInterface< "VAST_ValueDeclInterface",
];
}

def VAST_DeclaratorDeclInterface : VAST_ASTOpInterface< "VAST_DeclaratorDeclInterface",
def VAST_DeclaratorDeclInterface : VAST_ASTOpInterface< "DeclaratorDeclInterface",
[VAST_ValueDeclInterface] > {

let description = [{
Expand All @@ -65,7 +65,7 @@ def VAST_DeclaratorDeclInterface : VAST_ASTOpInterface< "VAST_DeclaratorDeclInte
let methods = [];
}

def VAST_FieldDeclInterface : VAST_ASTOpInterface< "VAST_FieldDeclInterface",
def VAST_FieldDeclInterface : VAST_ASTOpInterface< "FieldDeclInterface",
[VAST_DeclaratorDeclInterface] > {

let description = [{
Expand All @@ -79,7 +79,7 @@ def VAST_FieldDeclInterface : VAST_ASTOpInterface< "VAST_FieldDeclInterface",
];
}

def VAST_VarDeclInterface : VAST_ASTOpInterface< "VAST_VarDeclInterface",
def VAST_VarDeclInterface : VAST_ASTOpInterface< "VarDeclInterface",
[VAST_DeclaratorDeclInterface] > {

let description = [{
Expand All @@ -96,18 +96,4 @@ def VAST_VarDeclInterface : VAST_ASTOpInterface< "VAST_VarDeclInterface",
];
}

def VAST_RecordDeclInterface : VAST_ASTOpInterface< "VAST_RecordDeclInterface",
[VAST_TagDeclInterface] > {

let description = [{
An interface to provide [`clang::RecordDecl`]
(https://clang.llvm.org/doxygen/classclang_1_1RecordDecl.html) functionality.
}];

let methods = [
InterfaceMethod< "clang::RecordDecl::fields", "std::vector< vast::ast::VAST_FieldDeclInterface >",
"fields", (ins) >
];
}

#endif // VAST_INTERFACES_AST_DECL_INTERFACE

0 comments on commit c48a261

Please sign in to comment.