commit | 072478746369daa8fbfc69383fc778a11715439a | [log] [tgz] |
---|---|---|
author | Whisperity <whisperity@gmail.com> | Mon Mar 15 17:06:03 2021 +0100 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Apr 12 11:15:22 2021 -0700 |
tree | 0cc89d024175ef4b731c28fbbde99d98b0d2a69a | |
parent | 971467d71a8178b6c7e3dad805470a5c671707f4 [diff] |
[libtooling][clang-tidy] Fix diagnostics not highlighting fed SourceRanges Fixes bug http://bugs.llvm.org/show_bug.cgi?id=49000. This patch allows Clang-Tidy checks to do diag(X->getLocation(), "text") << Y->getSourceRange(); and get the highlight of `Y` as expected: warning: text [blah-blah] xxx(something) ^ ~~~~~~~~~ Reviewed-By: aaron.ballman, njames93 Differential Revision: http://reviews.llvm.org/D98635 GitOrigin-RevId: 3b677b81cec7b3c5132aee8fccc30252d87deb69