Suppress MSVC's equivalent of -Wshadow warnings
authorReid Kleckner <reid@kleckner.net>
Fri, 31 Oct 2014 22:55:57 +0000 (22:55 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 31 Oct 2014 22:55:57 +0000 (22:55 +0000)
commit19cb171ee1b9d605e6b690470001c9e1841ec61a
tree61a88a8eb2daa0f4ebbe5fdbcb4e40391c8868ca
parent15d810fa29b370a17131233c7a60b626f8ad686b
Suppress MSVC's equivalent of -Wshadow warnings

IMO we need to clean up some of these, but the member variable one
(C4458) has false positives on static methods.  It is currently firing
on Twine, which has a static method like:
  struct Twine {
    uintptr_t LHS, RHS;
    static void staticMethod() {
      // warning C4458: declaration of 'LHS' hides class member
      uintptr_t LHS;
      ...
    }
  };

We should fix up clang's -Wshadow and clean it up, and then we can
re-enable some of these MSVC warnings.

llvm-svn: 221012
llvm/cmake/modules/HandleLLVMOptions.cmake