llvm-project/clang/test/CXX/dcl.decl/dcl.init
Nico Weber acb35c0272 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
2014-09-18 02:09:53 +00:00
..
dcl.init.aggr Modify the uninitialized field visitor to detect uninitialized use across the 2013-09-20 03:03:06 +00:00
dcl.init.list PR20844: If we fail to list-initialize a reference, map to the referenced type 2014-09-04 22:13:39 +00:00
dcl.init.ref Change -Wbind-to-temporary-copy from an ExtWarn to an Extension. 2014-09-18 02:09:53 +00:00
dcl.init.string Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
p5.cpp Implement C++03 [dcl.init]p5's checking for value-initialization of references 2012-12-08 02:01:17 +00:00
p6.cpp Improve diagnostic on default-initializing const variables (PR20208). 2014-07-23 05:16:10 +00:00
p7.cpp Tests for DR1507. 2012-10-18 00:44:17 +00:00
p14-0x.cpp