[clangd] Disable -Wsuggest-override for unittests/
authorLogan Smith <logan.r.smith0@gmail.com>
Wed, 22 Jul 2020 17:49:05 +0000 (10:49 -0700)
committerLogan Smith <logan.r.smith0@gmail.com>
Wed, 22 Jul 2020 17:49:09 +0000 (10:49 -0700)
clang-tools-extra/clangd/unittests/CMakeLists.txt

index c25e2b7..8a4a0fb 100644 (file)
@@ -22,6 +22,10 @@ if(CLANG_BUILT_STANDALONE)
   endif()
 endif()
 
+if (CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG)
+  add_definitions("-Wno-suggest-override")
+endif()
+
 if (CLANGD_ENABLE_REMOTE)
   include_directories(${CMAKE_CURRENT_BINARY_DIR}/../index/remote)
   add_definitions(-DGOOGLE_PROTOBUF_NO_RTTI=1)