Astyle: sync windows and linux folders (#3016)

This commit is contained in:
Rikard Falkeborn 2021-01-06 17:13:44 +01:00 committed by GitHub
parent a7f0e91539
commit 50cdb6cbfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 8 deletions

View File

@ -648,7 +648,8 @@ bool exprDependsOnThis(const Token* expr, nonneg int depth)
return exprDependsOnThis(expr->astOperand1(), depth) || exprDependsOnThis(expr->astOperand2(), depth);
}
static bool hasUnknownVars(const Token* startTok) {
static bool hasUnknownVars(const Token* startTok)
{
bool result = false;
visitAstNodes(startTok, [&](const Token* tok) {
if (tok->varId() > 0 && !tok->variable()) {

View File

@ -451,8 +451,7 @@ struct ForwardTraversal {
if (!thenBranch.isConclusiveEscape()) {
if (!analyzer->lowerToInconclusive())
return Progress::Break;
}
else if (thenBranch.check) {
} else if (thenBranch.check) {
return Progress::Break;
} else {
if (analyzer->isConditional() && stopUpdates())

View File

@ -58,7 +58,7 @@ formatCplusplus "test/*.cpp"
formatCplusplus "test/cfg/*.c"
formatCplusplus "test/cfg/*.cpp"
formatCplusplus "test/*.h"
formatCplusplus "tools/*.cpp"
formatCplusplusRecursive "tools/*.cpp"
formatCplusplusRecursive "tools/*.h"
formatCplusplusRecursive "samples/*.c"
formatCplusplusRecursive "samples/*.cpp"

View File

@ -30,6 +30,8 @@
%ASTYLE% --options=%RCFILE% -r gui/test/*.h
%ASTYLE% --options=%RCFILE% lib/*.cpp
%ASTYLE% --options=%RCFILE% lib/*.h
%ASTYLE% --options=%RCFILE% oss-fuzz/*.cpp
%ASTYLE% --options=%RCFILE% oss-fuzz/*.h
%ASTYLE% --options=%RCFILE% test/*.cpp
%ASTYLE% --options=%RCFILE% test/cfg/*.c
%ASTYLE% --options=%RCFILE% test/cfg/*.cpp