[PATCH] D49166: [analyzer] Provide a symmetric method for generating a PathDiagnosticLocation from Decl
George Karpenkov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 16 13:37:43 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rC337211: [analyzer] Provide a symmetric method for generating a PathDiagnosticLocation… (authored by george.karpenkov, committed by ).
Herald added a subscriber: cfe-commits.
Changed prior to commit:
https://reviews.llvm.org/D49166?vs=154917&id=155750#toc
Repository:
rC Clang
https://reviews.llvm.org/D49166
Files:
include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
Index: include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
===================================================================
--- include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
+++ include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
@@ -216,6 +216,15 @@
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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49166.155750.patch
Type: text/x-patch
Size: 971 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180716/61f2758e/attachment.bin>
More information about the cfe-commits
mailing list