Thread Safety: Added basic argument parsing for all new attributes.
This patch special cases the parser for thread safety attributes so that all attribute arguments are put in the argument list (instead of a special parameter) since arguments may not otherwise resolve correctly without two-token lookahead. This patch also adds checks to make sure that attribute arguments are lockable objects. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137130 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- docs/LanguageExtensions.html 29 additions, 34 deletionsdocs/LanguageExtensions.html
- include/clang/Basic/DiagnosticGroups.td 3 additions, 0 deletionsinclude/clang/Basic/DiagnosticGroups.td
- include/clang/Basic/DiagnosticSemaKinds.td 19 additions, 0 deletionsinclude/clang/Basic/DiagnosticSemaKinds.td
- include/clang/Parse/Parser.h 7 additions, 0 deletionsinclude/clang/Parse/Parser.h
- lib/Parse/ParseDecl.cpp 80 additions, 0 deletionslib/Parse/ParseDecl.cpp
- lib/Sema/SemaDeclAttr.cpp 160 additions, 51 deletionslib/Sema/SemaDeclAttr.cpp
- test/SemaCXX/warn-thread-safety.cpp 440 additions, 78 deletionstest/SemaCXX/warn-thread-safety.cpp
Loading
Please register or sign in to comment