diff options
author | Caitlin Sadowski <supertri@google.com> | 2011-09-08 17:42:22 +0000 |
---|---|---|
committer | Caitlin Sadowski <supertri@google.com> | 2011-09-08 17:42:22 +0000 |
commit | 9385dd7415826abe3484d49caa30fe97c7df1407 (patch) | |
tree | ad2e7f11ed20ca4a79dcfbecc9c462efff10b0de /clang/lib/Sema/SemaDecl.cpp | |
parent | f774712782d69d8affff56453f0bea30d9d591e4 (diff) | |
download | bcm5719-llvm-9385dd7415826abe3484d49caa30fe97c7df1407.tar.gz bcm5719-llvm-9385dd7415826abe3484d49caa30fe97c7df1407.zip |
Thread Safety: Patch to implement delayed parsing of attributes within a
class scope.
This patch was also written by DeLesley Hutchins.
llvm-svn: 139301
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index f4898a1dd8f..251913eb796 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -6778,6 +6778,15 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, return dcl; } + +/// When we finish delayed parsing of an attribute, we must attach it to the +/// relevant Decl. +void Sema::ActOnFinishDelayedAttribute(Scope *S, Decl *D, + ParsedAttributes &Attrs) { + ProcessDeclAttributeList(S, D, Attrs.getList()); +} + + /// ImplicitlyDefineFunction - An undeclared identifier was used in a function /// call, forming a call to an implicitly defined function (per C99 6.5.1p2). NamedDecl *Sema::ImplicitlyDefineFunction(SourceLocation Loc, |