diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-10-19 00:54:10 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-10-19 00:54:10 +0000 |
commit | 53e535161dfa9850de394b300915fc250eb0fdf4 (patch) | |
tree | f67b990a98af93dcddbe29d12ee8ef45a573579a /include | |
parent | b9c8c42c392d0fe7079b968bbd5ed2bd4bd2f8d2 (diff) | |
download | clang-53e535161dfa9850de394b300915fc250eb0fdf4.tar.gz |
Add a -Wc++98-compat warning for friend functions of class templates which would
be implicitly instantiated (resulting in a redefinition) in C++98.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 5c4ecc8f9d..e5a49c658a 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -2652,6 +2652,9 @@ def err_definition_of_explicitly_defaulted_member : Error< def err_redefinition_extern_inline : Error< "redefinition of a 'extern inline' function %0 is not supported in " "%select{C99 mode|C++}1">; +def warn_cxx98_compat_friend_redefinition : Warning< + "friend function %0 would be implicitly redefined in C++98">, + InGroup<CXX98Compat>, DefaultIgnore; // This should eventually be an error. def warn_undefined_internal : Warning< |