summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-thread-safety-negative.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Thread safety analysis: Run more tests with capability attributes [NFC]Aaron Puchert2018-09-171-32/+10
| | | | | | | | | | | | | | | | | | | | | | Summary: We run the tests for -Wthread-safety-{negative,verbose} with the new attributes as well as the old ones. Also put the macros in a header so that we don't have to copy them all around. The warn-thread-safety-parsing.cpp test checks for warnings depending on the actual attribute name, so it can't undergo the same treatment. Together with D49275 this should fix PR33754. Reviewers: aaron.ballman, delesley, grooverdan Reviewed By: aaron.ballman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D52141 llvm-svn: 342418
* When cloning LocalInstantiationScope's, don't update the current scope in Sema.Richard Trieu2015-03-181-0/+17
| | | | | | | | | | Construction of LocalInstantiationScope automatically updates the current scope inside Sema. However, when cloning a scope, the current scope does not change. Change the cloning function to preserve the current scope. Review: http://reviews.llvm.org/D8407 BUG: https://llvm.org/bugs/show_bug.cgi?id=22931 llvm-svn: 232675
* Thread Safety Analysis: Move -Wthread-safety-negative out of theDeLesley Hutchins2014-08-141-1/+1
| | | | | | | -Wthread-safety umbrella flag, pending updates to documentation. The flag works, but is likely to be confusing to existing users of -Wthread-safety. llvm-svn: 215679
* Thread Safety Analysis: add a -Wthread-safety-negative flag that warns wheneverDeLesley Hutchins2014-08-041-0/+104
a mutex is acquired, but corresponding mutex is not provably not-held. This is based on the earlier negative requirements patch. llvm-svn: 214789
OpenPOWER on IntegriCloud