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 | d34a65d6b689e2c8d765c8e36d4b085e5e1e9c23 (patch) | |
tree | a168936a24f8040654621b60ae79e66b2753c1cb /clang-tools-extra/clang-query | |
parent | fb4a0450db1a12d9168e72fceb7f6a2827703202 (diff) | |
download | bcm5719-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.cpp | 8 |
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; } |