================ @@ -70,6 +70,13 @@ class FileEntryRef { const FileEntry &getFileEntry() const { return *getBaseMapEntry().second->V.get<FileEntry *>(); } + + // This is a non const version of getFileEntry() which is used if the buffer + // size needs to be increased due to potential z/OS EBCDIC -> UTF-8 conversion + FileEntry &getFileEntryToUpdate() { ---------------- abhina-sree wrote:
I think this would not be an accurate name because the function itself does not do any updates, it just returns a non const FileEntry. I also did not want to keep the same name as getFileEntry because that is const function. I'm open to alternative names, maybe `getFileEntryForUpdate`? https://github.com/llvm/llvm-project/pull/98652 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits