[PATCH] D89914: SourceManager: Make LastLineNoContentCache and ContentCache::SourceLineCache mutable, NFC

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


dexonsmith created this revision.
dexonsmith added a reviewer: shafik.
Herald added a subscriber: ributzka.
dexonsmith requested review of this revision.

Avoid some noisy `const_cast`s by making `ContentCache::SourceLineCache`
and `SourceManager::LastLineNoContentCache` both mutable.


https://reviews.llvm.org/D89914

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: D89914.299812.patch
Type: text/x-patch
Size: 4510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201021/78d981f8/attachment.bin>


More information about the cfe-commits mailing list