[llvm] r181836 - Add -Wreorder to the list of C++ warnings.

Eric Christopher echristo at gmail.com
Tue May 14 14:49:39 PDT 2013


Author: echristo
Date: Tue May 14 16:49:38 2013
New Revision: 181836

URL: http://llvm.org/viewvc/llvm-project?rev=181836&view=rev
Log:
Add -Wreorder to the list of C++ warnings.

This built clean with clang, but if we see false positives on the bots
then we'll revert and turn it into a compiler specific check.

Modified:
    llvm/trunk/Makefile.rules

Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=181836&r1=181835&r2=181836&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Tue May 14 16:49:38 2013
@@ -674,7 +674,8 @@ CompileCommonOpts += -Wall -W -Wno-unuse
                      $(NO_UNINITIALIZED) $(NO_MAYBE_UNINITIALIZED) \
                      $(NO_MISSING_FIELD_INITIALIZERS)
 # Enable cast-qual for C++; the workaround is to use const_cast.
-CXX.Flags += -Wcast-qual
+# Also enable -Wreorder.
+CXX.Flags += -Wcast-qual -Wreorder
 
 ifeq ($(HOST_OS),HP-UX)
   CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE





More information about the llvm-commits mailing list