[all-commits] [llvm/llvm-project] 038701: SourceManager: Return non-const references in getO...
Duncan P. N. Exon Smith via All-commits
all-commits at lists.llvm.org
Mon Oct 26 11:08:22 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 0387015d7549fc2c0cc8c45d3e78114cc4fd153f
https://github.com/llvm/llvm-project/commit/0387015d7549fc2c0cc8c45d3e78114cc4fd153f
Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
Date: 2020-10-26 (Mon, 26 Oct 2020)
Changed paths:
M clang/include/clang/Basic/SourceManager.h
M clang/lib/Basic/SourceManager.cpp
M clang/lib/Serialization/ASTReader.cpp
Log Message:
-----------
SourceManager: Return non-const references in getOrCreateContentCache and related, NFC
Update a few APIs to return non-const references instead of pointers,
and remove associated `const_cast`s and non-null assertions.
Differential Revision: https://reviews.llvm.org/D90067
More information about the All-commits
mailing list