[PATCH] D90067: SourceManager: Return non-const references in getOrCreateContentCache and related, NFC
Duncan P. N. Exon Smith via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 23 12:21:14 PDT 2020
dexonsmith created this revision.
dexonsmith added a reviewer: JDevlieghere.
Herald added a subscriber: ributzka.
dexonsmith requested review of this revision.
Update a few APIs to return non-const references instead of pointers,
and remove associated `const_cast`s and non-null assertions.
https://reviews.llvm.org/D90067
Files:
clang/include/clang/Basic/SourceManager.h
clang/lib/Basic/SourceManager.cpp
clang/lib/Serialization/ASTReader.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90067.300375.patch
Type: text/x-patch
Size: 11032 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201023/b3430dca/attachment.bin>
More information about the cfe-commits
mailing list