[all-commits] [llvm/llvm-project] d368d1: [llvm][support] Add LDBG macro. (#143704)

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Thu Jul 24 21:58:27 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d368d117e7ee9720acd3eac6fb41c0885575a114
      https://github.com/llvm/llvm-project/commit/d368d117e7ee9720acd3eac6fb41c0885575a114
  Author: Jacques Pienaar <jpienaar at google.com>
  Date:   2025-07-25 (Fri, 25 Jul 2025)

  Changed paths:
    A llvm/include/llvm/Support/DebugLog.h
    M llvm/unittests/Support/CMakeLists.txt
    A llvm/unittests/Support/DebugLogTest.cpp

  Log Message:
  -----------
  [llvm][support] Add LDBG macro. (#143704)

Add macro that mirror a common usage of logging to output .This makes it easy to have
streaming log like behavior while still using the base debug logging.

I also wanted to avoid inventing a full logging library here while enabling others to change the sink without too much pain, so put it in its own header (this also avoids making Debug depend on raw_ostream beyond forward reference). The should allow a consistent dev experience without fixing the sink too much.

---------

Co-authored-by: Mehdi Amini <joker.eph at gmail.com>



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