[all-commits] [llvm/llvm-project] f98ee4: [NFC][Py Reformat] Reformat python files in the re...

Tobias Hieta via All-commits all-commits at lists.llvm.org
Thu May 25 02:17:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f98ee40f4b5d7474fc67e82824bf6abbaedb7b1c
      https://github.com/llvm/llvm-project/commit/f98ee40f4b5d7474fc67e82824bf6abbaedb7b1c
  Author: Tobias Hieta <tobias at hieta.se>
  Date:   2023-05-25 (Thu, 25 May 2023)

  Changed paths:
    M bolt/docs/conf.py
    M bolt/test/AArch64/lit.local.cfg
    M bolt/test/Unit/lit.cfg.py
    M bolt/test/X86/lit.local.cfg
    M bolt/test/link_fdata.py
    M bolt/test/lit.cfg.py
    M bolt/test/lit.local.cfg
    M bolt/test/runtime/AArch64/lit.local.cfg
    M bolt/test/runtime/X86/lit.local.cfg
    M bolt/test/runtime/lit.local.cfg
    M bolt/utils/dot2html/dot2html.py
    M bolt/utils/llvm-bolt-wrapper.py
    M bolt/utils/nfc-check-setup.py
    M compiler-rt/lib/asan/scripts/asan_symbolize.py
    M compiler-rt/lib/dfsan/scripts/build-libc-list.py
    M compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py
    M compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
    M compiler-rt/lib/sanitizer_common/scripts/sancov.py
    M compiler-rt/test/asan/TestCases/Android/lit.local.cfg.py
    M compiler-rt/test/asan/TestCases/Darwin/lit.local.cfg.py
    M compiler-rt/test/asan/TestCases/Linux/lit.local.cfg.py
    M compiler-rt/test/asan/TestCases/Posix/asan_symbolize_script/plugin_no_op.py
    M compiler-rt/test/asan/TestCases/Posix/asan_symbolize_script/plugin_wrong_frame_number_bug.py
    M compiler-rt/test/asan/TestCases/Posix/lit.local.cfg.py
    M compiler-rt/test/asan/TestCases/Windows/lit.local.cfg.py
    M compiler-rt/test/asan/TestCases/Windows/msvc/lit.local.cfg.py
    M compiler-rt/test/asan/lit.cfg.py
    M compiler-rt/test/builtins/TestCases/Darwin/lit.local.cfg.py
    M compiler-rt/test/builtins/Unit/lit.cfg.py
    M compiler-rt/test/builtins/lit.cfg.py
    M compiler-rt/test/cfi/cross-dso/icall/lit.local.cfg.py
    M compiler-rt/test/cfi/cross-dso/lit.local.cfg.py
    M compiler-rt/test/cfi/icall/lit.local.cfg.py
    M compiler-rt/test/cfi/lit.cfg.py
    M compiler-rt/test/crt/lit.cfg.py
    M compiler-rt/test/dfsan/lit.cfg.py
    M compiler-rt/test/fuzzer/lit.cfg.py
    M compiler-rt/test/gwp_asan/lit.cfg.py
    M compiler-rt/test/hwasan/TestCases/Linux/lit.local.cfg.py
    M compiler-rt/test/hwasan/TestCases/Posix/lit.local.cfg.py
    M compiler-rt/test/hwasan/lit.cfg.py
    M compiler-rt/test/lit.common.cfg.py
    M compiler-rt/test/lsan/TestCases/Darwin/lit.local.cfg.py
    M compiler-rt/test/lsan/TestCases/Linux/lit.local.cfg.py
    M compiler-rt/test/lsan/TestCases/Posix/lit.local.cfg.py
    M compiler-rt/test/lsan/lit.common.cfg.py
    M compiler-rt/test/memprof/lit.cfg.py
    M compiler-rt/test/metadata/lit.cfg.py
    M compiler-rt/test/msan/Linux/lit.local.cfg.py
    M compiler-rt/test/msan/lit.cfg.py
    M compiler-rt/test/orc/TestCases/Darwin/arm64/lit.local.cfg.py
    M compiler-rt/test/orc/TestCases/Darwin/lit.local.cfg.py
    M compiler-rt/test/orc/TestCases/Darwin/x86-64/lit.local.cfg.py
    M compiler-rt/test/orc/TestCases/FreeBSD/lit.local.cfg.py
    M compiler-rt/test/orc/TestCases/FreeBSD/x86-64/lit.local.cfg.py
    M compiler-rt/test/orc/TestCases/Generic/lit.local.cfg.py
    M compiler-rt/test/orc/TestCases/Linux/aarch64/lit.local.cfg.py
    M compiler-rt/test/orc/TestCases/Linux/lit.local.cfg.py
    M compiler-rt/test/orc/TestCases/Linux/x86-64/lit.local.cfg.py
    M compiler-rt/test/orc/TestCases/Windows/lit.local.cfg.py
    M compiler-rt/test/orc/TestCases/Windows/x86-64/lit.local.cfg.py
    M compiler-rt/test/orc/lit.cfg.py
    M compiler-rt/test/profile/AIX/lit.local.cfg.py
    M compiler-rt/test/profile/Darwin/lit.local.cfg.py
    M compiler-rt/test/profile/Linux/lit.local.cfg.py
    M compiler-rt/test/profile/Posix/lit.local.cfg.py
    M compiler-rt/test/profile/Windows/lit.local.cfg.py
    M compiler-rt/test/profile/lit.cfg.py
    M compiler-rt/test/safestack/lit.cfg.py
    M compiler-rt/test/sanitizer_common/TestCases/Darwin/lit.local.cfg.py
    M compiler-rt/test/sanitizer_common/TestCases/FreeBSD/lit.local.cfg.py
    M compiler-rt/test/sanitizer_common/TestCases/Linux/lit.local.cfg.py
    M compiler-rt/test/sanitizer_common/TestCases/NetBSD/lit.local.cfg.py
    M compiler-rt/test/sanitizer_common/TestCases/Posix/lit.local.cfg.py
    M compiler-rt/test/sanitizer_common/android_commands/android_common.py
    M compiler-rt/test/sanitizer_common/android_commands/android_compile.py
    M compiler-rt/test/sanitizer_common/android_commands/android_run.py
    M compiler-rt/test/sanitizer_common/ios_commands/get_pid_from_output.py
    M compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py
    M compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py
    M compiler-rt/test/sanitizer_common/ios_commands/print_crashreport_for_pid.py
    M compiler-rt/test/sanitizer_common/lit.common.cfg.py
    M compiler-rt/test/scudo/lit.cfg.py
    M compiler-rt/test/shadowcallstack/lit.cfg.py
    M compiler-rt/test/tsan/Darwin/lit.local.cfg.py
    M compiler-rt/test/tsan/Linux/lit.local.cfg.py
    M compiler-rt/test/tsan/libcxx/lit.local.cfg.py
    M compiler-rt/test/tsan/libdispatch/lit.local.cfg.py
    M compiler-rt/test/tsan/lit.cfg.py
    M compiler-rt/test/ubsan/TestCases/Misc/Linux/lit.local.cfg.py
    M compiler-rt/test/ubsan/TestCases/TypeCheck/Function/lit.local.cfg.py
    M compiler-rt/test/ubsan/TestCases/TypeCheck/Linux/lit.local.cfg.py
    M compiler-rt/test/ubsan/lit.common.cfg.py
    M compiler-rt/test/ubsan_minimal/lit.common.cfg.py
    M compiler-rt/test/xray/lit.cfg.py
    M compiler-rt/unittests/lit.common.unit.cfg.py
    M cross-project-tests/amdgpu/lit.local.cfg
    M cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/lit.local.cfg
    M cross-project-tests/debuginfo-tests/dexter-tests/lit.local.cfg
    M cross-project-tests/debuginfo-tests/dexter/dex/__init__.py
    M cross-project-tests/debuginfo-tests/dexter/dex/builder/Builder.py
    M cross-project-tests/debuginfo-tests/dexter/dex/builder/ParserOptions.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/CommandBase.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/ParseCommand.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/StepValueInfo.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexCommandLine.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexDeclareAddress.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexDeclareFile.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexExpectProgramState.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexExpectStepKind.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexExpectStepOrder.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchType.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchValue.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexFinishTest.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexLabel.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexLimitSteps.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexUnreachable.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexWatch.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerBase.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerControllers/ConditionalController.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerControllers/ControllerHelpers.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerControllers/DebuggerControllerBase.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerControllers/DefaultController.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/Debuggers.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/__init__.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/dbgeng/__init__.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/dbgeng/breakpoint.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/dbgeng/client.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/dbgeng/control.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/dbgeng/dbgeng.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/dbgeng/probe_process.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/dbgeng/setup.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/dbgeng/symbols.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/dbgeng/symgroup.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/dbgeng/sysobjs.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/dbgeng/utils.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/lldb/LLDB.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio2015.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio2017.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio2019.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/windows/ComInterface.py
    M cross-project-tests/debuginfo-tests/dexter/dex/dextIR/BuilderIR.py
    M cross-project-tests/debuginfo-tests/dexter/dex/dextIR/DextIR.py
    M cross-project-tests/debuginfo-tests/dexter/dex/dextIR/LocIR.py
    M cross-project-tests/debuginfo-tests/dexter/dex/dextIR/ProgramState.py
    M cross-project-tests/debuginfo-tests/dexter/dex/dextIR/StepIR.py
    M cross-project-tests/debuginfo-tests/dexter/dex/dextIR/ValueIR.py
    M cross-project-tests/debuginfo-tests/dexter/dex/heuristic/Heuristic.py
    M cross-project-tests/debuginfo-tests/dexter/dex/tools/Main.py
    M cross-project-tests/debuginfo-tests/dexter/dex/tools/TestToolBase.py
    M cross-project-tests/debuginfo-tests/dexter/dex/tools/ToolBase.py
    M cross-project-tests/debuginfo-tests/dexter/dex/tools/clang_opt_bisect/Tool.py
    M cross-project-tests/debuginfo-tests/dexter/dex/tools/help/Tool.py
    M cross-project-tests/debuginfo-tests/dexter/dex/tools/list_debuggers/Tool.py
    M cross-project-tests/debuginfo-tests/dexter/dex/tools/no_tool_/Tool.py
    M cross-project-tests/debuginfo-tests/dexter/dex/tools/run_debugger_internal_/Tool.py
    M cross-project-tests/debuginfo-tests/dexter/dex/tools/test/Tool.py
    M cross-project-tests/debuginfo-tests/dexter/dex/tools/view/Tool.py
    M cross-project-tests/debuginfo-tests/dexter/dex/utils/Environment.py
    M cross-project-tests/debuginfo-tests/dexter/dex/utils/Exceptions.py
    M cross-project-tests/debuginfo-tests/dexter/dex/utils/ExtArgParse.py
    M cross-project-tests/debuginfo-tests/dexter/dex/utils/Logging.py
    M cross-project-tests/debuginfo-tests/dexter/dex/utils/PrettyOutputBase.py
    M cross-project-tests/debuginfo-tests/dexter/dex/utils/ReturnCode.py
    M cross-project-tests/debuginfo-tests/dexter/dex/utils/RootDirectory.py
    M cross-project-tests/debuginfo-tests/dexter/dex/utils/Timeout.py
    M cross-project-tests/debuginfo-tests/dexter/dex/utils/Timer.py
    M cross-project-tests/debuginfo-tests/dexter/dex/utils/UnitTests.py
    M cross-project-tests/debuginfo-tests/dexter/dex/utils/Version.py
    M cross-project-tests/debuginfo-tests/dexter/dex/utils/WorkingDirectory.py
    M cross-project-tests/debuginfo-tests/dexter/dex/utils/posix/PrettyOutput.py
    M cross-project-tests/debuginfo-tests/dexter/dex/utils/windows/PrettyOutput.py
    M cross-project-tests/debuginfo-tests/dexter/dexter.py
    M cross-project-tests/debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/dex_and_source/lit.local.cfg.py
    M cross-project-tests/debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/precompiled_binary/lit.local.cfg.py
    M cross-project-tests/debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/precompiled_binary_different_dir/lit.local.cfg.py
    M cross-project-tests/debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/windows_noncanonical_path/lit.local.cfg.py
    M cross-project-tests/debuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/lit.local.cfg
    M cross-project-tests/debuginfo-tests/dexter/feature_tests/lit.local.cfg
    M cross-project-tests/debuginfo-tests/lit.local.cfg
    M cross-project-tests/debuginfo-tests/llgdb-tests/lit.local.cfg
    M cross-project-tests/debuginfo-tests/llgdb-tests/llgdb.py
    M cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/lit.local.cfg
    M cross-project-tests/intrinsic-header-tests/lit.local.cfg
    M cross-project-tests/lit.cfg.py
    M flang/docs/FIR/CreateFIRLangRef.py
    M flang/docs/conf.py
    M flang/examples/FlangOmpReport/yaml_summarizer.py
    M flang/test/Evaluate/test_folding.py
    M flang/test/NonGtestUnit/lit.cfg.py
    M flang/test/Semantics/common.py
    M flang/test/Semantics/test_errors.py
    M flang/test/Semantics/test_modfile.py
    M flang/test/Semantics/test_symbols.py
    M flang/test/Unit/lit.cfg.py
    M flang/test/lib/lit.local.cfg
    M flang/test/lit.cfg.py
    M libc/AOR_v20.02/math/tools/plot.py
    M libc/docs/conf.py
    M libc/utils/mathtools/GenerateHPDConstants.py
    M libclc/generic/lib/gen_convert.py
    M lld/docs/conf.py
    M lld/test/COFF/lit.local.cfg
    M lld/test/ELF/lit.local.cfg
    M lld/test/MachO/Inputs/DependencyDump.py
    M lld/test/MachO/Inputs/code-signature-check.py
    M lld/test/MachO/lit.local.cfg
    M lld/test/MachO/tools/generate-cfi-funcs.py
    M lld/test/MachO/tools/generate-thunkable-program.py
    M lld/test/MachO/tools/validate-unwind-info.py
    M lld/test/lit.cfg.py
    M lld/test/wasm/lit.local.cfg
    M lld/utils/benchmark.py
    M llvm-libgcc/generate_version_script.py
    M openmp/docs/conf.py
    M openmp/libompd/gdb-plugin/ompd/__init__.py
    M openmp/libompd/gdb-plugin/ompd/frame_filter.py
    M openmp/libompd/gdb-plugin/ompd/ompd.py
    M openmp/libompd/gdb-plugin/ompd/ompd_address_space.py
    M openmp/libompd/gdb-plugin/ompd/ompd_callbacks.py
    M openmp/libompd/gdb-plugin/ompd/ompd_handles.py
    M openmp/libomptarget/utils/generate_microtask_cases.py
    M openmp/runtime/test/affinity/format/check.py
    M polly/docs/conf.py
    M polly/lib/External/isl/imath/tests/gmp-compat-test/genctest.py
    M polly/lib/External/isl/imath/tests/gmp-compat-test/gendata.py
    M polly/lib/External/isl/imath/tests/gmp-compat-test/genpytest.py
    M polly/lib/External/isl/imath/tests/gmp-compat-test/gmpapi.py
    M polly/lib/External/isl/imath/tests/gmp-compat-test/runtest.py
    M polly/lib/External/isl/imath/tools/mkdoc.py
    M polly/lib/External/isl/isl_test_python.py
    M polly/lib/External/isl/libisl-gdb.py
    M polly/test/update_check.py
    M polly/utils/argparse.py
    M polly/utils/pyscop/isl.py
    M polly/utils/pyscop/pyscop.py
    M pstl/test/std/lit.local.cfg
    M third-party/benchmark/.ycm_extra_conf.py
    M third-party/benchmark/bindings/python/google_benchmark/example.py
    M third-party/benchmark/setup.py
    M third-party/benchmark/tools/compare.py
    M third-party/benchmark/tools/gbench/__init__.py
    M third-party/benchmark/tools/gbench/report.py
    M third-party/benchmark/tools/gbench/util.py
    M third-party/benchmark/tools/strip_asm.py
    M utils/bazel/overlay_directories.py

  Log Message:
  -----------
  [NFC][Py Reformat] Reformat python files in the rest of the dirs

This is an ongoing series of commits that are reformatting our
Python code. This catches the last of the python files to
reformat. Since they where so few I bunched them together.

Reformatting is done with `black`.

If you end up having problems merging this commit because you
have made changes to a python file, the best way to handle that
is to run git checkout --ours <yourfile> and then reformat it
with black.

If you run into any problems, post to discourse about it and
we will try to help.

RFC Thread below:

https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style

Reviewed By: jhenderson, #libc, Mordante, sivachandra

Differential Revision: https://reviews.llvm.org/D150784




More information about the All-commits mailing list