[all-commits] [llvm/llvm-project] 1e462f: [flang][driver] Switch to the MLIR coding style in...

Andrzej WarzyƄski via All-commits all-commits at lists.llvm.org
Sat May 14 03:31:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e462fafdf8be70137c8eaf856f4eb886f8b4d4c
      https://github.com/llvm/llvm-project/commit/1e462fafdf8be70137c8eaf856f4eb886f8b4d4c
  Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
  Date:   2022-05-14 (Sat, 14 May 2022)

  Changed paths:
    A flang/include/flang/Frontend/.clang-format
    A flang/include/flang/Frontend/.clang-tidy
    M flang/include/flang/Frontend/CompilerInstance.h
    M flang/include/flang/Frontend/CompilerInvocation.h
    M flang/include/flang/Frontend/FrontendAction.h
    M flang/include/flang/Frontend/FrontendActions.h
    M flang/include/flang/Frontend/FrontendOptions.h
    M flang/include/flang/Frontend/FrontendPluginRegistry.h
    M flang/include/flang/Frontend/PreprocessorOptions.h
    M flang/include/flang/Frontend/TargetOptions.h
    M flang/include/flang/Frontend/TextDiagnostic.h
    M flang/include/flang/Frontend/TextDiagnosticBuffer.h
    M flang/include/flang/Frontend/TextDiagnosticPrinter.h
    A flang/include/flang/FrontendTool/.clang-format
    A flang/include/flang/FrontendTool/.clang-tidy
    M flang/include/flang/FrontendTool/Utils.h
    A flang/lib/Frontend/.clang-format
    A flang/lib/Frontend/.clang-tidy
    M flang/lib/Frontend/CompilerInstance.cpp
    M flang/lib/Frontend/CompilerInvocation.cpp
    M flang/lib/Frontend/FrontendAction.cpp
    M flang/lib/Frontend/FrontendActions.cpp
    M flang/lib/Frontend/FrontendOptions.cpp
    M flang/lib/Frontend/TextDiagnostic.cpp
    M flang/lib/Frontend/TextDiagnosticBuffer.cpp
    M flang/lib/Frontend/TextDiagnosticPrinter.cpp
    A flang/lib/FrontendTool/.clang-format
    A flang/lib/FrontendTool/.clang-tidy
    M flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
    A flang/tools/flang-driver/.clang-format
    A flang/tools/flang-driver/.clang-tidy
    M flang/tools/flang-driver/driver.cpp
    M flang/tools/flang-driver/fc1_main.cpp
    A flang/unittests/Frontend/.clang-tidy
    M flang/unittests/Frontend/CompilerInstanceTest.cpp
    M flang/unittests/Frontend/FrontendActionTest.cpp

  Log Message:
  -----------
  [flang][driver] Switch to the MLIR coding style in the driver (nfc)

This patch re-factors the driver code in LLVM Flang (frontend +
compiler) to use the MLIR style. For more context, please see:
https://discourse.llvm.org/t/rfc-coding-style-in-the-driver/

Most changes here are rather self-explanatory. Accessors are renamed to
be more consistent with the rest of LLVM (e.g. allSource -->
getAllSources). Additionally, MLIR clang-tidy files are added in the
affected directories.

clang-tidy and clang-format files were copied from MLIR. Small
additional changes are made to silence clang-tidy/clang-format
warnings.

[1] https://mlir.llvm.org/getting_started/DeveloperGuide/

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




More information about the All-commits mailing list