Tweaked LogFormatted to squash fake clangd errors
This commit is contained in:
@@ -26,12 +26,12 @@ public:
|
|||||||
LogLevel severity = LogLevel::Info, bool assertion = true);
|
LogLevel severity = LogLevel::Info, bool assertion = true);
|
||||||
|
|
||||||
template <class... Args>
|
template <class... Args>
|
||||||
static void LogFormatted(const char *format,
|
static void LogFormatted(const char *format, const char *position,
|
||||||
Corrade::Containers::StringView position,
|
|
||||||
LogLevel severity, const Args &...args) {
|
LogLevel severity, const Args &...args) {
|
||||||
Corrade::Containers::String formatted =
|
static Corrade::Containers::String output{Corrade::ValueInit, 4096};
|
||||||
Corrade::Utility::format(format, args...);
|
std::size_t size = Corrade::Utility::formatInto(output, format, args...);
|
||||||
Log(formatted, position, severity);
|
Log(Corrade::Containers::StringView{output.begin(), size}, position,
|
||||||
|
severity);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user