[all-commits] [llvm/llvm-project] ca1bae: [clang-doc] Remove uses of consumeError

Paul Kirth via All-commits all-commits at lists.llvm.org
Mon Dec 1 15:34:16 PST 2025


  Branch: refs/heads/users/ilovepi/remove-consume-error
  Home:   https://github.com/llvm/llvm-project
  Commit: ca1baeb4a174c87ef06bdba70f215c6103bfe88b
      https://github.com/llvm/llvm-project/commit/ca1baeb4a174c87ef06bdba70f215c6103bfe88b
  Author: Paul Kirth <paulkirth at google.com>
  Date:   2025-12-01 (Mon, 01 Dec 2025)

  Changed paths:
    M clang-tools-extra/clang-doc/BitcodeReader.cpp
    M clang-tools-extra/clang-doc/BitcodeReader.h

  Log Message:
  -----------
  [clang-doc] Remove uses of consumeError

In BitcodeReader, we were using consumeError(), which drops the error
and hides it from normal usage. To avoid that, we can just slightly
tweak the API to return an Expected<T>, and propagate the error
accordingly.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list