File tree Expand file tree Collapse file tree 5 files changed +42
-16
lines changed
Expand file tree Collapse file tree 5 files changed +42
-16
lines changed Original file line number Diff line number Diff line change 1+ name : Build (Ubuntu)
2+ on :
3+ push :
4+ jobs :
5+ build-project :
6+ name : Build Project
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : Checkout Project
10+ uses : actions/checkout@v4.2.2
11+
12+ - name : Build Project
13+ uses : threeal/cmake-action@v2.1.0
Original file line number Diff line number Diff line change 1+ name : Build (Windows)
2+ on :
3+ push :
4+ jobs :
5+ build-project :
6+ name : Build Project
7+ runs-on : windows-latest
8+ steps :
9+ - name : Checkout Project
10+ uses : actions/checkout@v4.2.2
11+
12+ - name : Build Project
13+ uses : threeal/cmake-action@v2.1.0
Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.2)
2+
3+ project (run-cppcheck)
4+
5+ set (CMAKE_CXX_STANDARD 17)
6+
7+ if (UNIX )
8+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static -static-libgcc -static-libstdc++" )
9+ endif (UNIX )
10+
11+ set (SOURCE_FILES main.cpp config.cpp)
12+
13+ add_executable (run-cppcheck main.cpp config.cpp)
14+ install (TARGETS run-cppcheck)
15+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ std::string Config::command() const
111111
112112 if (!m_projectFilePath.empty ()) {
113113
114- std::string filter = m_filename;
114+ std::string filter = m_filename. string () ;
115115 if (std::strchr (filter.c_str (), ' ' ))
116116 filter = " \" " + filter + " \" " ;
117117
You can’t perform that action at this time.
0 commit comments