C++: Expose the expanded compilation arguments

This commit is contained in:
Jeroen Ketema
2025-11-12 11:47:29 +01:00
parent 861c236dae
commit ee97d6f461

View File

@@ -94,6 +94,19 @@ class Compilation extends @compilation {
*/
string getArgument(int i) { compilation_args(this, i, result) }
/**
* Gets an expanded argument passed to the extractor on this invocation.
*/
string getAnExpandedArgument() { result = this.getArgument(_) }
/**
* The expanded arguments that were passed to the extractor for a
* compiler invocation. This is similar to `getArgument`, but
* for a `@someFile` argument, it includes the arguments from that
* file, rather than just taking the argument literally.
*/
string getExpandedArgument(int i) { compilation_expanded_args(this, i, result) }
/**
* Gets the total amount of CPU time spent processing all the files in the
* front-end and extractor.