File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -945,7 +945,7 @@ void CmdLineParser::PrintHelp()
945945 " 64 bit Windows\n "
946946 " * native\n "
947947 " Unspecified platform. Type sizes of host system\n "
948- " is assumed, but no further assumptions.\n "
948+ " are assumed, but no further assumptions.\n "
949949 " -q, --quiet Only print error messages.\n "
950950 " -rp, --relative-paths\n "
951951 " -rp=<paths>, --relative-paths=<paths>\n "
Original file line number Diff line number Diff line change @@ -322,13 +322,13 @@ void CheckCondition::multiCondition()
322322 const SymbolDatabase* const symbolDatabase = _tokenizer->getSymbolDatabase ();
323323
324324 for (std::list<Scope>::const_iterator i = symbolDatabase->scopeList .begin (); i != symbolDatabase->scopeList .end (); ++i) {
325- if (i->type != Scope::eIf || ! Token::simpleMatch (i-> classDef , " if ( " ) )
325+ if (i->type != Scope::eIf)
326326 continue ;
327327
328328 const Token * const cond1 = i->classDef ->next ()->astOperand2 ();
329329
330330 const Token * tok2 = i->classDef ->next ();
331- while (tok2 ) {
331+ for (;; ) {
332332 tok2 = tok2->link ();
333333 if (!Token::simpleMatch (tok2, " ) {" ))
334334 break ;
Original file line number Diff line number Diff line change @@ -2237,7 +2237,8 @@ class TestSymbolDatabase: public TestFixture {
22372237 " }\n "
22382238 " };" );
22392239 ASSERT (db && db->findScopeByName (" Bar" ) && !db->findScopeByName (" Bar" )->functionList .front ().isImplicitlyVirtual (false ));
2240- ASSERT_EQUALS (1 , db->findScopeByName (" Bar" )->functionList .size ());
2240+ if (db)
2241+ ASSERT_EQUALS (1 , db->findScopeByName (" Bar" )->functionList .size ());
22412242 }
22422243
22432244 // #5590
You can’t perform that action at this time.
0 commit comments