[ClangAstParser] Checks if a value for Standard is present before adding
@@ -107,8 +107,10 @@ public class ClangDumperParser {
arguments.add("--");
- // Add standard
+ // Add standard if present
+ if (config.hasValue(ClavaOptions.STANDARD)) {
arguments.add(config.get(ClavaOptions.STANDARD).getFlag());
+ }
List<String> systemIncludes = new ArrayList<>();
