@@ -175,9 +175,7 @@ class FormattingFunctionCall extends Expr {
175175 /**
176176 * Gets the index at which the format string occurs in the argument list.
177177 */
178- int getFormatParameterIndex ( ) {
179- result = this .getTarget ( ) .( FormattingFunction ) .getFormatParameterIndex ( )
180- }
178+ int getFormatParameterIndex ( ) { result = this .getTarget ( ) .getFormatParameterIndex ( ) }
181179
182180 /**
183181 * Gets the format expression used in this call.
@@ -191,7 +189,7 @@ class FormattingFunctionCall extends Expr {
191189 exists ( int i |
192190 result = this .getArgument ( i ) and
193191 n >= 0 and
194- n = i - this .getTarget ( ) .( FormattingFunction ) . getFirstFormatArgumentIndex ( )
192+ n = i - this .getTarget ( ) .getFirstFormatArgumentIndex ( )
195193 )
196194 }
197195
@@ -251,7 +249,7 @@ class FormattingFunctionCall extends Expr {
251249 int getNumFormatArgument ( ) {
252250 result = count ( this .getFormatArgument ( _) ) and
253251 // format arguments must be known
254- exists ( this .getTarget ( ) .( FormattingFunction ) . getFirstFormatArgumentIndex ( ) )
252+ exists ( this .getTarget ( ) .getFirstFormatArgumentIndex ( ) )
255253 }
256254
257255 /**
@@ -289,35 +287,27 @@ class FormatLiteral extends Literal {
289287 * a `char *` (either way, `%S` will have the opposite meaning).
290288 * DEPRECATED: Use getDefaultCharType() instead.
291289 */
292- deprecated predicate isWideCharDefault ( ) {
293- this .getUse ( ) .getTarget ( ) .( FormattingFunction ) .isWideCharDefault ( )
294- }
290+ deprecated predicate isWideCharDefault ( ) { this .getUse ( ) .getTarget ( ) .isWideCharDefault ( ) }
295291
296292 /**
297293 * Gets the default character type expected for `%s` by this format literal. Typically
298294 * `char` or `wchar_t`.
299295 */
300- Type getDefaultCharType ( ) {
301- result = this .getUse ( ) .getTarget ( ) .( FormattingFunction ) .getDefaultCharType ( )
302- }
296+ Type getDefaultCharType ( ) { result = this .getUse ( ) .getTarget ( ) .getDefaultCharType ( ) }
303297
304298 /**
305299 * Gets the non-default character type expected for `%S` by this format literal. Typically
306300 * `wchar_t` or `char`. On some snapshots there may be multiple results where we can't tell
307301 * which is correct for a particular function.
308302 */
309- Type getNonDefaultCharType ( ) {
310- result = this .getUse ( ) .getTarget ( ) .( FormattingFunction ) .getNonDefaultCharType ( )
311- }
303+ Type getNonDefaultCharType ( ) { result = this .getUse ( ) .getTarget ( ) .getNonDefaultCharType ( ) }
312304
313305 /**
314306 * Gets the wide character type for this format literal. This is usually `wchar_t`. On some
315307 * snapshots there may be multiple results where we can't tell which is correct for a
316308 * particular function.
317309 */
318- Type getWideCharType ( ) {
319- result = this .getUse ( ) .getTarget ( ) .( FormattingFunction ) .getWideCharType ( )
320- }
310+ Type getWideCharType ( ) { result = this .getUse ( ) .getTarget ( ) .getWideCharType ( ) }
321311
322312 /**
323313 * Holds if this `FormatLiteral` is in a context that supports
@@ -896,7 +886,7 @@ class FormatLiteral extends Literal {
896886 exists ( string len , string conv |
897887 this .parseConvSpec ( n , _, _, _, _, _, len , conv ) and
898888 ( len != "l" and len != "w" and len != "h" ) and
899- this .getUse ( ) .getTarget ( ) .( FormattingFunction ) . getFormatCharType ( ) .getSize ( ) > 1 and // wide function
889+ this .getUse ( ) .getTarget ( ) .getFormatCharType ( ) .getSize ( ) > 1 and // wide function
900890 (
901891 conv = "c" and
902892 result = this .getNonDefaultCharType ( )
0 commit comments