Skip to content
Snippets Groups Projects

Improved Source File and Code Structure Modelling

Merged Frederik Hennig requested to merge fhennig/source-files into master
Viewing commit 73ead40a
Show latest version
7 files
+ 23
17
Preferences
Compare changes
Files
7
@@ -14,7 +14,7 @@ def invoke_clang_format(
Args:
code: Code string to format
options: Options controlling the clang-format invocation
sort_includes: Option to be passed on to clang-format's ``--sort-includes`` argument
sort_includes: Option to be passed on to clang-format's ``--sort-includes`` argument
Returns:
The formatted code, if `clang-format` was run sucessfully.
@@ -33,7 +33,7 @@ def invoke_clang_format(
force = options.get_option("force")
style = options.get_option("code_style")
args = [binary, f"--style={style}"]
if sort_includes is not None:
args += ["--sort-includes", sort_includes]