File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 7676 - name : Run Cppcheck
7777 id : run-cppcheck
7878 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/*
8080 xsltproc --output report.html .github/scripts/cppcheck-html.xslt report.xml
8181 xsltproc --output report-gh.html .github/scripts/cppcheck-gh.xslt report.xml
8282 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 ->
101101 objectFileDir = file(" $buildDir /obj/gtest/${ config.name} /${ testName} " )
102102 compilerArgs. addAll(config. compilerArgs. findAll {
103103 // 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'
105105 })
106106 if (os(). isLinux() && isMusl()) {
107107 compilerArgs. add(' -D__musl__' )
Original file line number Diff line number Diff line change 11CC := g++
22SRCDIR := ../../main/cpp-external ../../main/cpp
33OBJDIR := ./../../../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
55SRCS := ${wildcard ${SRCDIR}/*.cpp }
66OBJS =${patsubst ${SRCDIR}/%.cpp,${OBJDIR}/%.o,${SRCS}}
77INCLUDES := -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 = [
114114 " -fvisibility=hidden" ,
115115 " -fdata-sections" ,
116116 " -ffunction-sections" ,
117- " -std=c++11 " ,
117+ " -std=c++17 " ,
118118 " -DPROFILER_VERSION=\" ${ version} \" " ,
119119 " -DCOUNTERS"
120120]
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ tasks.withType(CppCompile).configureEach {
1111 " -O3" ,
1212 " -fno-omit-frame-pointer" ,
1313 " -fvisibility=hidden" ,
14- " -std=c++11 " ,
14+ " -std=c++17 " ,
1515 " -DPROFILER_VERSION=\" ${ project.getProperty('version')} \" "
1616 ]
1717 )
You can’t perform that action at this time.
0 commit comments