diff options
Diffstat (limited to 'src/shared/cplusplus/Semantic.h')
-rw-r--r-- | src/shared/cplusplus/Semantic.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/shared/cplusplus/Semantic.h b/src/shared/cplusplus/Semantic.h index b07883e847..98c6450520 100644 --- a/src/shared/cplusplus/Semantic.h +++ b/src/shared/cplusplus/Semantic.h @@ -61,17 +61,18 @@ class CPLUSPLUS_EXPORT Semantic void operator =(const Semantic &other); public: - Semantic(Control *control); + Semantic(TranslationUnit *translationUnit); virtual ~Semantic(); + TranslationUnit *translationUnit() const; Control *control() const; - FullySpecifiedType check(SpecifierAST *specifier, Scope *scope); + FullySpecifiedType check(SpecifierListAST *specifier, Scope *scope); - FullySpecifiedType check(DeclaratorAST *declarator, FullySpecifiedType type, - Scope *scope, Name **name = 0); // ### ugly + FullySpecifiedType check(DeclaratorAST *declarator, const FullySpecifiedType &type, + Scope *scope, const Name **name = 0); // ### ugly - FullySpecifiedType check(PtrOperatorAST *ptrOperators, FullySpecifiedType type, + FullySpecifiedType check(PtrOperatorListAST *ptrOperators, const FullySpecifiedType &type, Scope *scope); FullySpecifiedType check(ObjCMethodPrototypeAST *methodPrototype, Scope *scope); @@ -82,11 +83,11 @@ public: void check(StatementAST *statement, Scope *scope); - Name *check(NameAST *name, Scope *scope); + const Name *check(NameAST *name, Scope *scope); - Name *check(NestedNameSpecifierAST *name, Scope *scope); + const Name *check(NestedNameSpecifierListAST *name, Scope *scope); - Name *check(ObjCSelectorAST *args, Scope *scope); + const Name *check(ObjCSelectorAST *args, Scope *scope); FullySpecifiedType check(ObjCTypeNameAST *typeName, Scope *scope); void check(ObjCMessageArgumentDeclarationAST *arg, Scope *scope); |