File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
cpp/ql/lib/semmle/code/cpp Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ class Compilation extends @compilation {
9797 /**
9898 * Gets an expanded argument passed to the extractor on this invocation.
9999 */
100- string getAnExpandedArgument ( ) { result = this .getArgument ( _) }
100+ string getAnExpandedArgument ( ) { result = this .getExpandedArgument ( _) }
101101
102102 /**
103103 * Gets the `i`th expanded argument passed to the extractor on this
@@ -107,7 +107,11 @@ class Compilation extends @compilation {
107107 * includes the arguments from that file, rather than just taking the
108108 * argument literally.
109109 */
110- string getExpandedArgument ( int i ) { compilation_expanded_args ( this , i , result ) }
110+ string getExpandedArgument ( int i ) {
111+ if exists ( string arg | compilation_expanded_args ( this , _, arg ) )
112+ then compilation_expanded_args ( this , i , result )
113+ else result = this .getArgument ( i )
114+ }
111115
112116 /**
113117 * Gets the total amount of CPU time spent processing all the files in the
You can’t perform that action at this time.
0 commit comments