SourceManager: Make LastLineNoContentCache and ContentCache::SourceLineCache mutable...
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 21 Oct 2020 21:48:28 +0000 (17:48 -0400)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 23 Oct 2020 17:22:47 +0000 (13:22 -0400)
commit5431c37b55e2c2952b6b56c9690bd1ce05b23c7e
tree605644437826af22b3381282e2d7e76ef37f2852
parent0f0fd383b487e004fd616ac941307422bd09c261
SourceManager: Make LastLineNoContentCache and ContentCache::SourceLineCache mutable, NFC

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

Differential Revision: https://reviews.llvm.org/D89914
clang/include/clang/Basic/SourceManager.h
clang/lib/Basic/SourceManager.cpp
clang/lib/Lex/ScratchBuffer.cpp