Enable -Wdeprecated in the cmake build now that LLVM (& Clang, Polly, and LLD) are...
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 30 Sep 2015 23:36:12 +0000 (23:36 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 30 Sep 2015 23:36:12 +0000 (23:36 +0000)
commit7d40f6ea2b933b5f3073f74892aa3d650a78df13
treeefcd484e4e082c8ea9e72c6b5bc3fa421ee1aa3e
parent39b3d70179e9ee0d8770aa08bc2400b5fdcc9aa1
Enable -Wdeprecated in the cmake build now that LLVM (& Clang, Polly, and LLD) are -Wdeprecated clean

This particularly helps enforce the C++ Rule of 5 (for new move ops this
is already an error, but for a type only using C++98 features (copy
ctor/assign, dtor) it is only deprecated, not invalid)

Applying the flag for any GCC compatible compiler - GCC doesn't warn on
the Rule of 5 cases that C++11 deprecates, but it doesn't have other
false positives so far as I could see (compiling with GCC 4.8 didn't
produce any -Wdeprecated warnings I could spot).

Reviewers: aaron.ballman

Differential Revision: http://reviews.llvm.org/D13314

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248963 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/HandleLLVMOptions.cmake