@@ -1308,7 +1308,7 @@ class SpecifiedType extends DerivedType {
1308
1308
* only depends on the specifiers, not on the source program). This is intended
1309
1309
* for debugging queries only and is an expensive operation.
1310
1310
*/
1311
- string getSpecifierString ( ) { internalSpecString ( this , result , 1 ) }
1311
+ string getSpecifierString ( ) { result = concat ( this . getASpecifier ( ) . getName ( ) , " " ) + " " }
1312
1312
1313
1313
override string explain ( ) {
1314
1314
result = this .getSpecifierString ( ) + "{" + this .getBaseType ( ) .explain ( ) + "}"
@@ -1710,28 +1710,6 @@ class AutoType extends TemplateParameter {
1710
1710
}
1711
1711
}
1712
1712
1713
- //
1714
- // Internal implementation predicates
1715
- //
1716
- private predicate allSpecifiers ( int i , string s ) { s = rank [ i ] ( string t | specifiers ( _, t ) | t ) }
1717
-
1718
- private predicate internalSpecString ( Type t , string res , int i ) {
1719
- (
1720
- if allSpecifiers ( i , t .getASpecifier ( ) .getName ( ) )
1721
- then
1722
- exists ( string spec , string rest |
1723
- allSpecifiers ( i , spec ) and
1724
- res = spec + " " + rest and
1725
- internalSpecString ( t , rest , i + 1 )
1726
- )
1727
- else (
1728
- allSpecifiers ( i , _) and internalSpecString ( t , res , i + 1 )
1729
- )
1730
- )
1731
- or
1732
- i = count ( Specifier s ) + 1 and res = ""
1733
- }
1734
-
1735
1713
private predicate suppressUnusedThis ( Type t ) { any ( ) }
1736
1714
1737
1715
/** A source code ___location referring to a type */
0 commit comments