[ClavaLaraApi] Inlining supports an option object, and 'normalizeToSubset' option
@@ -3,8 +3,16 @@ laraImport("clava.opt.NormalizeToSubset");
laraImport("clava.opt.PrepareForInlining");
laraImport("clava.code.Inliner");
-function Inlining() {
- NormalizeToSubset(Query.root());
+/**
+ *
+ * @param {object} options - Object with options. Supported options: 'normalizeToSubset' (default: {}), options for function NormalizeToSubset
+ */
+function Inlining(options) {
+ _options = options ?? {};
+ _options["normalizeToSubset"] ??= {};
+
+ // TODO: Maybe passing a NormalizeToSubset instance is preferrable, but that means making NormalizeToSubset a class instead of a function
+ NormalizeToSubset(Query.root(), _options["normalizeToSubset"]);
const inliner = new Inliner();
