File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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>> ; "
You can’t perform that action at this time.
0 commit comments