summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-query
diff options
context:
space:
mode:
authorPeter Smith <peter.smith@linaro.org>2017-06-27 10:04:04 +0000
committerPeter Smith <peter.smith@linaro.org>2017-06-27 10:04:04 +0000
commitd34a65d6b689e2c8d765c8e36d4b085e5e1e9c23 (patch)
treea168936a24f8040654621b60ae79e66b2753c1cb /clang-tools-extra/clang-query
parentfb4a0450db1a12d9168e72fceb7f6a2827703202 (diff)
downloadbcm5719-llvm-d34a65d6b689e2c8d765c8e36d4b085e5e1e9c23.tar.gz
bcm5719-llvm-d34a65d6b689e2c8d765c8e36d4b085e5e1e9c23.zip
[NFC] Update to account for DiagnosticRenderer use of FullSourceLoc
D31709 [NFC] Refactor DiagnosticRenderer to use FullSourceLoc was committed in r305684 and reverted in 305688 as clang-tidy and clang-query failed to build. This change updates the extra tools to use the new interface. Reviewers: christof, rnk, rsmith, rovka, alexfh Reviewed By: alexfh Differential Revision: https://reviews.llvm.org/D34513 llvm-svn: 306385
Diffstat (limited to 'clang-tools-extra/clang-query')
-rw-r--r--clang-tools-extra/clang-query/Query.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang-tools-extra/clang-query/Query.cpp b/clang-tools-extra/clang-query/Query.cpp
index b3344dad3aa..072ee6b9c72 100644
--- a/clang-tools-extra/clang-query/Query.cpp
+++ b/clang-tools-extra/clang-query/Query.cpp
@@ -97,10 +97,10 @@ bool MatchQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {
if (R.isValid()) {
TextDiagnostic TD(OS, AST->getASTContext().getLangOpts(),
&AST->getDiagnostics().getDiagnosticOptions());
- TD.emitDiagnostic(R.getBegin(), DiagnosticsEngine::Note,
- "\"" + BI->first + "\" binds here",
- CharSourceRange::getTokenRange(R), None,
- &AST->getSourceManager());
+ TD.emitDiagnostic(
+ FullSourceLoc(R.getBegin(), AST->getSourceManager()),
+ DiagnosticsEngine::Note, "\"" + BI->first + "\" binds here",
+ CharSourceRange::getTokenRange(R), None);
}
break;
}
OpenPOWER on IntegriCloud