[all-commits] [llvm/llvm-project] 1fb465: [clang][NFC] Use range-based for loop and algorith...

David Stone via All-commits all-commits at lists.llvm.org
Fri Nov 28 09:17:14 PST 2025


  Branch: refs/heads/users/davidstone/use-ranged-for-in-SemaDeclCXX
  Home:   https://github.com/llvm/llvm-project
  Commit: 1fb4651e2d0477c0eaae52d38f983c912b5681c8
      https://github.com/llvm/llvm-project/commit/1fb4651e2d0477c0eaae52d38f983c912b5681c8
  Author: David Stone <davidfromonline at gmail.com>
  Date:   2025-11-28 (Fri, 28 Nov 2025)

  Changed paths:
    M clang/lib/Sema/SemaDeclCXX.cpp

  Log Message:
  -----------
  [clang][NFC] Use range-based for loop and algorithms in `SemaDeclCXX.cpp`

This changes most for loops in `SemaDeclCXX.cpp` to use a range-based for loop or a named algorithm. The ones unchanged were more complicated loops that used an index to iterate over multiple ranges, used an index to handle elements being added during insertion, or otherwise were not obvious how to transform them.



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