Sha256: db11dd0e31df0cf62c2809175d87280486aedb1b0698a67ae34677a723c46f95

Contents?: true

Size: 1.12 KB

Versions: 20

Compression:

Stored size: 1.12 KB

Contents

option(ENABLE_CPPCHECK "Enable static analysis with cppcheck" OFF)
option(ENABLE_CLANG_TIDY "Enable static analysis with clang-tidy" OFF)
option(ENABLE_INCLUDE_WHAT_YOU_USE "Enable static analysis with include-what-you-use" OFF)

if(ENABLE_CPPCHECK)
  find_program(CPPCHECK cppcheck)
  if(CPPCHECK)
    set(CMAKE_CXX_CPPCHECK
        ${CPPCHECK}
        --suppress=missingInclude
        --enable=all
        --inline-suppr
        --inconclusive
        -i
        ${CMAKE_SOURCE_DIR}/imgui/lib)
  else()
    message(SEND_ERROR "cppcheck requested but executable not found")
  endif()
endif()

if(ENABLE_CLANG_TIDY)
  find_program(CLANGTIDY clang-tidy)
  if(CLANGTIDY)
    set(CMAKE_CXX_CLANG_TIDY ${CLANGTIDY} -extra-arg=-Wno-unknown-warning-option)
  else()
    message(SEND_ERROR "clang-tidy requested but executable not found")
  endif()
endif()

if(ENABLE_INCLUDE_WHAT_YOU_USE)
  find_program(INCLUDE_WHAT_YOU_USE include-what-you-use)
  if(INCLUDE_WHAT_YOU_USE)
    set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE ${INCLUDE_WHAT_YOU_USE})
  else()
    message(SEND_ERROR "include-what-you-use requested but executable not found")
  endif()
endif()

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
couchbase-3.5.2 ext/couchbase/cmake/StaticAnalyzers.cmake
couchbase-3.5.1 ext/couchbase/cmake/StaticAnalyzers.cmake
couchbase-3.5.0 ext/couchbase/cmake/StaticAnalyzers.cmake
couchbase-3.4.5 ext/couchbase/cmake/StaticAnalyzers.cmake
couchbase-3.4.4 ext/couchbase/cmake/StaticAnalyzers.cmake
couchbase-3.4.3 ext/couchbase/cmake/StaticAnalyzers.cmake
couchbase-3.4.2 ext/couchbase/cmake/StaticAnalyzers.cmake
couchbase-3.4.1 ext/couchbase/cmake/StaticAnalyzers.cmake
couchbase-3.4.0 ext/couchbase/cmake/StaticAnalyzers.cmake
couchbase-3.3.0 ext/couchbase/cmake/StaticAnalyzers.cmake
couchbase-3.2.0-universal-darwin-20 ext/cmake/StaticAnalyzers.cmake
couchbase-3.2.0 ext/cmake/StaticAnalyzers.cmake
couchbase-3.1.1 ext/cmake/StaticAnalyzers.cmake
couchbase-3.1.1-universal-darwin-20 ext/cmake/StaticAnalyzers.cmake
couchbase-3.1.0 ext/cmake/StaticAnalyzers.cmake
couchbase-3.0.3 ext/cmake/StaticAnalyzers.cmake
couchbase-3.0.3-universal-darwin-20 ext/cmake/StaticAnalyzers.cmake
couchbase-3.0.2 ext/cmake/StaticAnalyzers.cmake
couchbase-3.0.1-universal-darwin-19 ext/cmake/StaticAnalyzers.cmake
couchbase-3.0.1 ext/cmake/StaticAnalyzers.cmake