[#absl-StatusBuilder-source_location] = xref:absl.adoc[absl]::xref:absl/StatusBuilder.adoc[StatusBuilder]::source_location :relfileprefix: ../../ :mrdocs: Returns the source location used to create this builder. == Synopsis Declared in `<absl/status/status_builder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] xref:absl/SourceLocation.adoc[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 https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#