diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-12-18 13:55:52 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-12-18 22:43:27 +0100 |
commit | c052ec5add428b9e22494ada72758bc93de902f6 (patch) | |
tree | 649bd88e9c31a6ebfe0446d45fd94c5e3be2c9fc /compilerplugins | |
parent | 0f22790e6bc936b6de588c30816d6fa59f4a14dc (diff) |
Chose better diagnostic location
Change-Id: I502da4b93905e64ca5506f24dc1f6bf2bf990dc2
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/commaoperator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/commaoperator.cxx b/compilerplugins/clang/commaoperator.cxx index 39a2b9cb8720..21c2b430f52a 100644 --- a/compilerplugins/clang/commaoperator.cxx +++ b/compilerplugins/clang/commaoperator.cxx @@ -63,7 +63,7 @@ bool CommaOperator::VisitBinaryOperator(const BinaryOperator* binaryOp) // parent->dump(); report( DiagnosticsEngine::Warning, "comma operator hides code", - binaryOp->getSourceRange().getBegin()) + binaryOp->getOperatorLoc()) << binaryOp->getSourceRange(); return true; } |