浏览代码

add GL backends to tests/analyze_macos.sh

Andre Weissflog 3 年之前
父节点
当前提交
dbeee9454a
共有 2 个文件被更改,包括 8 次插入1 次删除
  1. 2 0
      tests/CMakeLists.txt
  2. 6 1
      tests/analyze_macos.sh

+ 2 - 0
tests/CMakeLists.txt

@@ -53,6 +53,8 @@ else()
         set(cxx_flags ${cxx_flags} -Wno-missing-field-initializers)
     endif()
     if (USE_ANALYZER)
+        # FIXME: consider using clang-tidy via CMAKE_CXX_CLANG_TIDY: https://ortogonal.github.io/cmake-clang-tidy/
+        # with the default settings this spams the output with irrelevant C++ coding style warnings in 3rd party libs though
         message(">> Configuring for static code analysis")
         set(c_flags ${c_flags} --analyze -Xanalyzer -analyzer-opt-analyze-headers)
         set(cxx_flags ${cxx_flags} --analyze -Xanalyzer -analyzer-opt-analyze-headers)

+ 6 - 1
tests/analyze_macos.sh

@@ -1,5 +1,10 @@
 set -e
 source test_common.sh
 prepare
+
 analyze macos_metal_analyze SOKOL_METAL Debug
-analyze_arc macos_arc_metal_analyze SOKOL_METAL Debug
+analyze macos_gl_analyze SOKOL_METAL Debug
+
+analyze_arc macos_arc_metal_analyze SOKOL_GLCORE33 Debug
+analyze_arc macos_arc_gl_analyze SOKOL_GLCORE33 Debug
+