@@ -1808,7 +1808,7 @@ void SymbolDatabase::setArrayDimensionsUsingValueFlow()
18081808
18091809 // In template arguments, there might not be AST
18101810 // Determine size by using the "raw tokens"
1811- TokenList tokenList (& mSettings , dimension.tok ->isCpp () ? Standards::Language::CPP : Standards::Language::C);
1811+ TokenList tokenList (mSettings , dimension.tok ->isCpp () ? Standards::Language::CPP : Standards::Language::C);
18121812 tokenList.addtoken (" ;" , 0 , 0 , 0 , false );
18131813 bool fail = false ;
18141814 for (const Token *tok = dimension.tok ; tok && !Token::Match (tok, " [,>]" ); tok = tok->next ()) {
@@ -7292,7 +7292,7 @@ static const Token* parsedecl(const Token* type,
72927292 else if (Token::simpleMatch (type, " volatile" ))
72937293 valuetype->volatileness |= (1 << (valuetype->pointer - pointer0));
72947294 else if (settings.clang && type->str ().size () > 2 && type->str ().find (" ::" ) < type->str ().find (' <' )) {
7295- TokenList typeTokens (& settings, type->isCpp () ? Standards::Language::CPP : Standards::Language::C);
7295+ TokenList typeTokens (settings, type->isCpp () ? Standards::Language::CPP : Standards::Language::C);
72967296 std::string::size_type pos1 = 0 ;
72977297 do {
72987298 const std::string::size_type pos2 = type->str ().find (" ::" , pos1);
@@ -7715,7 +7715,7 @@ void SymbolDatabase::setValueTypeInTokenList(bool reportDebugWarnings, Token *to
77157715 const std::string& typestr (mSettings .library .returnValueType (tok->previous ()));
77167716 if (!typestr.empty ()) {
77177717 ValueType valuetype;
7718- TokenList tokenList (& mSettings , tok->isCpp () ? Standards::Language::CPP : Standards::Language::C);
7718+ TokenList tokenList (mSettings , tok->isCpp () ? Standards::Language::CPP : Standards::Language::C);
77197719 std::istringstream istr (typestr+" ;" );
77207720 tokenList.createTokens (istr); // TODO: check result?
77217721 tokenList.simplifyStdType ();
@@ -7805,7 +7805,7 @@ void SymbolDatabase::setValueTypeInTokenList(bool reportDebugWarnings, Token *to
78057805 }
78067806 continue ;
78077807 }
7808- TokenList tokenList (& mSettings , tok->isCpp () ? Standards::Language::CPP : Standards::Language::C);
7808+ TokenList tokenList (mSettings , tok->isCpp () ? Standards::Language::CPP : Standards::Language::C);
78097809 std::istringstream istr (typestr+" ;" );
78107810 if (tokenList.createTokens (istr)) {
78117811 ValueType vt;
0 commit comments