@@ -32,7 +32,7 @@ class Options extends string
3232 */
3333 predicate overrideReturnsNull ( Call call ) {
3434 // Used in CVS:
35- call .( FunctionCall ) .getTarget ( ) .hasQualifiedName ( "Xstrdup" )
35+ call .( FunctionCall ) .getTarget ( ) .hasGlobalName ( "Xstrdup" )
3636 or
3737 CustomOptions:: overrideReturnsNull ( call ) // old Options.qll
3838 }
@@ -46,7 +46,7 @@ class Options extends string
4646 */
4747 predicate returnsNull ( Call call ) {
4848 // Used in CVS:
49- call .( FunctionCall ) .getTarget ( ) .hasQualifiedName ( "Xstrdup" ) and
49+ call .( FunctionCall ) .getTarget ( ) .hasGlobalName ( "Xstrdup" ) and
5050 nullValue ( call .getArgument ( 0 ) )
5151 or
5252 CustomOptions:: returnsNull ( call ) // old Options.qll
@@ -92,7 +92,7 @@ class Options extends string
9292 * By default holds only for `fgets`.
9393 */
9494 predicate alwaysCheckReturnValue ( Function f ) {
95- f .hasQualifiedName ( "fgets" ) or
95+ f .hasGlobalName ( "fgets" ) or
9696 CustomOptions:: alwaysCheckReturnValue ( f ) // old Options.qll
9797 }
9898
@@ -108,7 +108,7 @@ class Options extends string
108108 fc .isInMacroExpansion ( )
109109 or
110110 // common way of sleeping using select:
111- ( fc .getTarget ( ) .hasQualifiedName ( "select" ) and
111+ ( fc .getTarget ( ) .hasGlobalName ( "select" ) and
112112 fc .getArgument ( 0 ) .getValue ( ) = "0" )
113113 or
114114 CustomOptions:: okToIgnoreReturnValue ( fc ) // old Options.qll
0 commit comments