-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CPPCheckParser with auto closed <error/> tags #82
- Loading branch information
1 parent
62d375d
commit 64781db
Showing
4 changed files
with
81 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
./gradlew release -d || exit 1 | ||
./gradlew release || exit 1 | ||
./build.sh | ||
git commit -a --amend --no-edit | ||
git push -f |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<results> | ||
<error file="filename.cpp" line="49" id="variableScope" severity="style" msg="The scope of the variable 'softwareComponentsAreOk' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: | ||
void f(int x) | ||
{ | ||
int i = 0; | ||
if (x) { | ||
// it's safe to move 'int i = 0;' here | ||
for (int n = 0; n < 10; ++n) { | ||
// it is possible but not safe to move 'int i = 0;' here | ||
do_something(&i); | ||
} | ||
} | ||
} | ||
When you see this message it is always safe to reduce the variable scope 1 level."/> | ||
</results> |