@@ -12,7 +12,7 @@ using namespace winrt;
1212using namespace winmd ::reader;
1313
1414std::vector<std::string> db_files;
15- std::unique_ptr<cache> db ;
15+ std::unique_ptr<cache> db_cache ;
1616
1717void MetadataDiagnostic (DkmProcess* process, std::wstring const & status, std::filesystem::path const & path)
1818{
@@ -105,7 +105,7 @@ void LoadMetadata(DkmProcess* process, WCHAR const* processPath, std::string_vie
105105
106106 if (std::find (db_files.begin (), db_files.end (), path_string) == db_files.end ())
107107 {
108- db ->add_database (path_string, [](TypeDef const & type) { return type.Flags ().WindowsRuntime (); });
108+ db_cache ->add_database (path_string, [](TypeDef const & type) { return type.Flags ().WindowsRuntime (); });
109109 db_files.push_back (path_string);
110110 }
111111 }
@@ -120,12 +120,12 @@ void LoadMetadata(DkmProcess* process, WCHAR const* processPath, std::string_vie
120120
121121TypeDef FindType (DkmProcess* process, std::string_view const & typeName)
122122{
123- auto type = db ->find (typeName);
123+ auto type = db_cache ->find (typeName);
124124 if (!type)
125125 {
126126 auto processPath = process->Path ()->Value ();
127127 LoadMetadata (process, processPath, typeName);
128- type = db ->find (typeName);
128+ type = db_cache ->find (typeName);
129129 if (!type)
130130 {
131131 NatvisDiagnostic (process,
@@ -137,7 +137,7 @@ TypeDef FindType(DkmProcess* process, std::string_view const& typeName)
137137
138138TypeDef FindType (DkmProcess* process, std::string_view const & typeNamespace, std::string_view const & typeName)
139139{
140- auto type = db ->find (typeNamespace, typeName);
140+ auto type = db_cache ->find (typeNamespace, typeName);
141141 if (!type)
142142 {
143143 std::string fullName (typeNamespace);
@@ -165,7 +165,7 @@ cppwinrt_visualizer::cppwinrt_visualizer()
165165 db_files.push_back (file.path ().string ());
166166 }
167167 }
168- db .reset (new cache (db_files, [](TypeDef const & type) { return type.Flags ().WindowsRuntime (); }));
168+ db_cache .reset (new cache (db_files, [](TypeDef const & type) { return type.Flags ().WindowsRuntime (); }));
169169 }
170170 catch (...)
171171 {
@@ -188,7 +188,7 @@ cppwinrt_visualizer::~cppwinrt_visualizer()
188188{
189189 ClearTypeResolver ();
190190 db_files.clear ();
191- db .reset ();
191+ db_cache .reset ();
192192}
193193
194194HRESULT cppwinrt_visualizer::EvaluateVisualizedExpression (
0 commit comments