[all-commits] [llvm/llvm-project] d47ee5: [clang-tooling] Prevent llvm::fatal_error on inval...

serge-sans-paille via All-commits all-commits at lists.llvm.org
Fri Jan 29 01:21:30 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d47ee525f9e9289815db0864b03e866fc8e5ba01
      https://github.com/llvm/llvm-project/commit/d47ee525f9e9289815db0864b03e866fc8e5ba01
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M clang-tools-extra/clang-change-namespace/tool/ClangChangeNamespace.cpp
    M clang-tools-extra/clang-include-fixer/find-all-symbols/tool/FindAllSymbolsMain.cpp
    M clang-tools-extra/clang-include-fixer/tool/ClangIncludeFixer.cpp
    M clang-tools-extra/clang-move/tool/ClangMove.cpp
    M clang-tools-extra/clang-reorder-fields/tool/ClangReorderFields.cpp
    M clang-tools-extra/test/clang-query/invalid-command-line.cpp
    M clang-tools-extra/test/clang-tidy/infrastructure/invalid-command-line.cpp
    M clang/docs/LibASTMatchersTutorial.rst
    M clang/include/clang/Tooling/CommonOptionsParser.h
    M clang/lib/Tooling/CommonOptionsParser.cpp
    M clang/tools/clang-check/ClangCheck.cpp
    M clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp
    M clang/tools/clang-refactor/ClangRefactor.cpp
    M clang/tools/clang-rename/ClangRename.cpp

  Log Message:
  -----------
  [clang-tooling] Prevent llvm::fatal_error on invalid CLI option

Fail gracefully instead. Prevent further misuse by enforcing the factory builder
instead of the constructor.

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




More information about the All-commits mailing list