[#absl-StatusOr-AddSourceLocation]
= xref:absl.adoc[absl]::xref:absl/StatusOr.adoc[StatusOr]::AddSourceLocation
:relfileprefix: ../../
:mrdocs:

Appends a source location to the status location chain&period;

== Synopsis

Declared in `&lt;absl&sol;status&sol;statusor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
AddSourceLocation(xref:absl/SourceLocation.adoc[absl::SourceLocation] loc = absl&colon;&colon;SourceLocation&colon;&colon;current());
----

== Description

Appends the `loc` to the current location chain inside the status, iff the status&hyphen;or is non&hyphen;ok and contains a non&hyphen;empty message&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *loc*
| The source location to append&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
