[all-commits] [llvm/llvm-project] 776097: Forward-declare raw_ostream (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Sun Dec 4 21:43:25 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 77609717410372e8c43aca49a268511378f58297
      https://github.com/llvm/llvm-project/commit/77609717410372e8c43aca49a268511378f58297
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-12-04 (Sun, 04 Dec 2022)

  Changed paths:
    M clang/include/clang/APINotes/Types.h
    M lldb/include/lldb/Utility/UriParser.h
    M llvm/include/llvm/IR/Attributes.h
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h

  Log Message:
  -----------
  Forward-declare raw_ostream (NFC)

This patch adds forward declarations of raw_ostream to those header
files that are relying on the forward declaration of raw_ostream in
llvm/include/llvm/ADT/Optional.h.

I'm planning to move operator<< for Optional<T> and std::optional<T>
from Optional.h to llvm/include/llvm/Support/raw_ostream.h.  Once I do
so, we no longer need to forward-declare raw_ostream in Optional.h.




More information about the All-commits mailing list