Compare commits
	
		
			2 Commits
		
	
	
		
			0e96514413
			...
			f5151f5a2b
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| f5151f5a2b | |||
| 5ffcde34e2 | 
@@ -1,4 +1,12 @@
 | 
				
			|||||||
find_program(CLANG_CHECK_EXE NAMES clang-check-10 clang-check-9 clang-check)
 | 
					find_program(
 | 
				
			||||||
 | 
					  CLANG_CHECK_EXE
 | 
				
			||||||
 | 
					  NAMES
 | 
				
			||||||
 | 
					    clang-check-13
 | 
				
			||||||
 | 
					    clang-check-12
 | 
				
			||||||
 | 
					    clang-check-11
 | 
				
			||||||
 | 
					    clang-check-10
 | 
				
			||||||
 | 
					    clang-check-9
 | 
				
			||||||
 | 
					    clang-check)
 | 
				
			||||||
if(CLANG_CHECK_EXE)
 | 
					if(CLANG_CHECK_EXE)
 | 
				
			||||||
  option(CMLIB_CLANG_ANALYZE_FIX "Perform fixes for Clang-Check" OFF)
 | 
					  option(CMLIB_CLANG_ANALYZE_FIX "Perform fixes for Clang-Check" OFF)
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,12 @@
 | 
				
			|||||||
find_program(CLANG_TIDY_EXE NAMES clang-tidy-10 clang-tidy-9 clang-tidy)
 | 
					find_program(
 | 
				
			||||||
 | 
					  CLANG_TIDY_EXE
 | 
				
			||||||
 | 
					  NAMES
 | 
				
			||||||
 | 
					    clang-tidy-13
 | 
				
			||||||
 | 
					    clang-tidy-12
 | 
				
			||||||
 | 
					    clang-tidy-11
 | 
				
			||||||
 | 
					    clang-tidy-10
 | 
				
			||||||
 | 
					    clang-tidy-9
 | 
				
			||||||
 | 
					    clang-tidy)
 | 
				
			||||||
if(CLANG_TIDY_EXE)
 | 
					if(CLANG_TIDY_EXE)
 | 
				
			||||||
  option(CMLIB_CLANG_TIDY_FIX "Perform fixes for Clang-Tidy" OFF)
 | 
					  option(CMLIB_CLANG_TIDY_FIX "Perform fixes for Clang-Tidy" OFF)
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,12 @@
 | 
				
			|||||||
find_program(CLANG_APPLY_REPLACEMENTS_EXE NAMES clang-apply-replacements-10 clang-apply-replacements-9
 | 
					find_program(
 | 
				
			||||||
                                                clang-apply-replacements)
 | 
					  CLANG_APPLY_REPLACEMENTS_EXE
 | 
				
			||||||
 | 
					  NAMES
 | 
				
			||||||
 | 
					    clang-apply-replacements-13
 | 
				
			||||||
 | 
					    clang-apply-replacements-12
 | 
				
			||||||
 | 
					    clang-apply-replacements-11
 | 
				
			||||||
 | 
					    clang-apply-replacements-10
 | 
				
			||||||
 | 
					    clang-apply-replacements-9
 | 
				
			||||||
 | 
					    clang-apply-replacements)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
find_program(CLAZY_EXE NAMES clazy-standalone)
 | 
					find_program(CLAZY_EXE NAMES clazy-standalone)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,15 +17,17 @@ function(add_pvs_check target)
 | 
				
			|||||||
      add_dependencies(pvs-check pvs-check-${target})
 | 
					      add_dependencies(pvs-check pvs-check-${target})
 | 
				
			||||||
      configure_file("${CMLIB_MODULE_DIR}/hpp/pvs_studio.hpp.in" "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp")
 | 
					      configure_file("${CMLIB_MODULE_DIR}/hpp/pvs_studio.hpp.in" "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp")
 | 
				
			||||||
      get_target_property(target_type ${target} TYPE)
 | 
					      get_target_property(target_type ${target} TYPE)
 | 
				
			||||||
      if (${target_type} STREQUAL "INTERFACE_LIBRARY")
 | 
					      if(${target_type} STREQUAL "INTERFACE_LIBRARY")
 | 
				
			||||||
        set(target_type INTERFACE)
 | 
					        set(target_type INTERFACE)
 | 
				
			||||||
      else()
 | 
					      else()
 | 
				
			||||||
        set(target_type PRIVATE)
 | 
					        set(target_type PRIVATE)
 | 
				
			||||||
      endif()
 | 
					      endif()
 | 
				
			||||||
      if(MSVC)
 | 
					      if(MSVC)
 | 
				
			||||||
        target_compile_options(${target} BEFORE ${target_type} /FI "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp")
 | 
					        target_compile_options(${target} BEFORE ${target_type} /FI
 | 
				
			||||||
 | 
					                               "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp")
 | 
				
			||||||
      else() # GCC/Clang
 | 
					      else() # GCC/Clang
 | 
				
			||||||
        target_compile_options(${target} BEFORE ${target_type} -include "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp")
 | 
					        target_compile_options(${target} BEFORE ${target_type} -include
 | 
				
			||||||
 | 
					                               "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp")
 | 
				
			||||||
      endif()
 | 
					      endif()
 | 
				
			||||||
    else()
 | 
					    else()
 | 
				
			||||||
      message(STATUS "CMLIB warning:")
 | 
					      message(STATUS "CMLIB warning:")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user