summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Semantic.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-06-26 09:11:14 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2009-06-26 09:11:14 +0200
commitfd8cd69a47e65a675ec832c580ecb53f0ff94892 (patch)
tree9e083e8470f51a658d4d60698ffc2a96b5813a09 /src/shared/cplusplus/Semantic.cpp
parent0b1bc40b65d59b9c79813e152d26340fe811f4d3 (diff)
downloadqt-creator-fd8cd69a47e65a675ec832c580ecb53f0ff94892.tar.gz
Introduced Document::CheckMode.
Diffstat (limited to 'src/shared/cplusplus/Semantic.cpp')
-rw-r--r--src/shared/cplusplus/Semantic.cpp8
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; }