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)
commit57c911e4ab8933d3305660c87221839acbd9021f
tree537820895e1181e61bbd3f000615a0d246b06e4b
parent54a86b37ddf5425deb7fadde898437df9c6c770b
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.

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