]> granicus.if.org Git - clang/commit
Thread safety analysis: split warnings into two groups: attribute warnings
authorDeLesley Hutchins <delesley@google.com>
Thu, 19 Apr 2012 16:10:44 +0000 (16:10 +0000)
committerDeLesley Hutchins <delesley@google.com>
Thu, 19 Apr 2012 16:10:44 +0000 (16:10 +0000)
commitae519c42a1e0a023be6c07ba1dc10f28e29d6bc3
treef01b20deebb680e00b84b168956b1a8c830881bf
parentdd9fe59a9ac13ef6971cb7ac9d1218bbb81a795a
Thread safety analysis: split warnings into two groups: attribute warnings
which are checked in the parser, and analysis warnings that require the
full analysis.  This allows attribute syntax to be checked independently
of the full thread safety analysis.  Also introduces a new warning for the
case where a string is used as a lock expression; this allows the analysis
to gracefully handle expressions that would otherwise cause a parse error.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155129 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclAttr.cpp
test/SemaCXX/warn-thread-safety-parsing.cpp