[clang] 6de4f06 - [clang] Remove redundant typename (NFC) (#167207)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 9 10:30:54 PST 2025
Author: Kazu Hirata
Date: 2025-11-09T10:30:50-08:00
New Revision: 6de4f06813216fce45c9566c11c6a3502164982a
URL: https://github.com/llvm/llvm-project/commit/6de4f06813216fce45c9566c11c6a3502164982a
DIFF: https://github.com/llvm/llvm-project/commit/6de4f06813216fce45c9566c11c6a3502164982a.diff
LOG: [clang] Remove redundant typename (NFC) (#167207)
Identified with readability-redundant-typename.
Added:
Modified:
clang/include/clang/AST/DeclBase.h
clang/lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/AST/DeclBase.h b/clang/include/clang/AST/DeclBase.h
index c6326a8ba506d..5519787d71f88 100644
--- a/clang/include/clang/AST/DeclBase.h
+++ b/clang/include/clang/AST/DeclBase.h
@@ -2642,7 +2642,7 @@ class DeclContext {
using udir_iterator_base =
llvm::iterator_adaptor_base<udir_iterator, lookup_iterator,
- typename lookup_iterator::iterator_category,
+ lookup_iterator::iterator_category,
UsingDirectiveDecl *>;
struct udir_iterator : udir_iterator_base {
diff --git a/clang/lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp
index 3ddd6590fcbb0..68bee710e5ce5 100644
--- a/clang/lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp
@@ -270,8 +270,7 @@ REGISTER_LIST_WITH_PROGRAMSTATE(ActiveCritSections, CritSectionMarker)
// TODO: Move these to llvm::ImmutableList when overhauling immutable data
// structures for proper iterator concept support.
template <>
-struct std::iterator_traits<
- typename llvm::ImmutableList<CritSectionMarker>::iterator> {
+struct std::iterator_traits<llvm::ImmutableList<CritSectionMarker>::iterator> {
using iterator_category = std::forward_iterator_tag;
using value_type = CritSectionMarker;
using
diff erence_type = std::ptr
diff _t;
More information about the cfe-commits
mailing list