-
Notifications
You must be signed in to change notification settings - Fork 962
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1175 from libcpr/feature/ci-fixes
Clang-Tidy And cppcheck Fixes
- Loading branch information
Showing
12 changed files
with
75 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
find_program(CMAKE_CXX_CPPCHECK NAMES cppcheck) | ||
|
||
if(CMAKE_CXX_CPPCHECK) | ||
list(APPEND CMAKE_CXX_CPPCHECK | ||
list(APPEND CMAKE_CXX_CPPCHECK "--xml" | ||
"--error-exitcode=1" | ||
"--enable=warning,style" | ||
"--force" | ||
"--force" | ||
"--inline-suppr" | ||
"--addon=y2038" | ||
"--std=c++${CMAKE_CXX_STANDARD}" | ||
"--suppressions-list=${CMAKE_SOURCE_DIR}/CppCheckSuppressions.txt") | ||
"--cppcheck-build-dir=${PROJECT_BINARY_DIR}" | ||
"--suppress-xml=${PROJECT_SOURCE_DIR}/cppcheck-suppressions.xml" | ||
"--output-file=${PROJECT_BINARY_DIR}/cppcheck.xml" | ||
"--check-level=normal") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0"?> | ||
<suppressions> | ||
<!-- Exclude Paths --> | ||
<suppress> | ||
<id>*</id> | ||
<fileName>*/build/*</fileName> | ||
</suppress> | ||
<suppress> | ||
<id>CheckLevelMaxBranches</id> | ||
</suppress> | ||
<suppress> | ||
<id>noExplicitConstructor</id> | ||
</suppress> | ||
<suppress> | ||
<id>knownConditionTrueFalse</id> | ||
<fileName>*/include/cpr/async_wrapper.h</fileName> | ||
</suppress> | ||
<suppress> | ||
<id>y2038-unsafe-call</id> | ||
<fileName>*/cpr/cookies.cpp</fileName> | ||
</suppress> | ||
<!-- Known Limitation/Bug: https://github.com/libcpr/cpr/issues/1174 --> | ||
<suppress> | ||
<id>y2038-unsafe-call</id> | ||
<fileName>*/include/cpr/low_speed.h</fileName> | ||
</suppress> | ||
<suppress> | ||
<id>normalCheckLevelMaxBranches</id> | ||
</suppress> | ||
<suppress> | ||
<id>constParameterPointer</id> | ||
<fileName>*/cpr/util.cpp</fileName> | ||
</suppress> | ||
<suppress> | ||
<id>postfixOperator</id> | ||
</suppress> | ||
</suppressions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#include "cpr/proxyauth.h" | ||
#include "cpr/util.h" | ||
#include <string> | ||
#include <string_view> | ||
|
||
namespace cpr { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters