Lint fixes
This commit is contained in:
parent
278ee3fcee
commit
cc43a23987
@ -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;
|
||||||
|
|||||||
@ -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, ...) ( \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user