[clang] a361aa5 - [clang] Disable -Wsuggest-override for unittests/

Logan Smith via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 21 16:39:05 PDT 2020


Author: Logan Smith
Date: 2020-07-21T16:38:35-07:00
New Revision: a361aa5249856e333a373df90947dabf34cd6aab

URL: https://github.com/llvm/llvm-project/commit/a361aa5249856e333a373df90947dabf34cd6aab
DIFF: https://github.com/llvm/llvm-project/commit/a361aa5249856e333a373df90947dabf34cd6aab.diff

LOG: [clang] Disable -Wsuggest-override for unittests/

Added: 
    

Modified: 
    clang/unittests/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/clang/unittests/CMakeLists.txt b/clang/unittests/CMakeLists.txt
index 4c222e24599f..64168f44f843 100644
--- a/clang/unittests/CMakeLists.txt
+++ b/clang/unittests/CMakeLists.txt
@@ -10,6 +10,10 @@ if(CLANG_BUILT_STANDALONE)
   endif()
 endif()
 
+if (CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG)
+  add_definitions("-Wno-suggest-override")
+endif()
+
 # add_clang_unittest(test_dirname file1.cpp file2.cpp)
 #
 # Will compile the list of files together and link against the clang


        


More information about the cfe-commits mailing list