[Lldb-commits] [lldb] [lldb] Correct style of error messages (PR #156774)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 4 09:11:25 PDT 2025


JDevlieghere wrote:

> Great! May be we should do this for:
> 
> * `Status::Status(std::string err_str)`
> * `static Status FromErrorString(const char *str)`
> * `static Status FromErrorStringWithFormat(const char *format, ...)`
> * `template <typename... Args> static Status FromErrorStringWithFormatv(const char *format, Args &&...args)`

Yeah, those are all good functions to grep for.

> Also, it would be great if we had a clang-tidy checker as part of the CI testing to catching this inconsistencies earlier 👀

It would be nice to automate. Currently, we don't run any clang-tidy checks in CI and I think it would be most valuable if that were part of the pre-commit checks. The clang-tidy checks are a lot more expensive than the formatters though, so I don't know if that's even on the table. Might be an interesting topic for the infa workgroup. 

https://github.com/llvm/llvm-project/pull/156774


More information about the lldb-commits mailing list