19 #ifndef sourcelocationH
20 #define sourcelocationH
25 #define CPPCHECK_HAS_SOURCE_LOCATION 0
26 #define CPPCHECK_HAS_SOURCE_LOCATION_TS 0
27 #define CPPCHECK_HAS_SOURCE_LOCATION_INTRINSICS 0
30 #if __has_include(<source_location>) && __cplusplus >= 202003L
31 #define CPPCHECK_HAS_SOURCE_LOCATION 1
33 #define CPPCHECK_HAS_SOURCE_LOCATION 0
35 #if __has_include(<experimental/source_location>) && __cplusplus >= 201402L
36 #define CPPCHECK_HAS_SOURCE_LOCATION_TS 1
38 #define CPPCHECK_HAS_SOURCE_LOCATION_TS 0
41 #if __has_builtin(__builtin_FILE)
42 #define CPPCHECK_HAS_SOURCE_LOCATION_INTRINSICS 1
43 #if !__has_builtin(__builtin_COLUMN)
44 #define __builtin_COLUMN() 0
47 #define CPPCHECK_HAS_SOURCE_LOCATION_INTRINSICS 0
52 #if CPPCHECK_HAS_SOURCE_LOCATION
53 #include <source_location>
55 #elif CPPCHECK_HAS_SOURCE_LOCATION_TS
56 #include <experimental/source_location>
61 #if CPPCHECK_HAS_SOURCE_LOCATION_INTRINSICS
63 std::uint_least32_t
column = __builtin_COLUMN(),
83 std::uint_least32_t
line()
const {
std::uint_least32_t m_line
std::uint_least32_t column() const
static SourceLocation current()
const char * m_function_name
const char * function_name() const
const char * file_name() const
std::uint_least32_t m_column
std::uint_least32_t line() const