@@ -4043,7 +4043,7 @@ void SymbolDatabase::printXml(std::ostream &out) const
40434043 for (std::list<Scope>::const_iterator scope = scopeList.cbegin (); scope != scopeList.cend (); ++scope) {
40444044 outs += " <scope" ;
40454045 outs += " id=\" " ;
4046- outs += ptr_to_string (&*scope);
4046+ outs += id_string (&*scope);
40474047 outs += " \" " ;
40484048 outs += " type=\" " ;
40494049 outs += scopeTypeToString (scope->type );
@@ -4055,27 +4055,27 @@ void SymbolDatabase::printXml(std::ostream &out) const
40554055 }
40564056 if (scope->bodyStart ) {
40574057 outs += " bodyStart=\" " ;
4058- outs += ptr_to_string (scope->bodyStart );
4058+ outs += id_string (scope->bodyStart );
40594059 outs += ' \" ' ;
40604060 }
40614061 if (scope->bodyEnd ) {
40624062 outs += " bodyEnd=\" " ;
4063- outs += ptr_to_string (scope->bodyEnd );
4063+ outs += id_string (scope->bodyEnd );
40644064 outs += ' \" ' ;
40654065 }
40664066 if (scope->nestedIn ) {
40674067 outs += " nestedIn=\" " ;
4068- outs += ptr_to_string (scope->nestedIn );
4068+ outs += id_string (scope->nestedIn );
40694069 outs += " \" " ;
40704070 }
40714071 if (scope->function ) {
40724072 outs += " function=\" " ;
4073- outs += ptr_to_string (scope->function );
4073+ outs += id_string (scope->function );
40744074 outs += " \" " ;
40754075 }
40764076 if (scope->definedType ) {
40774077 outs += " definedType=\" " ;
4078- outs += ptr_to_string (scope->definedType );
4078+ outs += id_string (scope->definedType );
40794079 outs += " \" " ;
40804080 }
40814081 if (scope->functionList .empty () && scope->varlist .empty ())
@@ -4086,11 +4086,11 @@ void SymbolDatabase::printXml(std::ostream &out) const
40864086 outs += " <functionList>\n " ;
40874087 for (std::list<Function>::const_iterator function = scope->functionList .cbegin (); function != scope->functionList .cend (); ++function) {
40884088 outs += " <function id=\" " ;
4089- outs += ptr_to_string (&*function);
4089+ outs += id_string (&*function);
40904090 outs += " \" token=\" " ;
4091- outs += ptr_to_string (function->token );
4091+ outs += id_string (function->token );
40924092 outs += " \" tokenDef=\" " ;
4093- outs += ptr_to_string (function->tokenDef );
4093+ outs += id_string (function->tokenDef );
40944094 outs += " \" name=\" " ;
40954095 outs += ErrorLogger::toxml (function->name ());
40964096 outs += ' \" ' ;
@@ -4123,7 +4123,7 @@ void SymbolDatabase::printXml(std::ostream &out) const
41234123 outs += " isAttributeNoreturn=\" true\" " ;
41244124 if (const Function* overriddenFunction = function->getOverriddenFunction ()) {
41254125 outs += " overriddenFunction=\" " ;
4126- outs += ptr_to_string (overriddenFunction);
4126+ outs += id_string (overriddenFunction);
41274127 outs += " \" " ;
41284128 }
41294129 if (function->argCount () == 0U )
@@ -4135,7 +4135,7 @@ void SymbolDatabase::printXml(std::ostream &out) const
41354135 outs += " <arg nr=\" " ;
41364136 outs += std::to_string (argnr+1 );
41374137 outs += " \" variable=\" " ;
4138- outs += ptr_to_string (arg);
4138+ outs += id_string (arg);
41394139 outs += " \" />\n " ;
41404140 variables.insert (arg);
41414141 }
@@ -4148,7 +4148,7 @@ void SymbolDatabase::printXml(std::ostream &out) const
41484148 outs += " <varlist>\n " ;
41494149 for (std::list<Variable>::const_iterator var = scope->varlist .cbegin (); var != scope->varlist .cend (); ++var) {
41504150 outs += " <var id=\" " ;
4151- outs += ptr_to_string (&*var);
4151+ outs += id_string (&*var);
41524152 outs += " \" />\n " ;
41534153 }
41544154 outs += " </varlist>\n " ;
@@ -4162,9 +4162,9 @@ void SymbolDatabase::printXml(std::ostream &out) const
41624162 outs += " <types>\n " ;
41634163 for (const Type& type:typeList) {
41644164 outs += " <type id=\" " ;
4165- outs += ptr_to_string (&type);
4165+ outs += id_string (&type);
41664166 outs += " \" classScope=\" " ;
4167- outs += ptr_to_string (type.classScope );
4167+ outs += id_string (type.classScope );
41684168 outs += " \" " ;
41694169 if (type.derivedFrom .empty ()) {
41704170 outs += " />\n " ;
@@ -4177,13 +4177,13 @@ void SymbolDatabase::printXml(std::ostream &out) const
41774177 outs += accessControlToString (baseInfo.access );
41784178 outs += " \" " ;
41794179 outs += " type=\" " ;
4180- outs += ptr_to_string (baseInfo.type );
4180+ outs += id_string (baseInfo.type );
41814181 outs += " \" " ;
41824182 outs += " isVirtual=\" " ;
41834183 outs += bool_to_string (baseInfo.isVirtual );
41844184 outs += " \" " ;
41854185 outs += " nameTok=\" " ;
4186- outs += ptr_to_string (baseInfo.nameTok );
4186+ outs += id_string (baseInfo.nameTok );
41874187 outs += " \" " ;
41884188 outs += " />\n " ;
41894189 }
@@ -4200,22 +4200,22 @@ void SymbolDatabase::printXml(std::ostream &out) const
42004200 if (!var)
42014201 continue ;
42024202 outs += " <var id=\" " ;
4203- outs += ptr_to_string (var);
4203+ outs += id_string (var);
42044204 outs += ' \" ' ;
42054205 outs += " nameToken=\" " ;
4206- outs += ptr_to_string (var->nameToken ());
4206+ outs += id_string (var->nameToken ());
42074207 outs += ' \" ' ;
42084208 outs += " typeStartToken=\" " ;
4209- outs += ptr_to_string (var->typeStartToken ());
4209+ outs += id_string (var->typeStartToken ());
42104210 outs += ' \" ' ;
42114211 outs += " typeEndToken=\" " ;
4212- outs += ptr_to_string (var->typeEndToken ());
4212+ outs += id_string (var->typeEndToken ());
42134213 outs += ' \" ' ;
42144214 outs += " access=\" " ;
42154215 outs += accessControlToString (var->mAccess );
42164216 outs += ' \" ' ;
42174217 outs += " scope=\" " ;
4218- outs += ptr_to_string (var->scope ());
4218+ outs += id_string (var->scope ());
42194219 outs += ' \" ' ;
42204220 if (var->valueType ()) {
42214221 outs += " constness=\" " ;
@@ -7591,7 +7591,7 @@ std::string ValueType::dump() const
75917591 case CONTAINER: {
75927592 ret += " valueType-type=\" container\" " ;
75937593 ret += " valueType-containerId=\" " ;
7594- ret += ptr_to_string (container);
7594+ ret += id_string (container);
75957595 ret += " \" " ;
75967596 break ;
75977597 }
@@ -7674,7 +7674,7 @@ std::string ValueType::dump() const
76747674
76757675 if (typeScope) {
76767676 ret += " valueType-typeScope=\" " ;
7677- ret += ptr_to_string (typeScope);
7677+ ret += id_string (typeScope);
76787678 ret += ' \" ' ;
76797679 }
76807680
0 commit comments