Update a few APIs to return non-const references instead of pointers,
and remove associated const_casts and non-null assertions.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D90067
SourceManager: Return non-const references in getOrCreateContentCache and related, NFC ClosedPublic Authored by dexonsmith on Oct 23 2020, 12:21 PM.
Details Summary Update a few APIs to return non-const references instead of pointers,
Diff Detail Event Timelinedexonsmith added a child revision: D89580: SourceManager: Fix an SLocEntry memory regression introduced with FileEntryRef. This revision is now accepted and ready to land.Oct 26 2020, 8:43 AM Closed by commit rG0387015d7549: SourceManager: Return non-const references in getOrCreateContentCache and… (authored by dexonsmith). · Explain WhyOct 26 2020, 11:08 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 300375 clang/include/clang/Basic/SourceManager.h
clang/lib/Basic/SourceManager.cpp
clang/lib/Serialization/ASTReader.cpp
|