Merge branch 'master' of git.246060.ru:f1x1t/cmlib
This commit is contained in:
		@@ -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)
 | 
			
		||||
  option(CMLIB_CLANG_ANALYZE_FIX "Perform fixes for Clang-Check" OFF)
 | 
			
		||||
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)
 | 
			
		||||
  option(CMLIB_CLANG_TIDY_FIX "Perform fixes for Clang-Tidy" OFF)
 | 
			
		||||
endif()
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,11 @@
 | 
			
		||||
find_program(CLANG_APPLY_REPLACEMENTS_EXE NAMES clang-apply-replacements-10 clang-apply-replacements-9
 | 
			
		||||
find_program(
 | 
			
		||||
  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)
 | 
			
		||||
 
 | 
			
		||||
@@ -23,9 +23,11 @@ function(add_pvs_check target)
 | 
			
		||||
        set(target_type PRIVATE)
 | 
			
		||||
      endif()
 | 
			
		||||
      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
 | 
			
		||||
        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()
 | 
			
		||||
    else()
 | 
			
		||||
      message(STATUS "CMLIB warning:")
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								thirdparty/cotire.cmake
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								thirdparty/cotire.cmake
									
									
									
									
										vendored
									
									
								
							@@ -1136,6 +1136,11 @@ function (cotire_parse_includes _language _scanOutput _ignoredIncludeDirs _honor
 | 
			
		||||
	string (REPLACE ";" "\\;" _scanOutput "${_scanOutput}")
 | 
			
		||||
	# then separate lines
 | 
			
		||||
	string (REGEX REPLACE "\n" ";" _scanOutput "${_scanOutput}")
 | 
			
		||||
	if ("${_language}" STREQUAL "CXX")
 | 
			
		||||
	    # Fix clang9's libc++ errno
 | 
			
		||||
	    message (STATUS "replacing <stdlib.h> with <cstdlib>")
 | 
			
		||||
	    string (REGEX REPLACE "include_next" "include" _scanOutput "${_scanOutput}")
 | 
			
		||||
	endif()
 | 
			
		||||
	list (LENGTH _scanOutput _len)
 | 
			
		||||
	# remove duplicate lines to speed up parsing
 | 
			
		||||
	list (REMOVE_DUPLICATES _scanOutput)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user