[Lldb-commits] [lldb] [lldb][framework] Glob headers from source for framework (PR #148736)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 18 12:26:02 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r HEAD~1...HEAD lldb/scripts/framework-header-fix.py lldb/scripts/version-header-fix.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- framework-header-fix.py 2025-07-18 19:21:52.000000 +0000
+++ framework-header-fix.py 2025-07-18 19:25:32.798169 +0000
@@ -109,11 +109,11 @@
unifdef_path = str(args.unifdef_path)
# Prepend dashes to the list of guards passed in from the command line.
# unifdef takes the guards to remove as arguments in their own right (e.g. -USWIG)
# but passing them in with dashes for this script causes argparse to think that they're
# arguments in and of themself, so they need to passed in without dashes.
- if(args.unifdef_guards):
+ if args.unifdef_guards:
unifdef_guards = ["-" + guard for guard in args.unifdef_guards]
# Create the framework's header dir if it doesn't already exist
if not os.path.exists(os.path.dirname(output_file_path)):
os.makedirs(os.path.dirname(output_file_path))
@@ -122,11 +122,11 @@
modify_main_includes(input_file_path, output_file_path)
if framework_version == "lldb_rpc":
modify_rpc_includes(input_file_path, output_file_path)
# After the incldues have been modified, run unifdef on the headers to remove any guards
# specified at the command line.
- if(args.unifdef_guards):
+ if args.unifdef_guards:
remove_guards(output_file_path, unifdef_path, unifdef_guards)
if __name__ == "__main__":
main()
``````````
</details>
https://github.com/llvm/llvm-project/pull/148736
More information about the lldb-commits
mailing list