[all-commits] [llvm/llvm-project] e2ee91: [flang] Clean up some optional<bool> usage (#161925)

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Oct 10 10:09:24 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e2ee91ed34207859fa6afaaf0573bdf1396e7f27
      https://github.com/llvm/llvm-project/commit/e2ee91ed34207859fa6afaaf0573bdf1396e7f27
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-10-10 (Fri, 10 Oct 2025)

  Changed paths:
    M flang/docs/C++17.md
    M flang/docs/C++style.md
    M flang/include/flang/Semantics/type.h
    M flang/lib/Evaluate/check-expression.cpp
    M flang/lib/Evaluate/fold-logical.cpp
    M flang/lib/Semantics/check-call.cpp
    M flang/lib/Semantics/check-declarations.cpp
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/expression.cpp

  Log Message:
  -----------
  [flang] Clean up some optional<bool> usage (#161925)

Audit the use of std::optional<bool> as a tri-state logical value in
flang, correct a couple cases that need ".value_or()", add some explicit
".has_value()" calls, and document the possible pitfalls.



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