[ClavaAst] Adds overload for ClavaLog.info()
package pt.up.fe.specs.clava;
+import java.util.function.Supplier;
+
import pt.up.fe.specs.util.SpecsLogs;
import pt.up.fe.specs.util.lazy.Lazy;
import pt.up.fe.specs.util.logging.SpecsLogger;
@@ -38,6 +40,10 @@ public class ClavaLog extends SpecsLogger {
logger().msgInfo(message);
}
+ public static void info(Supplier<String> message) {
+ info(message.get());
+ }
+
public static void warning(ClavaNode node, String message) {
warning(message + " (" + node.getLocation() + ")");
// LoggingUtils.msgInfo("[Warning] " + message + " (" + pragma.getLocation() + ")");
