MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / Normalize

Function Normalize

DPrint.h:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace details {
19
20inline const char* Normalize(const std::string& arg)
21{
22 static constexpr const char emptyString[]{""};
23
24 if(arg.empty()) {
25 return emptyString;
26 }
27
28 return arg.c_str();
29}
30//-----------------------------------------------------------------------------
31
32inline uint64_t Normalize(const llvm::APInt& arg)

Callers 1

FPrintfFunction · 0.70

Calls 2

ToStringFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected