[clang] [llvm] Alisonz/tmp1 (PR #205163)
Alison Zhang via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 22 11:56:30 PDT 2026
================
@@ -840,6 +847,15 @@ class SourceManager : public RefCountedBase<SourceManager> {
/// we can add a cc1-level option to do so.
SmallVector<std::pair<std::string, FullSourceLoc>, 2> StoredModuleBuildStack;
+ /// Cache of all text encoding converters used by this SourceManager.
+ /// This includes both the input charset converter and file tag converters.
+ /// Maps from "source_encoding:target_encoding" to the converter.
+ llvm::StringMap<std::unique_ptr<llvm::TextEncodingConverter>> ConverterCache;
----------------
azhan92 wrote:
Only use SourceEncoding as a key
https://github.com/llvm/llvm-project/pull/205163
More information about the cfe-commits
mailing list