Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
918856ca
Commit
918856ca
authored
Dec 18, 2009
by
Erik Verbruggen
Browse files
Added method to check if a scope is an ObjCClass scope.
parent
19beb9c8
Changes
2
Show whitespace changes
Inline
Side-by-side
src/shared/cplusplus/Scope.cpp
View file @
918856ca
...
...
@@ -172,6 +172,13 @@ bool Scope::isPrototypeScope() const
return
false
;
}
bool
Scope
::
isObjCClassScope
()
const
{
if
(
_owner
)
return
_owner
->
isObjCClass
();
return
false
;
}
bool
Scope
::
isFunctionScope
()
const
{
Function
*
f
=
0
;
...
...
src/shared/cplusplus/Scope.h
View file @
918856ca
...
...
@@ -111,6 +111,9 @@ public:
/// Returns true if this scope's owner is a Prototype Symbol.
bool
isPrototypeScope
()
const
;
/// Returns true if this scope's owner is an ObjCClass Symbol.
bool
isObjCClassScope
()
const
;
/// Adds a Symbol to this Scope.
void
enterSymbol
(
Symbol
*
symbol
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment