[ClavaWeaver] Adds support for cleaning temporary files with the option
clean
@@ -123,11 +123,16 @@ public class CxxWeaver extends ACxxWeaver {
+ Standard.getEnumHelper().getAvailableOptions(),
ClavaOptions.STANDARD));
+ addOneArgOption(ClavaOptions.FLAGS, "fs", "flags", "flags string",
+ "String with C/C++ compiler flags");
+
WEAVER_OPTIONS.put(CxxWeaverOption.DISABLE_WEAVING.getName(), WeaverOptionBuilder.build("nw", "no-weaving",
"Disables weaving of source code, only runs the LARA aspect", CxxWeaverOption.DISABLE_WEAVING));
addBooleanOption(CxxWeaverOption.CHECK_SYNTAX, "cs", "check-syntax", "Checks syntax of weaved code");
+ addBooleanOption(CxxWeaverOption.CLEAN_INTERMEDIATE_FILES, "cl", "clean", "Clean intermediate files");
+
WEAVER_OPTIONS.put(CxxWeaverOption.DISABLE_CLAVA_INFO.getName(),
WeaverOptionBuilder.build("nci", "no-clava-info",
"Disables printing of information about Clava", CxxWeaverOption.DISABLE_CLAVA_INFO));
@@ -136,10 +141,6 @@ public class CxxWeaver extends ACxxWeaver {
"dir1[,dir2]*",
"Includes folder for C/C++ headers that should be considered 'system libraries'. System libraries are not processed by Clava and do not appear in the AST.");
- addOneArgOption(ClavaOptions.FLAGS, "fs", "flags",
- "flags string",
- "String with flags to pass to the Clang dumper.");
-
addOneArgOption(CxxWeaverOption.WEAVED_CODE_FOLDERNAME, "of", "output-foldername",
"dir",
"Sets the name of the weaved code folder (default value: '" + CxxWeaver.getWeavedCodeFoldername()
