Skip to content

Commit

Permalink
[analyzer][tests] Add 5 more projects for testing
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D83701
  • Loading branch information
SavchenkoValeriy committed Jul 14, 2020
1 parent 5b4f143 commit 089a0ad
Show file tree
Hide file tree
Showing 13 changed files with 62 additions and 1 deletion.
10 changes: 10 additions & 0 deletions clang/utils/analyzer/Dockerfile
Expand Up @@ -42,6 +42,16 @@ RUN apt-get install -y \
libjsonrpccpp-dev=0.7.0-1build2 \
uuid-dev=2.31.1-0.4ubuntu3.6

# tmux dependencies
RUN apt-get install -y \
autotools-dev=20180224.1 \
automake=1:1.15.1-3ubuntu2 \
libncurses5-dev=6.1-1ubuntu1.18.04 \
libevent-dev=2.1.8-stable-4build1 \
pkg-config=0.29.1-0ubuntu2 \
flex=2.6.4-6 \
bison=2:3.0.4.dfsg-1build1

RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1

VOLUME /analyzer
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/analyzer/entrypoint.py
Expand Up @@ -50,7 +50,7 @@ def is_cmake_needed():

CMAKE_COMMAND = "cmake -G Ninja -DCMAKE_BUILD_TYPE=Release " \
"-DCMAKE_INSTALL_PREFIX=/analyzer -DLLVM_TARGETS_TO_BUILD=X86 " \
"-DLLVM_ENABLE_PROJECTS=clang -DLLVM_BUILD_RUNTIME=OFF " \
"-DLLVM_ENABLE_PROJECTS=\"clang;openmp\" -DLLVM_BUILD_RUNTIME=OFF " \
"-DLLVM_ENABLE_TERMINFO=OFF -DCLANG_ENABLE_ARCMT=OFF " \
"-DCLANG_ENABLE_STATIC_ANALYZER=ON"

Expand Down
@@ -0,0 +1 @@
rm -rf ./build
@@ -0,0 +1,2 @@
cmake . -DCMAKE_BUILD_TYPE=Debug -Bbuild -GNinja
cmake --build build
@@ -0,0 +1 @@
rm -rf ./build
@@ -0,0 +1,2 @@
cmake . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON -Bbuild -GNinja
cmake --build build
@@ -0,0 +1 @@
make clean
2 changes: 2 additions & 0 deletions clang/utils/analyzer/projects/faiss/run_static_analyzer.cmd
@@ -0,0 +1,2 @@
./configure --without-cuda
make
@@ -0,0 +1 @@
rm -rf ./build
@@ -0,0 +1,2 @@
cmake . -DCMAKE_BUILD_TYPE=Debug -Bbuild -GNinja
cmake --build build
35 changes: 35 additions & 0 deletions clang/utils/analyzer/projects/projects.json
Expand Up @@ -103,5 +103,40 @@
"source": "git",
"origin": "https://github.com/google/re2.git",
"commit": "2b25567"
},
{
"name": "cppcheck",
"mode": 1,
"source": "git",
"origin": "https://github.com/danmar/cppcheck.git",
"commit": "5fa3d53"
},
{
"name": "harfbuzz",
"mode": 1,
"source": "git",
"origin": "https://github.com/harfbuzz/harfbuzz.git",
"commit": "f8d345e"
},
{
"name": "capnproto",
"mode": 1,
"source": "git",
"origin": "https://github.com/capnproto/capnproto.git",
"commit": "8be1c9f"
},
{
"name": "tmux",
"mode": 1,
"source": "git",
"origin": "https://github.com/tmux/tmux.git",
"commit": "a5f99e1"
},
{
"name": "faiss",
"mode": 1,
"source": "git",
"origin": "https://github.com/facebookresearch/faiss.git",
"commit": "9e5d5b7"
}
]
@@ -0,0 +1,2 @@
make distclean
exit 0
2 changes: 2 additions & 0 deletions clang/utils/analyzer/projects/tmux/run_static_analyzer.cmd
@@ -0,0 +1,2 @@
./autogen.sh
./configure && make

0 comments on commit 089a0ad

Please sign in to comment.