Lint fixes

This commit is contained in:
Jeremy 2023-09-16 20:52:30 -04:00
parent 278ee3fcee
commit cc43a23987
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ namespace cpptrace {
// demangled will always be nullptr on non-zero status, and if __cxa_demangle ever fails for any reason // demangled will always be nullptr on non-zero status, and if __cxa_demangle ever fails for any reason
// we'll just quietly return the mangled name // we'll just quietly return the mangled name
if(demangled) { if(demangled) {
const std::string str = demangled; std::string str = demangled;
// NOLINTNEXTLINE(cppcoreguidelines-no-malloc) // NOLINTNEXTLINE(cppcoreguidelines-no-malloc)
std::free(demangled); std::free(demangled);
return str; return str;

View File

@ -69,9 +69,9 @@ namespace detail {
} }
template<typename T> template<typename T>
void nothing() {} void nullfn() {}
#define PHONY_USE(E) (nothing<decltype(E)>()) #define PHONY_USE(E) (nullfn<decltype(E)>())
// Check condition in both debug and release. std::runtime_error on failure. // Check condition in both debug and release. std::runtime_error on failure.
#define CPPTRACE_VERIFY(c, ...) ( \ #define CPPTRACE_VERIFY(c, ...) ( \