[PATCH] D14731: [libcxx] Add clang thread safety annotations to mutex and lock_guard
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 15 19:00:46 PDT 2016
EricWF added a comment.
So this LGTM except for one last change (I'm sorry). LIT now knows when "-Werror=thread-safety" is being passed. Could you change the tests guarded by "#if !defined(__clang__) || !__has_attribute(aquire_capability)` to say "// REQUIRES: thread-safety" instead? I prefer using LIT to manage when tests run because it can report un-run tests where simply using macros cant.
After that LGTM.
http://reviews.llvm.org/D14731
More information about the cfe-commits
mailing list