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

Method current

lib/sourcelocation.h:62–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60struct SourceLocation {
61#if CPPCHECK_HAS_SOURCE_LOCATION_INTRINSICS
62 static SourceLocation current(std::uint_least32_t line = __builtin_LINE(),
63 std::uint_least32_t column = __builtin_COLUMN(),
64 const char* file_name = __builtin_FILE(),
65 const char* function_name = __builtin_FUNCTION())
66 {
67 SourceLocation result{};
68 result.m_line = line;
69 result.m_column = column;
70 result.m_file_name = file_name;
71 result.m_function_name = function_name;
72 return result;
73 }
74#else
75 static SourceLocation current() {
76 return SourceLocation();

Callers

nothing calls this directly

Calls 1

SourceLocationClass · 0.85

Tested by

no test coverage detected