ClangFormat: Suppress warnings from llvm

Change-Id: Id79abc3ea87576a681d86a7c1bd3be957acc299f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Orgad Shaneh
2022-01-27 12:26:33 +02:00
committed by Orgad Shaneh
parent 8ace5d3895
commit 707e7ba41f

View File

@@ -15,6 +15,10 @@ add_qtc_plugin(ClangFormat
clangformatutils.cpp clangformatutils.h
)
if(MSVC AND TARGET ClangFormat)
target_compile_options(ClangFormat PUBLIC /wd4267 /wd4624)
endif()
extend_qtc_plugin(ClangFormat
CONDITION UNIX AND NOT APPLE
PROPERTIES LINK_FLAGS "-Wl,--exclude-libs,ALL"