Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1120)

Unified Diff: lib/Sema/SemaDecl.cpp

Issue 4975049: Added support for late parsing of attribute arguments to GNU attributes.
Patch Set: More style fixes. Created 12 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/Sema/AnalysisBasedWarnings.cpp ('k') | test/SemaCXX/warn-thread-safety-analysis.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Sema/SemaDecl.cpp
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 85352c2e5a6f26ebebcb2fadac08f0be2d73c53e..33c45bd2e30e87ddf382fc98447c65d3e8e216cf 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -6724,6 +6724,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,
« no previous file with comments | « lib/Sema/AnalysisBasedWarnings.cpp ('k') | test/SemaCXX/warn-thread-safety-analysis.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b