[all-commits] [llvm/llvm-project] dd3c26: [NFC][Py Reformat] Reformat python files in clang ...

Tobias Hieta via All-commits all-commits at lists.llvm.org
Mon May 22 23:30:08 PDT 2023


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

  Changed paths:
    M clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
    M clang-tools-extra/clang-include-fixer/tool/clang-include-fixer.py
    M clang-tools-extra/clang-tidy/add_new_check.py
    M clang-tools-extra/clang-tidy/rename_check.py
    M clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py
    M clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
    M clang-tools-extra/clangd/TidyFastChecks.py
    M clang-tools-extra/clangd/quality/CompletionModelCodegen.py
    M clang-tools-extra/clangd/test/lit.cfg.py
    M clang-tools-extra/clangd/test/lit.local.cfg
    M clang-tools-extra/clangd/test/remote-index/pipeline_helper.py
    M clang-tools-extra/clangd/unittests/lit.cfg.py
    M clang-tools-extra/docs/clang-tidy/checks/gen-static-analyzer-docs.py
    M clang-tools-extra/docs/conf.py
    M clang-tools-extra/include-cleaner/test/Unit/lit.cfg.py
    M clang-tools-extra/include-cleaner/test/lit.cfg.py
    M clang-tools-extra/pseudo/test/Unit/lit.cfg.py
    M clang-tools-extra/pseudo/test/lit.cfg.py
    M clang-tools-extra/pseudo/test/lit.local.cfg
    M clang-tools-extra/test/Unit/lit.cfg.py
    M clang-tools-extra/test/clang-tidy/check_clang_tidy.py
    M clang-tools-extra/test/lit.cfg.py
    M clang/bindings/python/clang/__init__.py
    M clang/bindings/python/clang/cindex.py
    M clang/bindings/python/clang/enumerations.py
    M clang/bindings/python/examples/cindex/cindex-dump.py
    M clang/bindings/python/examples/cindex/cindex-includes.py
    M clang/bindings/python/tests/cindex/test_access_specifiers.py
    M clang/bindings/python/tests/cindex/test_cdb.py
    M clang/bindings/python/tests/cindex/test_code_completion.py
    M clang/bindings/python/tests/cindex/test_comment.py
    M clang/bindings/python/tests/cindex/test_cursor.py
    M clang/bindings/python/tests/cindex/test_cursor_kind.py
    M clang/bindings/python/tests/cindex/test_diagnostics.py
    M clang/bindings/python/tests/cindex/test_exception_specification_kind.py
    M clang/bindings/python/tests/cindex/test_file.py
    M clang/bindings/python/tests/cindex/test_index.py
    M clang/bindings/python/tests/cindex/test_linkage.py
    M clang/bindings/python/tests/cindex/test_location.py
    M clang/bindings/python/tests/cindex/test_tls_kind.py
    M clang/bindings/python/tests/cindex/test_token_kind.py
    M clang/bindings/python/tests/cindex/test_tokens.py
    M clang/bindings/python/tests/cindex/test_translation_unit.py
    M clang/bindings/python/tests/cindex/test_type.py
    M clang/bindings/python/tests/cindex/util.py
    M clang/docs/analyzer/conf.py
    M clang/docs/conf.py
    M clang/docs/tools/dump_ast_matchers.py
    M clang/docs/tools/dump_format_help.py
    M clang/docs/tools/dump_format_style.py
    M clang/docs/tools/generate_formatted_state.py
    M clang/lib/Tooling/DumpTool/generate_cxx_src_locs.py
    M clang/test/AST/gen_ast_dump_json_test.py
    M clang/test/Analysis/analyzer_test.py
    M clang/test/Analysis/check-analyzer-fixit.py
    M clang/test/Analysis/exploded-graph-rewriter/lit.local.cfg
    M clang/test/Analysis/lit.local.cfg
    M clang/test/Analysis/scan-build/lit.local.cfg
    M clang/test/CodeGen/builtins-nvptx-mma.py
    M clang/test/CodeGenHIP/lit.local.cfg
    M clang/test/CodeGenHLSL/lit.local.cfg
    M clang/test/CodeGenObjC/lit.local.cfg
    M clang/test/CodeGenObjCXX/lit.local.cfg
    M clang/test/Driver/XRay/lit.local.cfg
    M clang/test/Driver/ftime-trace-sections.py
    M clang/test/Driver/lit.local.cfg
    M clang/test/Format/lit.local.cfg
    M clang/test/Frontend/lit.local.cfg
    M clang/test/Headers/lit.local.cfg
    M clang/test/Index/skip-parsed-bodies/lit.local.cfg
    M clang/test/Interpreter/lit.local.cfg
    M clang/test/LibClang/lit.local.cfg
    M clang/test/OpenMP/lit.local.cfg
    M clang/test/ParserHLSL/lit.local.cfg
    M clang/test/Sema/lit.local.cfg
    M clang/test/SemaCUDA/lit.local.cfg
    M clang/test/SemaHLSL/lit.local.cfg
    M clang/test/SemaObjCXX/lit.local.cfg
    M clang/test/SemaOpenCL/lit.local.cfg
    M clang/test/TableGen/lit.local.cfg
    M clang/test/Unit/lit.cfg.py
    M clang/test/lit.cfg.py
    M clang/test/utils/update_cc_test_checks/lit.local.cfg
    M clang/tools/clang-format/clang-format-diff.py
    M clang/tools/clang-format/clang-format-sublime.py
    M clang/tools/clang-format/clang-format.py
    M clang/tools/clang-rename/clang-rename.py
    M clang/tools/include-mapping/cppreference_parser.py
    M clang/tools/include-mapping/gen_std.py
    M clang/tools/include-mapping/test.py
    M clang/tools/libclang/linker-script-to-export-list.py
    M clang/tools/scan-build-py/lib/libear/__init__.py
    M clang/tools/scan-build-py/lib/libscanbuild/__init__.py
    M clang/tools/scan-build-py/lib/libscanbuild/analyze.py
    M clang/tools/scan-build-py/lib/libscanbuild/arguments.py
    M clang/tools/scan-build-py/lib/libscanbuild/clang.py
    M clang/tools/scan-build-py/lib/libscanbuild/compilation.py
    M clang/tools/scan-build-py/lib/libscanbuild/intercept.py
    M clang/tools/scan-build-py/lib/libscanbuild/report.py
    M clang/tools/scan-build-py/lib/libscanbuild/shell.py
    M clang/tools/scan-build-py/tests/__init__.py
    M clang/tools/scan-build-py/tests/functional/cases/__init__.py
    M clang/tools/scan-build-py/tests/functional/cases/test_create_cdb.py
    M clang/tools/scan-build-py/tests/functional/cases/test_exec_anatomy.py
    M clang/tools/scan-build-py/tests/functional/cases/test_from_cdb.py
    M clang/tools/scan-build-py/tests/functional/cases/test_from_cmd.py
    M clang/tools/scan-build-py/tests/unit/test_analyze.py
    M clang/tools/scan-build-py/tests/unit/test_clang.py
    M clang/tools/scan-build-py/tests/unit/test_compilation.py
    M clang/tools/scan-build-py/tests/unit/test_intercept.py
    M clang/tools/scan-build-py/tests/unit/test_libear.py
    M clang/tools/scan-build-py/tests/unit/test_report.py
    M clang/tools/scan-build-py/tests/unit/test_shell.py
    M clang/tools/scan-view/share/Reporter.py
    M clang/tools/scan-view/share/ScanView.py
    M clang/tools/scan-view/share/startfile.py
    M clang/utils/ABITest/ABITestGen.py
    M clang/utils/ABITest/Enumeration.py
    M clang/utils/ABITest/TypeGen.py
    M clang/utils/CIndex/completion_logger_server.py
    M clang/utils/ClangDataFormat.py
    M clang/utils/TestUtils/deep-stack.py
    M clang/utils/analyzer/CmpRuns.py
    M clang/utils/analyzer/ProjectMap.py
    M clang/utils/analyzer/SATest.py
    M clang/utils/analyzer/SATestAdd.py
    M clang/utils/analyzer/SATestBenchmark.py
    M clang/utils/analyzer/SATestBuild.py
    M clang/utils/analyzer/SATestUpdateDiffs.py
    M clang/utils/analyzer/SATestUtils.py
    M clang/utils/analyzer/SumTimerInfo.py
    M clang/utils/analyzer/entrypoint.py
    M clang/utils/analyzer/exploded-graph-rewriter.py
    M clang/utils/bundle_resources.py
    M clang/utils/check_cfc/check_cfc.py
    M clang/utils/check_cfc/obj_diff.py
    M clang/utils/check_cfc/setup.py
    M clang/utils/check_cfc/test_check_cfc.py
    M clang/utils/clangdiag.py
    M clang/utils/convert_arm_neon.py
    M clang/utils/creduce-clang-crash.py
    M clang/utils/modfuzz.py
    M clang/utils/module-deps-to-rsp.py
    M clang/utils/perf-training/perf-helper.py
    M clang/utils/token-delta.py
    M clang/www/builtins.py

  Log Message:
  -----------
  [NFC][Py Reformat] Reformat python files in clang and clang-tools-extra

This is an ongoing series of commits that are reformatting our
Python code.

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: MatzeB

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




More information about the All-commits mailing list