diff --git a/.gitignore b/.gitignore --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,8 @@ .vs # clangd index .clangd +# static analyzer regression testing project files +/clang/utils/analyzer/projects/*/CachedSource +/clang/utils/analyzer/projects/*/PatchedSource +/clang/utils/analyzer/projects/*/ScanBuildResults +/clang/utils/analyzer/projects/*/RefScanBuildResults \ No newline at end of file diff --git a/clang/utils/analyzer/.dockerignore b/clang/utils/analyzer/.dockerignore new file mode 100644 --- /dev/null +++ b/clang/utils/analyzer/.dockerignore @@ -0,0 +1 @@ +./projects diff --git a/clang/utils/analyzer/projects/box2d/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/box2d/cleanup_run_static_analyzer.sh new file mode 100755 --- /dev/null +++ b/clang/utils/analyzer/projects/box2d/cleanup_run_static_analyzer.sh @@ -0,0 +1 @@ +rm -rf ./build diff --git a/clang/utils/analyzer/projects/box2d/run_static_analyzer.cmd b/clang/utils/analyzer/projects/box2d/run_static_analyzer.cmd new file mode 100644 --- /dev/null +++ b/clang/utils/analyzer/projects/box2d/run_static_analyzer.cmd @@ -0,0 +1,2 @@ +cmake . -DCMAKE_BUILD_TYPE=Debug -Bbuild -GNinja +cmake --build build diff --git a/clang/utils/analyzer/projects/cxxopts/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/cxxopts/cleanup_run_static_analyzer.sh new file mode 100755 --- /dev/null +++ b/clang/utils/analyzer/projects/cxxopts/cleanup_run_static_analyzer.sh @@ -0,0 +1 @@ +rm -rf ./build diff --git a/clang/utils/analyzer/projects/cxxopts/run_static_analyzer.cmd b/clang/utils/analyzer/projects/cxxopts/run_static_analyzer.cmd new file mode 100644 --- /dev/null +++ b/clang/utils/analyzer/projects/cxxopts/run_static_analyzer.cmd @@ -0,0 +1,2 @@ +cmake . -DCMAKE_BUILD_TYPE=Debug -Bbuild -GNinja +cmake --build build diff --git a/clang/utils/analyzer/projects/libsoundio/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/libsoundio/cleanup_run_static_analyzer.sh new file mode 100755 --- /dev/null +++ b/clang/utils/analyzer/projects/libsoundio/cleanup_run_static_analyzer.sh @@ -0,0 +1 @@ +rm -rf ./build diff --git a/clang/utils/analyzer/projects/libsoundio/run_static_analyzer.cmd b/clang/utils/analyzer/projects/libsoundio/run_static_analyzer.cmd new file mode 100644 --- /dev/null +++ b/clang/utils/analyzer/projects/libsoundio/run_static_analyzer.cmd @@ -0,0 +1,2 @@ +cmake . -DCMAKE_BUILD_TYPE=Debug -Bbuild -GNinja +cmake --build build diff --git a/clang/utils/analyzer/projects/oatpp/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/oatpp/cleanup_run_static_analyzer.sh new file mode 100755 --- /dev/null +++ b/clang/utils/analyzer/projects/oatpp/cleanup_run_static_analyzer.sh @@ -0,0 +1 @@ +rm -rf ./build diff --git a/clang/utils/analyzer/projects/oatpp/run_static_analyzer.cmd b/clang/utils/analyzer/projects/oatpp/run_static_analyzer.cmd new file mode 100644 --- /dev/null +++ b/clang/utils/analyzer/projects/oatpp/run_static_analyzer.cmd @@ -0,0 +1,2 @@ +cmake . -DCMAKE_BUILD_TYPE=Debug -Bbuild -GNinja +cmake --build build diff --git a/clang/utils/analyzer/projects/projects.json b/clang/utils/analyzer/projects/projects.json new file mode 100644 --- /dev/null +++ b/clang/utils/analyzer/projects/projects.json @@ -0,0 +1,72 @@ +[ + { + "name": "cxxopts", + "mode": 1, + "source": "git", + "origin": "https://github.com/jarro2783/cxxopts.git", + "commit": "794c975" + }, + { + "name": "box2d", + "mode": 1, + "source": "git", + "origin": "https://github.com/erincatto/box2d.git", + "commit": "1025f9a" + }, + { + "name": "tinyexpr", + "mode": 1, + "source": "git", + "origin": "https://github.com/codeplea/tinyexpr.git", + "commit": "ffb0d41" + }, + { + "name": "symengine", + "mode": 1, + "source": "git", + "origin": "https://github.com/symengine/symengine.git", + "commit": "4f669d59" + }, + { + "name": "termbox", + "mode": 1, + "source": "git", + "origin": "https://github.com/nsf/termbox.git", + "commit": "0df1355" + }, + { + "name": "tinyvm", + "mode": 1, + "source": "git", + "origin": "https://github.com/jakogut/tinyvm.git", + "commit": "10c25d8" + }, + { + "name": "tinyspline", + "mode": 1, + "source": "git", + "origin": "https://github.com/msteinbeck/tinyspline.git", + "commit": "f8b1ab7" + }, + { + "name": "oatpp", + "mode": 1, + "source": "git", + "origin": "https://github.com/oatpp/oatpp.git", + "commit": "d3e60fb" + }, + { + "name": "libsoundio", + "mode": 1, + "source": "git", + "origin": "https://github.com/andrewrk/libsoundio.git", + "commit": "b810bf2" + }, + { + "name": "zstd", + "mode": 1, + "source": "git", + "origin": "https://github.com/facebook/zstd.git", + "commit": "2af4e073" + } +] diff --git a/clang/utils/analyzer/projects/symengine/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/symengine/cleanup_run_static_analyzer.sh new file mode 100755 --- /dev/null +++ b/clang/utils/analyzer/projects/symengine/cleanup_run_static_analyzer.sh @@ -0,0 +1 @@ +rm -rf ./build diff --git a/clang/utils/analyzer/projects/symengine/run_static_analyzer.cmd b/clang/utils/analyzer/projects/symengine/run_static_analyzer.cmd new file mode 100644 --- /dev/null +++ b/clang/utils/analyzer/projects/symengine/run_static_analyzer.cmd @@ -0,0 +1,2 @@ +cmake . -DCMAKE_BUILD_TYPE=Debug -DWITH_COTIRE=OFF -Bbuild -GNinja +cmake --build build diff --git a/clang/utils/analyzer/projects/termbox/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/termbox/cleanup_run_static_analyzer.sh new file mode 100755 --- /dev/null +++ b/clang/utils/analyzer/projects/termbox/cleanup_run_static_analyzer.sh @@ -0,0 +1,2 @@ +./waf clean +exit 0 diff --git a/clang/utils/analyzer/projects/termbox/run_static_analyzer.cmd b/clang/utils/analyzer/projects/termbox/run_static_analyzer.cmd new file mode 100644 --- /dev/null +++ b/clang/utils/analyzer/projects/termbox/run_static_analyzer.cmd @@ -0,0 +1,2 @@ +./waf configure +./waf diff --git a/clang/utils/analyzer/projects/tinyexpr/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/tinyexpr/cleanup_run_static_analyzer.sh new file mode 100755 --- /dev/null +++ b/clang/utils/analyzer/projects/tinyexpr/cleanup_run_static_analyzer.sh @@ -0,0 +1 @@ +make clean diff --git a/clang/utils/analyzer/projects/tinyexpr/run_static_analyzer.cmd b/clang/utils/analyzer/projects/tinyexpr/run_static_analyzer.cmd new file mode 100644 --- /dev/null +++ b/clang/utils/analyzer/projects/tinyexpr/run_static_analyzer.cmd @@ -0,0 +1 @@ +make diff --git a/clang/utils/analyzer/projects/tinyspline/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/tinyspline/cleanup_run_static_analyzer.sh new file mode 100755 --- /dev/null +++ b/clang/utils/analyzer/projects/tinyspline/cleanup_run_static_analyzer.sh @@ -0,0 +1 @@ +rm -rf ./build diff --git a/clang/utils/analyzer/projects/tinyspline/run_static_analyzer.cmd b/clang/utils/analyzer/projects/tinyspline/run_static_analyzer.cmd new file mode 100644 --- /dev/null +++ b/clang/utils/analyzer/projects/tinyspline/run_static_analyzer.cmd @@ -0,0 +1,2 @@ +cmake . -DCMAKE_BUILD_TYPE=Debug -Bbuild -GNinja +cmake --build build diff --git a/clang/utils/analyzer/projects/tinyvm/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/tinyvm/cleanup_run_static_analyzer.sh new file mode 100755 --- /dev/null +++ b/clang/utils/analyzer/projects/tinyvm/cleanup_run_static_analyzer.sh @@ -0,0 +1 @@ +make clean diff --git a/clang/utils/analyzer/projects/tinyvm/run_static_analyzer.cmd b/clang/utils/analyzer/projects/tinyvm/run_static_analyzer.cmd new file mode 100644 --- /dev/null +++ b/clang/utils/analyzer/projects/tinyvm/run_static_analyzer.cmd @@ -0,0 +1 @@ +make diff --git a/clang/utils/analyzer/projects/zstd/cleanup_run_static_analyzer.sh b/clang/utils/analyzer/projects/zstd/cleanup_run_static_analyzer.sh new file mode 100755 --- /dev/null +++ b/clang/utils/analyzer/projects/zstd/cleanup_run_static_analyzer.sh @@ -0,0 +1 @@ +rm -rf ./build_analyzer diff --git a/clang/utils/analyzer/projects/zstd/run_static_analyzer.cmd b/clang/utils/analyzer/projects/zstd/run_static_analyzer.cmd new file mode 100644 --- /dev/null +++ b/clang/utils/analyzer/projects/zstd/run_static_analyzer.cmd @@ -0,0 +1,2 @@ +cmake ./build/cmake -DCMAKE_BUILD_TYPE=Debug -Bbuild_analyzer -GNinja +cmake --build build_analyzer