Skip to content

Commit 6de4f06

Browse files
[clang] Remove redundant typename (NFC) (#167207)
Identified with readability-redundant-typename.
1 parent d939823 commit 6de4f06

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clang/include/clang/AST/DeclBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2642,7 +2642,7 @@ class DeclContext {
26422642

26432643
using udir_iterator_base =
26442644
llvm::iterator_adaptor_base<udir_iterator, lookup_iterator,
2645-
typename lookup_iterator::iterator_category,
2645+
lookup_iterator::iterator_category,
26462646
UsingDirectiveDecl *>;
26472647

26482648
struct udir_iterator : udir_iterator_base {

clang/lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,7 @@ REGISTER_LIST_WITH_PROGRAMSTATE(ActiveCritSections, CritSectionMarker)
270270
// TODO: Move these to llvm::ImmutableList when overhauling immutable data
271271
// structures for proper iterator concept support.
272272
template <>
273-
struct std::iterator_traits<
274-
typename llvm::ImmutableList<CritSectionMarker>::iterator> {
273+
struct std::iterator_traits<llvm::ImmutableList<CritSectionMarker>::iterator> {
275274
using iterator_category = std::forward_iterator_tag;
276275
using value_type = CritSectionMarker;
277276
using difference_type = std::ptrdiff_t;

0 commit comments

Comments
 (0)