MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / View

Method View

externals/simplecpp/simplecpp.h:81–84  ·  view source on GitHub ↗

cppcheck-suppress noExplicitConstructor

Source from the content-addressed store, hash-verified

79 {
80 // cppcheck-suppress noExplicitConstructor
81 View(const char* data)
82 : mData(data)
83 , mSize(strlen(data))
84 {}
85
86 // only provide when std::span is not available so using untyped initialization won't use View
87#if !defined(__cpp_lib_span)

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected