]> granicus.if.org Git - clang/commit
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)
commit36a127d6c7d12bc3cf47378798ea52e835be040b
tree6202310e8abd7db561f83006d657286a537ec676
parent13a548961dc7bb2771788bec1671d83f1052b015
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313315 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaTemplate.cpp
test/SemaCXX/static-assert.cpp