summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/conversion-function.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-09-18 02:09:53 +0000
committerNico Weber <nicolasweber@gmx.de>2014-09-18 02:09:53 +0000
commitacb35c02724e97e85af4d13d620d4df132509b8a (patch)
treecede4918d2874f28cca659a49be7431d1f8787d1 /clang/test/SemaCXX/conversion-function.cpp
parent9f1215b2d8f17879d930ececc565f34d9689c56d (diff)
downloadbcm5719-llvm-acb35c02724e97e85af4d13d620d4df132509b8a.tar.gz
bcm5719-llvm-acb35c02724e97e85af4d13d620d4df132509b8a.zip
Change -Wbind-to-temporary-copy from an ExtWarn to an Extension.
The reasoning is that this construct is accepted by all compilers and valid in C++11, so it doesn't seem like a useful warning to have enabled by default. Building with -pedantic, -Wbind-to-temporary-copy, or -Wc++98-compat still shows the warning. The motivation is that I built re2, and this was the only warning that was emitted during the build. Both changing re2 to fix the warning and detecting clang and suppressing the warning in re2's build seem inferior than just giving the compiler a good default for this warning. Also move the cxx98compat version of this warning to CXX98CompatPedantic, and update tests accordingly. llvm-svn: 218008
Diffstat (limited to 'clang/test/SemaCXX/conversion-function.cpp')
-rw-r--r--clang/test/SemaCXX/conversion-function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/conversion-function.cpp b/clang/test/SemaCXX/conversion-function.cpp
index 40ac33b8eb0..ede23a2767e 100644
--- a/clang/test/SemaCXX/conversion-function.cpp
+++ b/clang/test/SemaCXX/conversion-function.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -Wbind-to-temporary-copy -verify %s
class X {
public:
operator bool();
OpenPOWER on IntegriCloud