[all-commits] [llvm/llvm-project] cd8f97: added some example code for llvm::Expected<T>

ChristianKuehnel via All-commits all-commits at lists.llvm.org
Thu Jul 1 02:57:39 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd8f979fe48c068e9cd50c283833fa8c4430b20b
      https://github.com/llvm/llvm-project/commit/cd8f979fe48c068e9cd50c283833fa8c4430b20b
  Author: Christian Kühnel <kuhnel at google.com>
  Date:   2021-07-01 (Thu, 01 Jul 2021)

  Changed paths:
    M llvm/include/llvm/Support/Error.h
    M llvm/include/llvm/Testing/Support/Error.h

  Log Message:
  -----------
  added some example code for llvm::Expected<T>

Since I had some fun understanding how to properly use llvm::Expected<T> I added some code examples that I would have liked to see when learning to use it.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D105014




More information about the All-commits mailing list