[analyzer] Provide a symmetric method for generating a PathDiagnosticLocation from Decl

Differential Revision: https://reviews.llvm.org/D49166

llvm-svn: 337211
This commit is contained in:
George Karpenkov 2018-07-16 20:32:32 +00:00
parent 588afe422e
commit cfed504a4b
1 changed files with 9 additions and 0 deletions

View File

@ -216,6 +216,15 @@ public:
static PathDiagnosticLocation createBegin(const Decl *D,
const SourceManager &SM);
/// Create a location for the beginning of the declaration.
/// The third argument is ignored, useful for generic treatment
/// of statements and declarations.
static PathDiagnosticLocation
createBegin(const Decl *D, const SourceManager &SM,
const LocationOrAnalysisDeclContext LAC) {
return createBegin(D, SM);
}
/// Create a location for the beginning of the statement.
static PathDiagnosticLocation createBegin(const Stmt *S,
const SourceManager &SM,