[all-commits] [llvm/llvm-project] 94460f: Don't use Optional::hasValue (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Sun Jun 26 19:54:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94460f513654da2ee6e759db2804e73001818de5
      https://github.com/llvm/llvm-project/commit/94460f513654da2ee6e759db2804e73001818de5
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
    M clang-tools-extra/clangd/ClangdLSPServer.cpp
    M clang-tools-extra/clangd/ClangdServer.cpp
    M clang-tools-extra/clangd/FeatureModule.cpp
    M clang-tools-extra/clangd/unittests/GlobalCompilationDatabaseTests.cpp
    M clang-tools-extra/pseudo/lib/GLR.cpp
    M clang-tools-extra/unittests/clang-doc/ClangDocTest.cpp
    M clang-tools-extra/unittests/clang-tidy/NamespaceAliaserTest.cpp
    M clang-tools-extra/unittests/clang-tidy/UsingInserterTest.cpp
    M clang/include/clang/APINotes/Types.h
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M polly/lib/Transform/ManualOptimizer.cpp
    M polly/lib/Transform/MatmulOptimizer.cpp

  Log Message:
  -----------
  Don't use Optional::hasValue (NFC)

This patch replaces x.hasValue() with x where x is contextually
convertible to bool.




More information about the All-commits mailing list