Skip to content

Commit

Permalink
Added option to override the automatic language standard for the requ…
Browse files Browse the repository at this point in the history
…irements parser
  • Loading branch information
Viladoman committed Dec 5, 2024
1 parent 89880a0 commit 2dc9578
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CompileScore/Shared/Editor/Extractors/ExtractorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ protected void AddCustomSettings(ProjectProperties projProperties, IMacroEvaluat
AppendMSBuildStringToList(projProperties.PrepocessorDefinitions, evaluator.Evaluate(evaluatorExtra.Evaluate(customSettings.AdditionalPreprocessorDefinitions)));
projProperties.ExtraArguments += evaluator.Evaluate(evaluatorExtra.Evaluate(customSettings.AdditionalCommandLine));
projProperties.ShowWarnings = customSettings.EnableWarnings;
projProperties.Standard = customSettings.LanguageStandard != ProjectProperties.StandardVersion.Default ? customSettings.LanguageStandard : projProperties.Standard;
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion CompileScore/Shared/Settings/SolutionSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ public class ParserSettings
[UIDescription(Label = "Automatic Extraction", Tooltip = "If true, it will try to extract the architecture, include paths, preprocessor macros... from the current solution.")]
public bool AutomaticExtraction { set; get; } = true;

[UIDescription(Label = "Language Standard", Tooltip = "The Language standard to use when invoking the parser (Default) for untouched.")]
public ProjectProperties.StandardVersion LanguageStandard { set; get; } = ProjectProperties.StandardVersion.Default;

[UIDescription(Label = "Explicit Commands File", FilterMethod = "DisplayCMakeCommandsFile", Tooltip = "File location for the build commands exported by CMAKE_EXPORT_COMPILE_COMMANDS=1 (This fields allows a limited set of $(SolutionDir) style macros)")]
public string CMakeCommandsFile { set; get; } = "";

Expand All @@ -85,7 +88,6 @@ public class ParserSettings

[UIDescription(Label = "Parser Output Folder", Tooltip = "File location where the Clang Parser will output the layout results. This files are temporary. This field will default to the extension installation folder. (This fields allows $(SolutionDir) style macros)")]
public string ParserOutputFolder { set; get; } = "";

};


Expand Down

0 comments on commit 2dc9578

Please sign in to comment.