[Lldb-commits] [PATCH] D139955: [LLDB] Change formatting to use llvm::formatv

Alexander Yermolovich via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Dec 14 10:45:27 PST 2022


ayermolo added a comment.

In D139955#3992766 <https://reviews.llvm.org/D139955#3992766>, @JDevlieghere wrote:

> I don't really understand the motivation. Can you elaborate on why "enabling 64 bit support" requires this change? I definitely prefer the `formatv` approach, but wouldn't the PRIx64 should do what you want here?
>
> Also, at a higher level, can we do the same thing as the `Log::Format` function that takes varargs and uses `formavt` under the hood?
>
>   template <typename... Args>
>   void Format(llvm::StringRef file, llvm::StringRef function,
>               const char *format, Args &&... args) {
>     Format(file, function, llvm::formatv(format, std::forward<Args>(args)...));
>   }

This was suggested in https://reviews.llvm.org/D138618 by @labath


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139955/new/

https://reviews.llvm.org/D139955



More information about the lldb-commits mailing list