summaryrefslogtreecommitdiff
path: root/clang/include/clang/Sema/Scope.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/include/clang/Sema/Scope.h')
-rw-r--r--clang/include/clang/Sema/Scope.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/include/clang/Sema/Scope.h b/clang/include/clang/Sema/Scope.h
index 7848df8f70d9c..6133425a42a62 100644
--- a/clang/include/clang/Sema/Scope.h
+++ b/clang/include/clang/Sema/Scope.h
@@ -385,6 +385,12 @@ public:
return getFlags() & Scope::FunctionPrototypeScope;
}
+ /// isFunctionDeclarationScope - Return true if this scope is a
+ /// function prototype scope.
+ bool isFunctionDeclarationScope() const {
+ return getFlags() & Scope::FunctionDeclarationScope;
+ }
+
/// isAtCatchScope - Return true if this scope is \@catch.
bool isAtCatchScope() const {
return getFlags() & Scope::AtCatchScope;