Diagnostic specific failed condition in a static_assert.
authorDouglas Gregor <dgregor@apple.com>
Thu, 14 Sep 2017 23:38:42 +0000 (23:38 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 14 Sep 2017 23:38:42 +0000 (23:38 +0000)
commit672281a5116d255e8f18254301d907022f13e4df
treeb6808068bd59995d4ba37af3485ce5aef3616a31
parentbb26f86e6fad024df1a0328a3b09813ed4ccb858
Diagnostic specific failed condition in a static_assert.

When a static_assert fails, dig out a specific condition to diagnose,
using the same logic that we use to find the enable_if condition to
diagnose.

llvm-svn: 313315
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Sema/SemaTemplate.cpp
clang/test/SemaCXX/static-assert.cpp