[all-commits] [llvm/llvm-project] fec003: [OpenACC]Reimplement 'for' loop checks for a loop ...

Erich Keane via All-commits all-commits at lists.llvm.org
Mon Apr 28 15:23:11 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fec003a18a8b5b3dc56c8b59e3516fafaeda7072
      https://github.com/llvm/llvm-project/commit/fec003a18a8b5b3dc56c8b59e3516fafaeda7072
  Author: erichkeane <ekeane at nvidia.com>
  Date:   2025-04-28 (Mon, 28 Apr 2025)

  Changed paths:
    M clang/include/clang/Sema/SemaOpenACC.h
    M clang/lib/Sema/SemaOpenACC.cpp
    M clang/test/SemaOpenACC/combined-construct.cpp
    M clang/test/SemaOpenACC/loop-construct.cpp

  Log Message:
  -----------
  [OpenACC]Reimplement 'for' loop checks for a loop construct

The 'loop' construct has some pretty strict checks as to what the for
loop associated with it has to look like. The previous implementation
was a little convoluted and missed implementing the 'condition'
checking.  Additionally, it did a bad job double-diagnosing with
templates.

This patch rewrites it in a way that does a much better job with the
double-diagnosing, and proeprly implements some checks for the
'condition' of the for loop.



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