Skip to content

Commit 00a584d

Browse files
committed
astyle formatting
1 parent 335c5a9 commit 00a584d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

lib/checkcondition.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,14 +307,12 @@ void CheckCondition::comparison()
307307
const std::string& op(tok->str());
308308
comparisonError(expr1, expr1->str(), num1, op, num2, op!="!=" ? false : true);
309309
}
310-
}
311-
else if (Token::simpleMatch(tok, ">")) {
310+
} else if (Token::simpleMatch(tok, ">")) {
312311
if ((expr1->str() == "&" && (num1 <= num2))) {
313312
const std::string& op(tok->str());
314313
comparisonError(expr1, expr1->str(), num1, op, num2, false);
315314
}
316-
}
317-
else if (Token::simpleMatch(tok, "<")) {
315+
} else if (Token::simpleMatch(tok, "<")) {
318316
if ((expr1->str() == "|" && (num1 >= num2))) {
319317
const std::string& op(tok->str());
320318
comparisonError(expr1, expr1->str(), num1, op, num2, false);

lib/checkio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ namespace {
3333
CheckIO instance;
3434
}
3535

36-
// CVE ID used:
37-
static const CWE CWE398(398U); // Indicator of Poor Code Quality
36+
// CVE ID used:
37+
static const CWE CWE398(398U); // Indicator of Poor Code Quality
3838
static const CWE CWE664(664U);
3939
static const CWE CWE685(685U);
4040
static const CWE CWE687(687U);

lib/checkother.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void CheckOther::checkCastIntToCharAndBackError(const Token *tok, const std::str
117117
" When "+ strFunctionName +"() returns EOF this value is truncated. Comparing the char "
118118
"variable with EOF can have unexpected results. For instance a loop \"while (EOF != (c = "+ strFunctionName +"());\" "
119119
"loops forever on some compilers/platforms and on other compilers/platforms it will stop "
120-
"when the file contains a matching character.", CWE197, false
120+
"when the file contains a matching character.", CWE197, false
121121
);
122122
}
123123

0 commit comments

Comments
 (0)