Return the ID of the buffer containing the specified location.

Synopsis

Declared in <llvm/Support/SourceMgr.h>

unsigned int
FindBufferContainingLoc(SMLoc Loc) const;

Description

0 is returned if the buffer is not found.

Return Value

The one‐based buffer ID containing Loc, or 0 if not found.

Parameters

Name

Description

Loc

Source location whose owning buffer is sought.

Created with MrDocs