File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
cpp/ql/src/semmle/code/cpp Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -304,15 +304,15 @@ private class SpecifiedDumpType extends DerivedDumpType, SpecifiedType {
304
304
basePrefix = getBaseType ( ) .( DumpType ) .getDeclaratorPrefix ( ) and
305
305
if getBaseType ( ) .getUnspecifiedType ( ) instanceof RoutineType
306
306
then result = basePrefix
307
- else result = basePrefix + " " + getSpecifierString ( ) . trim ( )
307
+ else result = basePrefix + " " + getSpecifierString ( )
308
308
)
309
309
}
310
310
311
311
override string getDeclaratorSuffixBeforeQualifiers ( ) {
312
312
exists ( string baseSuffix |
313
313
baseSuffix = getBaseType ( ) .( DumpType ) .getDeclaratorSuffixBeforeQualifiers ( ) and
314
314
if getBaseType ( ) .getUnspecifiedType ( ) instanceof RoutineType
315
- then result = baseSuffix + " " + getSpecifierString ( ) . trim ( )
315
+ then result = baseSuffix + " " + getSpecifierString ( )
316
316
else result = baseSuffix
317
317
)
318
318
}
Original file line number Diff line number Diff line change @@ -1304,14 +1304,16 @@ class SpecifiedType extends DerivedType {
1304
1304
}
1305
1305
1306
1306
/**
1307
+ * INTERNAL: Do not use.
1308
+ *
1307
1309
* Gets all the specifiers of this type as a string in a fixed order (the order
1308
1310
* only depends on the specifiers, not on the source program). This is intended
1309
1311
* for debugging queries only and is an expensive operation.
1310
1312
*/
1311
- string getSpecifierString ( ) { result = concat ( this .getASpecifier ( ) .getName ( ) , " " ) + " " }
1313
+ string getSpecifierString ( ) { result = concat ( this .getASpecifier ( ) .getName ( ) , " " ) }
1312
1314
1313
1315
override string explain ( ) {
1314
- result = this .getSpecifierString ( ) + "{" + this .getBaseType ( ) .explain ( ) + "}"
1316
+ result = this .getSpecifierString ( ) + " {" + this .getBaseType ( ) .explain ( ) + "}"
1315
1317
}
1316
1318
1317
1319
override predicate isDeeplyConst ( ) {
You can’t perform that action at this time.
0 commit comments