[ClavaAst] Adds ClavaNode.IS_IN_SYSTEM_HEADER
@@ -99,6 +99,11 @@ public abstract class ClavaNode extends ATreeNode<ClavaNode> implements DataClas
.setDefault(() -> new ArrayList<>())
.setCopyFunction(inlineComments -> new ArrayList<>(inlineComments));
+ /**
+ * True if the location of this node is valid, and is in a system header.
+ */
+ public final static DataKey<Boolean> IS_IN_SYSTEM_HEADER = KeyFactory.bool("isInSystemHeader");
+
/**
* True if this node was created using legacy parser classes.
*/
@@ -172,6 +177,7 @@ public abstract class ClavaNode extends ATreeNode<ClavaNode> implements DataClas
}
public String getCode() {
+ ClavaLog.info("getCode() not implemented for this node: " + this);
throw new NotImplementedException(getClass());
// stringreturn toUnimplementedCode();
}
