From 3485710e93d833a1c7b691af707cfd8962af7d17 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 17 Jul 2025 07:57:42 +0000 Subject: Merge NamePool and RootNamePool into a single type (#7797) * Initial plan * Merge NamePool and RootNamePool into single NamePool class Co-authored-by: csyonghe <2652293+csyonghe@users.noreply.github.com> * Remove unnecessary comment from slang-fiddle-scrape.cpp Co-authored-by: Theresa Foley * Address review feedback: initialize namePool to nullptr and remove unnecessary comments Co-authored-by: Theresa Foley --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: csyonghe <2652293+csyonghe@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Theresa Foley Co-authored-by: Yong He --- source/slang/slang-language-server-auto-format.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'source/slang/slang-language-server-auto-format.cpp') diff --git a/source/slang/slang-language-server-auto-format.cpp b/source/slang/slang-language-server-auto-format.cpp index b7f601bc2..a65eb64ec 100644 --- a/source/slang/slang-language-server-auto-format.cpp +++ b/source/slang/slang-language-server-auto-format.cpp @@ -77,9 +77,7 @@ List extractFormattingExclusionRanges(UnownedStringSlice text) auto sourceFile = manager.createSourceFileWithString(PathInfo(), text); auto sourceView = manager.createSourceView(sourceFile, nullptr, SourceLoc()); DiagnosticSink sink; - RootNamePool rootPool; NamePool namePool; - namePool.setRootNamePool(&rootPool); MemoryArena memory; memory.init(1 << 16); lexer.initialize(sourceView, &sink, &namePool, &memory); -- cgit v1.2.3