[all-commits] [llvm/llvm-project] 136b54: [clang] Replace SmallSet with SmallPtrSet (NFC) (#...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Tue Aug 19 07:12:01 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 136b541304c07bd45a12304248a73669811e6fce
https://github.com/llvm/llvm-project/commit/136b541304c07bd45a12304248a73669811e6fce
Author: Kazu Hirata <kazu at google.com>
Date: 2025-08-19 (Tue, 19 Aug 2025)
Changed paths:
M clang/include/clang/AST/CXXInheritance.h
M clang/include/clang/Sema/ScopeInfo.h
M clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
M clang/lib/Analysis/UnsafeBufferUsage.cpp
M clang/lib/Parse/ParseDecl.cpp
M clang/lib/Sema/HeuristicResolver.cpp
M clang/lib/Sema/Sema.cpp
M clang/lib/Sema/SemaDeclCXX.cpp
M clang/lib/Sema/SemaExprCXX.cpp
M clang/lib/Sema/SemaModule.cpp
M clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
M clang/lib/StaticAnalyzer/Checkers/PointerArithChecker.cpp
M clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedPointee.cpp
M clang/lib/StaticAnalyzer/Checkers/VforkChecker.cpp
M clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
Log Message:
-----------
[clang] Replace SmallSet with SmallPtrSet (NFC) (#154262)
This patch replaces SmallSet<T *, N> with SmallPtrSet<T *, N>. Note
that SmallSet.h "redirects" SmallSet to SmallPtrSet for pointer
element types:
template <typename PointeeType, unsigned N>
class SmallSet<PointeeType*, N> : public SmallPtrSet<PointeeType*, N>
{};
We only have 30 instances that rely on this "redirection", with about
half of them under clang/. Since the redirection doesn't improve
readability, this patch replaces SmallSet with SmallPtrSet for pointer
element types.
I'm planning to remove the redirection eventually.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list