Skip to content

Commit 40803be

Browse files
authored
Merge pull request #489 from secure-software-engineering/development
Update master branch
2 parents e36fa54 + eb80ede commit 40803be

20 files changed

Lines changed: 508 additions & 390 deletions

File tree

.clang-tidy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ CheckOptions:
5151
- key: readability-identifier-naming.VariableCase
5252
value: CamelCase
5353
- key: readability-identifier-naming.VariableIgnoredRegexp
54-
value: (c|d|d1|d2|d3|d4|d5|d5_restoredCtx|eP|f|f3|f4|f5|fCalleeSummary|g|n|dPrime|fPrime)
54+
value: (c|d|d1|d2|d3|d4|d5|d5_restoredCtx|eP|f|f3|f4|f5|fCalleeSummary|g|n|nPrime|dPrime|fPrime)
5555
- key: readability-identifier-naming.ParameterIgnoredRegexp
5656
value: (d|d1|d2|d3|d4|d5|eP|f|n)
5757
- key: readability-identifier-naming.FunctionIgnoredRegexp
58-
value: (try_emplace|from_json|to_json)
58+
value: (try_emplace|from_json|to_json|equal_to)
5959
- key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
6060
value: 1
6161
- key: cppcoreguidelines-special-member-functions.AllowMissingMoveFunctions

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
compiler: [ [clang++-12, clang-12] ]
15+
compiler: [ [clang++-13, clang-13] ]
1616
build: [ Debug, Release ]
1717

1818
continue-on-error: false
@@ -42,16 +42,16 @@ jobs:
4242
shell: bash
4343
run: |
4444
sudo apt-key adv --fetch-keys https://apt.llvm.org/llvm-snapshot.gpg.key
45-
sudo add-apt-repository -y 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main'
45+
sudo add-apt-repository -y 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main'
4646
sudo apt-get update
4747
sudo apt-get -y install --no-install-recommends \
4848
${{ matrix.compiler[1] }} \
49-
llvm-12-dev \
50-
libllvm12 \
51-
libclang-common-12-dev \
52-
libclang-12-dev \
53-
libclang-cpp12-dev \
54-
clang-tidy-12
49+
llvm-13-dev \
50+
libllvm13 \
51+
libclang-common-13-dev \
52+
libclang-13-dev \
53+
libclang-cpp13-dev \
54+
clang-tidy-13
5555
5656
- name: Building Phasar in ${{ matrix.build }} with ${{ matrix.compiler[0] }}
5757
env:

.github/workflows/reviewdog-clang-format.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
- tool: clang-format
1616
install: |
1717
sudo apt-key adv --fetch-keys https://apt.llvm.org/llvm-snapshot.gpg.key
18-
sudo add-apt-repository -y 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main'
18+
sudo add-apt-repository -y 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main'
1919
sudo apt-get update
20-
sudo apt-get -y install --no-install-recommends clang-format-12
20+
sudo apt-get -y install --no-install-recommends clang-format-13
2121
regex: \.(h|c|hpp|cpp)$
22-
command: clang-format-12 --style=file -i
22+
command: clang-format-13 --style=file -i
2323

2424
continue-on-error: false
2525
steps:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ repos:
1010
- id: check-added-large-files
1111
- id: requirements-txt-fixer
1212
- repo: https://github.com/pre-commit/mirrors-clang-format
13-
rev: 'v12.0.1'
13+
rev: 'v13.0.0'
1414
hooks:
1515
- id: clang-format

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ include_directories(${SQLITE3_INCLUDE_DIR})
179179
# LLVM
180180
if (NOT PHASAR_IN_TREE)
181181
# Only search for LLVM if we build out of tree
182-
find_package(LLVM 12 REQUIRED CONFIG)
182+
find_package(LLVM 13 REQUIRED CONFIG)
183183
include_directories(${LLVM_INCLUDE_DIRS})
184184
link_directories(${LLVM_LIB_PATH} ${LLVM_LIBRARY_DIRS})
185185
endif()

Config.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ foreach(component ${phasar_FIND_COMPONENTS})
99
endforeach()
1010

1111
function(phasar_config executable)
12-
find_package(LLVM 12 REQUIRED CONFIG)
12+
find_package(LLVM 13 REQUIRED CONFIG)
1313
include_directories(${LLVM_INCLUDE_DIRS})
1414
link_directories(${LLVM_LIB_PATH} ${LLVM_LIBRARY_DIRS})
1515
find_library(LLVM_LIBRARY NAMES LLVM HINTS ${LLVM_LIBRARY_DIRS})

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FROM ubuntu:latest
2-
ARG LLVM_INSTALL_DIR="/usr/local/llvm-10"
1+
FROM ubuntu:20.04
2+
ARG LLVM_INSTALL_DIR="/usr/local/llvm-12"
33
LABEL Name=phasar Version=1.0.0
44

55
RUN apt -y update && apt install bash sudo -y
@@ -21,7 +21,7 @@ RUN apt install libboost-all-dev -y
2121
# installing LLVM
2222
COPY utils/safeCommandsSet.sh /usr/src/phasar/utils/safeCommandsSet.sh
2323
COPY utils/install-llvm.sh /usr/src/phasar/utils/install-llvm.sh
24-
RUN ./utils/install-llvm.sh $(nproc) . ${LLVM_INSTALL_DIR} "llvmorg-10.0.0"
24+
RUN ./utils/install-llvm.sh $(nproc) . ${LLVM_INSTALL_DIR} "llvmorg-12.0.0"
2525

2626
# installing wllvm
2727
RUN pip3 install wllvm

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PhASAR a LLVM-based Static Analysis Framework
66
[![C++ Standard](https://img.shields.io/badge/C++_Standard-C%2B%2B17-blue.svg?style=flat&logo=c%2B%2B)](https://isocpp.org/)
77
[![GitHub license](https://img.shields.io/badge/license-MIT-blueviolet.svg)](https://raw.githubusercontent.com/secure-software-engineering/phasar/master/LICENSE.txt)
88

9-
Version 0521
9+
Version 0222
1010

1111
Secure Software Engineering Group
1212
---------------------------------
@@ -20,7 +20,7 @@ PhASAR requires C++-17.
2020

2121
Currently supported version of LLVM
2222
-----------------------------------
23-
PhASAR is currently set up to support LLVM-12.0.
23+
PhASAR is currently set up to support LLVM-13.0.
2424

2525
What is PhASAR?
2626
---------------

bootstrap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ source ./utils/safeCommandsSet.sh
55

66
readonly PHASAR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
77
readonly PHASAR_INSTALL_DIR="/usr/local/phasar"
8-
readonly LLVM_INSTALL_DIR="/usr/local/llvm-12"
8+
readonly LLVM_INSTALL_DIR="/usr/local/llvm-13"
99

1010
NUM_THREADS=$(nproc)
11-
LLVM_RELEASE=llvmorg-12.0.0
11+
LLVM_RELEASE=llvmorg-13.0.0
1212
DO_UNIT_TEST=true
1313

1414

include/phasar/Config/Version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef PHASAR_CONFIG_VERSION_H
22
#define PHASAR_CONFIG_VERSION_H
33

4-
#define PHASAR_VERSION v0521
4+
#define PHASAR_VERSION v0222
55

66
#endif

0 commit comments

Comments
 (0)