[all-commits] [llvm/llvm-project] 9652c1: [flang][OpenMP] Use iterator_range/range-for for F...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Tue Nov 12 05:41:08 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9652c1cc098fb2b237f0d4c91f3b3414f7afdbe1
      https://github.com/llvm/llvm-project/commit/9652c1cc098fb2b237f0d4c91f3b3414f7afdbe1
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2024-11-12 (Tue, 12 Nov 2024)

  Changed paths:
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/check-omp-structure.h

  Log Message:
  -----------
  [flang][OpenMP] Use iterator_range/range-for for FindClauses, NFC (#115749)

Implement a thin wrapper `GetClauses` that returns llvm::iterator_range
made from the pair of iterators returned by FindClauses. This enables
the use of range-for, which in turn makes the code a little more
readable.



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