File tree 5 files changed +5
-5
lines changed
5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 76
76
- name : Run Cppcheck
77
77
id : run-cppcheck
78
78
run : |
79
- cppcheck --quiet --force --enable=all --std=c++11 --language=c++ --inline-suppr --suppressions-list=.github/scripts/cppcheck-suppressions.txt --xml --output-file=report.xml ddprof-lib/src/main/cpp/*
79
+ cppcheck --quiet --force --enable=all --std=c++17 --language=c++ --inline-suppr --suppressions-list=.github/scripts/cppcheck-suppressions.txt --xml --output-file=report.xml ddprof-lib/src/main/cpp/*
80
80
xsltproc --output report.html .github/scripts/cppcheck-html.xslt report.xml
81
81
xsltproc --output report-gh.html .github/scripts/cppcheck-gh.xslt report.xml
82
82
sed -i "s#target_branch#${HEAD_REF}#g" report.html
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ tasks.whenTaskAdded { task ->
101
101
objectFileDir = file(" $buildDir /obj/gtest/${ config.name} /${ testName} " )
102
102
compilerArgs. addAll(config. compilerArgs. findAll {
103
103
// need to drop the -std and -DNDEBUG flags because we need a different standard and assertions enabled
104
- it != ' -std=c++11 ' && it != ' -DNDEBUG'
104
+ it != ' -std=c++17 ' && it != ' -DNDEBUG'
105
105
})
106
106
if (os(). isLinux() && isMusl()) {
107
107
compilerArgs. add(' -D__musl__' )
Original file line number Diff line number Diff line change 1
1
CC := g++
2
2
SRCDIR := ../../main/cpp-external ../../main/cpp
3
3
OBJDIR := ./../../../build/scanbuild_obj
4
- CFLAGS := -O0 -Wall -std=c++11 -fno-omit-frame-pointer -momit-leaf-frame-pointer -fvisibility=hidden
4
+ CFLAGS := -O0 -Wall -std=c++17 -fno-omit-frame-pointer -momit-leaf-frame-pointer -fvisibility=hidden
5
5
SRCS := ${wildcard ${SRCDIR}/*.cpp }
6
6
OBJS =${patsubst ${SRCDIR}/%.cpp,${OBJDIR}/%.o,${SRCS}}
7
7
INCLUDES := -I$(JAVA_HOME ) /include -I../../../../malloc-shim/src/main/public
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ def commonLinuxCompilerArgs = [
114
114
" -fvisibility=hidden" ,
115
115
" -fdata-sections" ,
116
116
" -ffunction-sections" ,
117
- " -std=c++11 " ,
117
+ " -std=c++17 " ,
118
118
" -DPROFILER_VERSION=\" ${ version} \" " ,
119
119
" -DCOUNTERS"
120
120
]
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ tasks.withType(CppCompile).configureEach {
11
11
" -O3" ,
12
12
" -fno-omit-frame-pointer" ,
13
13
" -fvisibility=hidden" ,
14
- " -std=c++11 " ,
14
+ " -std=c++17 " ,
15
15
" -DPROFILER_VERSION=\" ${ project.getProperty('version')} \" "
16
16
]
17
17
)
You can’t perform that action at this time.
0 commit comments