From f45f4a698e9db4d37f9445bc7cbcc4cef0314a49 Mon Sep 17 00:00:00 2001 From: Qrox Date: Tue, 24 Dec 2019 00:54:15 +0800 Subject: [PATCH] Also update clang-tidy Windows instructions The compile database will contain the -Wsuggest-override option when compiled with MinGW-w64, however clang-tidy won't recognize it. This makes clang-tidy ignore such unknown warning options --- doc/DEVELOPER_TOOLING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/DEVELOPER_TOOLING.md b/doc/DEVELOPER_TOOLING.md index 3c50ab19cf580..ae2f14f195809 100644 --- a/doc/DEVELOPER_TOOLING.md +++ b/doc/DEVELOPER_TOOLING.md @@ -263,7 +263,7 @@ to avoid compiler errors. python3 /clang-tools-extra/clang-tidy/tool/run-clang-tidy.py \ -clang-tidy-binary=build/tools/clang-tidy-plugin/CataAnalyzerPlugin.exe \ -p=build "\.cpp$" \ - -extra-arg=-target -extra-arg=x86_64-pc-windows-gnu -extra-arg=-pthread -extra-arg=-DSDL_DISABLE_ANALYZE_MACROS \ + -extra-arg=-target -extra-arg=x86_64-pc-windows-gnu -extra-arg=-pthread -extra-arg=-DSDL_DISABLE_ANALYZE_MACROS -extra-arg=-Wno-unknown-warning-option \ -extra-arg=-isystem -extra-arg=/clang/lib/Headers ```