Re-apply r357823 "[Lexer] NFC: Fix an off-by-one bug in getAsCharRange()."
authorArtem Dergachev <artem.dergachev@gmail.com>
Tue, 23 Apr 2019 21:15:26 +0000 (21:15 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Tue, 23 Apr 2019 21:15:26 +0000 (21:15 +0000)
commit8c099ce72d480fbff943613c7482992449fafe2d
tree8267c823a4c59b202a1fba84bf73bd4b39c764f5
parentfc79ab9857adc96d243cc5ed0a641eef8ef3f253
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
clang-tools-extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp
clang-tools-extra/clang-tidy/readability/NamespaceCommentCheck.cpp
clang-tools-extra/unittests/clangd/SelectionTests.cpp
clang/include/clang/Basic/PlistSupport.h
clang/include/clang/Lex/Lexer.h
clang/unittests/Lex/LexerTest.cpp