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

Paul Kirth via All-commits all-commits at lists.llvm.org
Wed Nov 19 11:05:54 PST 2025


  Branch: refs/heads/users/ilovepi/remove-consume-error
  Home:   https://github.com/llvm/llvm-project
  Commit: f6a508eb3266be28d4715856f2665a9f0db19946
      https://github.com/llvm/llvm-project/commit/f6a508eb3266be28d4715856f2665a9f0db19946
  Author: Paul Kirth <paulkirth at google.com>
  Date:   2025-11-19 (Wed, 19 Nov 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