diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-06-26 09:11:14 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-06-26 09:11:14 +0200 |
commit | fd8cd69a47e65a675ec832c580ecb53f0ff94892 (patch) | |
tree | 9e083e8470f51a658d4d60698ffc2a96b5813a09 /src/shared/cplusplus/Semantic.cpp | |
parent | 0b1bc40b65d59b9c79813e152d26340fe811f4d3 (diff) | |
download | qt-creator-fd8cd69a47e65a675ec832c580ecb53f0ff94892.tar.gz |
Introduced Document::CheckMode.
Diffstat (limited to 'src/shared/cplusplus/Semantic.cpp')
-rw-r--r-- | src/shared/cplusplus/Semantic.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Semantic.cpp b/src/shared/cplusplus/Semantic.cpp index ff0fa418f8..9e7108bbc5 100644 --- a/src/shared/cplusplus/Semantic.cpp +++ b/src/shared/cplusplus/Semantic.cpp @@ -67,6 +67,7 @@ public: Data(Semantic *semantic, Control *control) : semantic(semantic), control(control), + skipFunctionBodies(false), visibility(Symbol::Public), methodKey(Function::NormalMethod), checkSpecifier(0), @@ -89,6 +90,7 @@ public: Semantic *semantic; Control *control; + bool skipFunctionBodies; int visibility; int methodKey; CheckSpecifier *checkSpecifier; @@ -142,6 +144,12 @@ Name *Semantic::check(NameAST *name, Scope *scope) Name *Semantic::check(NestedNameSpecifierAST *name, Scope *scope) { return d->checkName->check(name, scope); } +bool Semantic::skipFunctionBodies() const +{ return d->skipFunctionBodies; } + +void Semantic::setSkipFunctionBodies(bool skipFunctionBodies) +{ d->skipFunctionBodies = skipFunctionBodies; } + int Semantic::currentVisibility() const { return d->visibility; } |