[clang-tools-extra] [clang-tidy][NFC] Devirtualize `GlobList` and don't heap allocate it (PR #164212)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 16 11:49:51 PST 2025
================
@@ -24,7 +24,7 @@ namespace clang::tidy {
/// them in the order of appearance in the list.
class GlobList {
public:
- virtual ~GlobList() = default;
+ GlobList() = default;
----------------
localspook wrote:
What I’m saying is *we don’t have any* cases where we access a `CachedGlobList` through a `GlobList*`, that’s why it shouldn’t be virtual
https://github.com/llvm/llvm-project/pull/164212
More information about the cfe-commits
mailing list