[PATCH] D150761: [NFC][Py Reformat] Reformat python files in clang and clang-tools-extra

Tobias Hieta via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 17 01:59:52 PDT 2023


thieta created this revision.
thieta added reviewers: jhenderson, JDevlieghere, MatzeB.
Herald added subscribers: PiotrZSL, kadircet, mattd, asavonic, carlosgalvezp, abrachet, phosek, arphaman, fedor.sergeev, whisperity.
Herald added a reviewer: NoQ.
Herald added a reviewer: njames93.
Herald added a project: All.
thieta requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: cfe-commits, jplehr, sstefan1.
Herald added projects: clang, 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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150761

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



More information about the cfe-commits mailing list