|
CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
|
Our libc++ does not currently provide source_location, but our clang provides the necessary builtins for one. More...
#include <debug.hh>
Public Member Functions | |
| constexpr | SourceLocation (int lineNumber, int columnNumber, const char *fileName, const char *functionName) |
| Explicitly construct a source location. | |
| constexpr int | line () const noexcept |
| Returns the line number for this source location. | |
| constexpr int | column () const noexcept |
| Returns the column number for this source location. | |
| constexpr const char * | file_name () const noexcept |
| Returns the file name for this source location. | |
| constexpr const char * | function_name () const noexcept |
| Returns the function name for this source location. | |
Static Public Member Functions | |
| static constexpr SourceLocation | current (int lineNumber=__builtin_LINE(), int columnNumber=__builtin_COLUMN(), const char *fileName=__builtin_FILE(), const char *functionName=__builtin_FUNCTION()) noexcept |
| Construct a source location for the caller. | |
Our libc++ does not currently provide source_location, but our clang provides the necessary builtins for one.
|
inlineconstexpr |
|
inlinenodiscardconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
Construct a source location for the caller.
Definition at line 630 of file debug.hh.
Referenced by anonymous_namespace{debug.hh}::ConditionalDebug< Threshold, Context, EnableAssertions, VerboseInvariants >::Assert< Args >::Assert(), anonymous_namespace{debug.hh}::ConditionalDebug< Threshold, Context, EnableAssertions, VerboseInvariants >::Assert< Args >::Assert(), anonymous_namespace{debug.hh}::ConditionalDebug< Threshold, Context, EnableAssertions, VerboseInvariants >::assertion(), anonymous_namespace{debug.hh}::ConditionalDebug< Threshold, Context, EnableAssertions, VerboseInvariants >::Invariant< Args >::Invariant(), and anonymous_namespace{debug.hh}::ConditionalDebug< Threshold, Context, EnableAssertions, VerboseInvariants >::invariant().
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
Returns the line number for this source location.
Definition at line 639 of file debug.hh.
Referenced by anonymous_namespace{debug.hh}::ConditionalDebug< Threshold, Context, EnableAssertions, VerboseInvariants >::report_failure().