[PATCH] D105365: [Lexer] Fix bug in `makeFileCharRange` called on split tokens.

Yitzhak Mandelbaum via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 2 11:55:49 PDT 2021


ymandel created this revision.
ymandel added a reviewer: sammccall.
ymandel requested review of this revision.
Herald added a project: clang.

When the end loc of the specified range is a split token, `makeFileCharRange`
does not process it correctly.  This patch adds proper support for split tokens.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105365

Files:
  clang/lib/Lex/Lexer.cpp
  clang/unittests/Lex/LexerTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105365.356241.patch
Type: text/x-patch
Size: 6064 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210702/299a136e/attachment.bin>


More information about the cfe-commits mailing list