diff options
| author | Caitlin Sadowski <supertri@google.com> | 2011-07-28 20:12:35 +0000 |
|---|---|---|
| committer | Caitlin Sadowski <supertri@google.com> | 2011-07-28 20:12:35 +0000 |
| commit | 63fa667c68740ef3430bf30876550b770254ad28 (patch) | |
| tree | 482f7fbbf921ba4054698fafdea5cacecc331f02 /clang/lib/Sema/AttributeList.cpp | |
| parent | d7ac43eed1ec186f95edd72277494926764bb913 (diff) | |
| download | bcm5719-llvm-63fa667c68740ef3430bf30876550b770254ad28.tar.gz bcm5719-llvm-63fa667c68740ef3430bf30876550b770254ad28.zip | |
Added basic parsing for all remaining attributes, thread safety
analysis. This includes checking that the attributes are applied in the
correct contexts and with the correct number of arguments.
llvm-svn: 136383
Diffstat (limited to 'clang/lib/Sema/AttributeList.cpp')
| -rw-r--r-- | clang/lib/Sema/AttributeList.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/lib/Sema/AttributeList.cpp b/clang/lib/Sema/AttributeList.cpp index babf491b949..d9f17b42da4 100644 --- a/clang/lib/Sema/AttributeList.cpp +++ b/clang/lib/Sema/AttributeList.cpp @@ -215,5 +215,18 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) { .Case("scoped_lockable", AT_scoped_lockable) .Case("lockable", AT_lockable) .Case("no_thread_safety_analysis", AT_no_thread_safety_analysis) + .Case("guarded_by", AT_guarded_by) + .Case("pt_guarded_by", AT_pt_guarded_by) + .Case("acquired_after", AT_acquired_after) + .Case("acquired_before", AT_acquired_before) + .Case("exclusive_lock_function", AT_exclusive_lock_function) + .Case("exclusive_locks_required", AT_exclusive_locks_required) + .Case("exclusive_trylock_function", AT_exclusive_trylock_function) + .Case("lock_returned", AT_lock_returned) + .Case("locks_excluded", AT_locks_excluded) + .Case("shared_lock_function", AT_shared_lock_function) + .Case("shared_locks_required", AT_shared_locks_required) + .Case("shared_trylock_function", AT_shared_trylock_function) + .Case("unlock_function", AT_unlock_function) .Default(UnknownAttribute); } |

