HomePhabricator

Re-apply r357823 "[Lexer] NFC: Fix an off-by-one bug in getAsCharRange()."

Authored by dergachev.a on Apr 23 2019, 2:15 PM.

Description

Re-apply r357823 "[Lexer] NFC: Fix an off-by-one bug in getAsCharRange()."

It now comes with a follow-up fix for the clients of this API
in clangd and clang-tidy.

Differential Revision: https://reviews.llvm.org/D59977

llvm-svn: 359035