[PATCH] D89913: SourceManager: Encapsulate line number mapping into SrcMgr::LineOffsetMapping

Duncan P. N. Exon Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 21 14:46:47 PDT 2020


dexonsmith updated this revision to Diff 299811.
dexonsmith added a comment.

Renamed `getNumLines()` to `size()`, which is more natural given `begin()` and `end()`.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89913/new/

https://reviews.llvm.org/D89913

Files:
  clang/include/clang/Basic/SourceManager.h
  clang/lib/Basic/SourceManager.cpp
  clang/lib/Lex/ScratchBuffer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89913.299811.patch
Type: text/x-patch
Size: 7401 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201021/0b133d2e/attachment-0001.bin>


More information about the cfe-commits mailing list