diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-01-16 13:03:14 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-01-16 13:03:14 +0000 |
commit | 36a5350e51a6dcfae424332aaa266a1e5bfb8c4f (patch) | |
tree | 4a97f7178bb62aece03a55278b72d7e675f1897b /clang/lib/Sema/SemaStmtAttr.cpp | |
parent | c61623b1708fa7aff26cdaf25a6007f7d656ba7d (diff) | |
download | bcm5719-llvm-36a5350e51a6dcfae424332aaa266a1e5bfb8c4f.tar.gz bcm5719-llvm-36a5350e51a6dcfae424332aaa266a1e5bfb8c4f.zip |
Distinguish between attributes explicitly written at the request of the user, and attributes implicitly generated to assist in bookkeeping by the compiler. This is done so by table generating a CreateImplicit method for each attribute.
Additionally, remove the optional nature of the spelling list index when creating attributes. This is supported by table generating a Spelling enumeration when the spellings for an attribute are distinct enough to warrant it.
llvm-svn: 199378
Diffstat (limited to 'clang/lib/Sema/SemaStmtAttr.cpp')
-rw-r--r-- | clang/lib/Sema/SemaStmtAttr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaStmtAttr.cpp b/clang/lib/Sema/SemaStmtAttr.cpp index 80d203e3f5b..9bb191d52bb 100644 --- a/clang/lib/Sema/SemaStmtAttr.cpp +++ b/clang/lib/Sema/SemaStmtAttr.cpp @@ -40,7 +40,8 @@ static Attr *handleFallThroughAttr(Sema &S, Stmt *St, const AttributeList &A, S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_outside_switch); return 0; } - return ::new (S.Context) FallThroughAttr(A.getRange(), S.Context); + return ::new (S.Context) FallThroughAttr(A.getRange(), S.Context, + A.getAttributeSpellingListIndex()); } |