[all-commits] [llvm/llvm-project] b9b90b: [clang] Replace report_fatal_error(std::string) us...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Oct 6 03:45:50 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b9b90bb5426ffc23cf90f133a90d1469d263522c
      https://github.com/llvm/llvm-project/commit/b9b90bb5426ffc23cf90f133a90d1469d263522c
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-10-06 (Wed, 06 Oct 2021)

  Changed paths:
    M clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h
    M clang/include/clang/Serialization/ASTRecordReader.h
    M clang/lib/Basic/ProfileList.cpp
    M clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
    M clang/lib/Serialization/ASTReaderDecl.cpp
    M clang/lib/Tooling/CommonOptionsParser.cpp

  Log Message:
  -----------
  [clang] Replace report_fatal_error(std::string) uses with report_fatal_error(Twine)

As described on D111049, we're trying to remove the <string> dependency from error handling and replace uses of report_fatal_error(const std::string&) with the Twine() variant which can be forward declared.




More information about the All-commits mailing list