Skip to content

Commit d64aea9

Browse files
committed
astyle formatting
1 parent 8828619 commit d64aea9

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

lib/checkuninitvar.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ namespace {
5050

5151
//---------------------------------------------------------------------------
5252

53-
static bool isSizeOfEtc(const Token *tok) {
53+
static bool isSizeOfEtc(const Token *tok)
54+
{
5455
return Token::Match(tok, "sizeof|typeof|offsetof|decltype|__typeof__ (");
5556
}
5657

@@ -1530,7 +1531,7 @@ void CheckUninitVar::valueFlowUninit()
15301531
if (ispointer && v->indirect == 1 && !deref)
15311532
continue;
15321533
if (isarray && !deref)
1533-
continue;
1534+
continue;
15341535
uninitderef = deref && v->indirect == 0;
15351536
const bool isleaf = isLeafDot(tok) || uninitderef;
15361537
if (Token::Match(tok->astParent(), ". %var%") && !isleaf)

lib/forwardanalyzer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ struct ForwardTraversal {
111111
return Progress::Skip;
112112
T* firstOp = tok->astOperand1();
113113
T* secondOp = tok->astOperand2();
114-
// Evaluate:
114+
// Evaluate:
115115
// 1. RHS of assignment before LHS
116116
// 2. Unary op before operand
117117
if (tok->isAssignmentOp() || !secondOp)

test/testsimplifytemplate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5119,8 +5119,8 @@ class TestSimplifyTemplate : public TestFixture {
51195119
tok("template <class T> struct A { T x; };\n"
51205120
"A<int[2]> y;"));
51215121

5122-
// Previously resulted in:
5123-
// test.cpp:2:33: error: Syntax Error: AST broken, binary operator '>' doesn't have two operands. [internalAstError]
5122+
// Previously resulted in:
5123+
// test.cpp:2:33: error: Syntax Error: AST broken, binary operator '>' doesn't have two operands. [internalAstError]
51245124
ASSERT_EQUALS("struct A<B<int>[]> ; "
51255125
"struct B<B<int>> ; "
51265126
"struct C<B<int>> ; "

0 commit comments

Comments
 (0)