diff options
author | Peter Smith <peter.smith@linaro.org> | 2017-06-27 10:04:04 +0000 |
---|---|---|
committer | Peter Smith <peter.smith@linaro.org> | 2017-06-27 10:04:04 +0000 |
commit | 8b3cb34a601c17ed887b9ef221a90852fb9e788c (patch) | |
tree | 57328e9fd29b95f08f69e728c9be2e6eb54ae7d2 /clang-query | |
parent | d3f458fc751045f1f53b01ff1a731e9b811a4234 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@306385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-query')
-rw-r--r-- | clang-query/Query.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang-query/Query.cpp b/clang-query/Query.cpp index b3344dad..072ee6b9 100644 --- a/clang-query/Query.cpp +++ b/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; } |