diff options
| author | Reid Kleckner <reid@kleckner.net> | 2014-06-27 23:58:21 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2014-06-27 23:58:21 +0000 |
| commit | 1626c06ea14f836ed65d7ba86a853b57692de5d5 (patch) | |
| tree | 1376a0cb89e8ee501bbf5d7dcc40945628ee399e /include | |
| parent | 2b874e51c1ad035a67fc6677ebd1d1180bc97877 (diff) | |
| download | clang-1626c06ea14f836ed65d7ba86a853b57692de5d5.tar.gz clang-1626c06ea14f836ed65d7ba86a853b57692de5d5.tar.bz2 clang-1626c06ea14f836ed65d7ba86a853b57692de5d5.tar.xz | |
Extend -Wdynamic-class-memaccess to records containing dynamic classes
Reviewers: rtrieu
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D4325
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211972 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
| -rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 6f671f4d39..72a2533f54 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -411,8 +411,8 @@ def warn_builtin_unknown : Warning<"use of unknown builtin %0">, InGroup<ImplicitFunctionDeclare>, DefaultError; def warn_dyn_class_memaccess : Warning< "%select{destination for|source of|first operand of|second operand of}0 this " - "%1 call is a pointer to dynamic class %2; vtable pointer will be " - "%select{overwritten|copied|moved|compared}3">, + "%1 call is a pointer to %select{|class containing a }2dynamic class %3; " + "vtable pointer will be %select{overwritten|copied|moved|compared}4">, InGroup<DiagGroup<"dynamic-class-memaccess">>; def note_bad_memaccess_silence : Note< "explicitly cast the pointer to silence this warning">; |
