[all-commits] [llvm/llvm-project] b57533: [clang-tools-extra] llvm::Optional::value => opera...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Dec 17 12:03:14 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b57533d1d5a2fa6b9402aa6255cb67b2dd7529a4
      https://github.com/llvm/llvm-project/commit/b57533d1d5a2fa6b9402aa6255cb67b2dd7529a4
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-12-17 (Sat, 17 Dec 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
    M clang-tools-extra/clangd/AST.cpp
    M clang-tools-extra/clangd/ClangdServer.cpp
    M clang-tools-extra/unittests/clang-tidy/NamespaceAliaserTest.cpp
    M clang-tools-extra/unittests/clang-tidy/UsingInserterTest.cpp

  Log Message:
  -----------
  [clang-tools-extra] llvm::Optional::value => operator*/operator->

std::optional::value() has undesired exception checking semantics and is
unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The
call sites block std::optional migration.




More information about the All-commits mailing list