diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-07-31 13:22:32 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-07-31 13:22:32 +0200 |
commit | b713f1772a4de8330bcdd96a00b9cf103541e008 (patch) | |
tree | dbf903d169e12e983d1cc9355723ea1737d0b270 /src/shared/cplusplus/CheckSpecifier.cpp | |
parent | b54517ad0fab5cfd1500975c52641d0afca6748d (diff) | |
download | qt-creator-b713f1772a4de8330bcdd96a00b9cf103541e008.tar.gz |
Added semantic checks for method declarations.
Diffstat (limited to 'src/shared/cplusplus/CheckSpecifier.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckSpecifier.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/shared/cplusplus/CheckSpecifier.cpp b/src/shared/cplusplus/CheckSpecifier.cpp index c112561f16..103357c5a6 100644 --- a/src/shared/cplusplus/CheckSpecifier.cpp +++ b/src/shared/cplusplus/CheckSpecifier.cpp @@ -80,6 +80,17 @@ FullySpecifiedType CheckSpecifier::check(SpecifierAST *specifier, Scope *scope) return switchFullySpecifiedType(previousType); } +FullySpecifiedType CheckSpecifier::check(ObjCTypeNameAST *typeName, Scope *scope) +{ + FullySpecifiedType previousType = switchFullySpecifiedType(FullySpecifiedType()); + Scope *previousScope = switchScope(scope); + + accept(typeName); + + (void) switchScope(previousScope); + return switchFullySpecifiedType(previousType); +} + SpecifierAST *CheckSpecifier::switchSpecifier(SpecifierAST *specifier) { SpecifierAST *previousSpecifier = _specifier; @@ -402,4 +413,11 @@ bool CheckSpecifier::visit(AttributeSpecifierAST *ast) return false; } +bool CheckSpecifier::visit(ObjCTypeNameAST * /*ast*/) +{ + // TODO: implement this (EV) + _fullySpecifiedType = FullySpecifiedType(); + return false; +} + CPLUSPLUS_END_NAMESPACE |