]> granicus.if.org Git - clang/commit
Thread safety analysis: Run more tests with capability attributes [NFC]
authorAaron Puchert <aaronpuchert@alice-dsl.net>
Mon, 17 Sep 2018 21:37:22 +0000 (21:37 +0000)
committerAaron Puchert <aaronpuchert@alice-dsl.net>
Mon, 17 Sep 2018 21:37:22 +0000 (21:37 +0000)
commit0fb55e03c75d4e807dc67af9f9dfba9ff45fefa7
tree5b9e4de2a76fa5393c8415bbf185917c30e08cf6
parentb9dbcf4f94043cb8ae723e8d818650c15ef670d7
Thread safety analysis: Run more tests with capability attributes [NFC]

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342418 91177308-0d34-0410-b5e6-96231b3b80d8
test/SemaCXX/thread-safety-annotations.h [new file with mode: 0644]
test/SemaCXX/warn-thread-safety-analysis.cpp
test/SemaCXX/warn-thread-safety-negative.cpp
test/SemaCXX/warn-thread-safety-verbose.cpp