mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
Fix clang-tidy warnings (#4359)
The warnings included recommendations of braces for if statement readability, a recommendation for default initialization of an int array, and include-what-you-use (indirectly through clang-tidy reporting undefined symbols).
This commit is contained in:
@@ -22,8 +22,9 @@ std::string Demangle(std::string_view mangledSymbol) {
|
||||
char buffer[256];
|
||||
DWORD sz = UnDecorateSymbolName(buf.c_str(), buffer, sizeof(buffer),
|
||||
UNDNAME_COMPLETE);
|
||||
if (sz == 0)
|
||||
if (sz == 0) {
|
||||
return std::string{mangledSymbol};
|
||||
}
|
||||
return std::string(buffer, sz);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user