summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/DiagnosticSemaKinds.td
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-09-27 22:47:04 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-09-27 22:47:04 +0000
commit5f182380386153bf4d9522dc2a13d50a7eed597c (patch)
treed5f0e4e505815f7eb9a5757aad7d83f81ab6e31c /include/clang/Basic/DiagnosticSemaKinds.td
parente3f8429a583cd298883a741c563c6d66f758c680 (diff)
[cxx2a] P0624R2: Lambdas with no capture-default are
default-constructible and assignable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343279 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticSemaKinds.td')
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index 5ec3e5ceae..508a0c41af 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/include/clang/Basic/DiagnosticSemaKinds.td
@@ -6633,6 +6633,11 @@ let CategoryName = "Lambda Issue" in {
InGroup<DeprecatedThisCapture>, DefaultIgnore;
def note_deprecated_this_capture : Note<
"add an explicit capture of 'this' to capture '*this' by reference">;
+
+ // C++2a default constructible / assignable lambdas.
+ def warn_cxx17_compat_lambda_def_ctor_assign : Warning<
+ "%select{default construction|assignment}0 of lambda is incompatible with "
+ "C++ standards before C++2a">, InGroup<CXXPre2aCompat>, DefaultIgnore;
}
def err_return_in_captured_stmt : Error<