absl::StatusBuilder::source_location

Returns the source location used to create this builder.

Synopsis

Declared in <absl/status/status_builder.h>

[[nodiscard]]
absl::SourceLocation
source_location() const;

Description

This differs from GetPreviousSourceLocations() as this location is the single location for the creation of this builder.

Return Value

The source location associated with this builder.

NOTE

The return value should not be discarded.