[all-commits] [llvm/llvm-project] 72c046: [flang][OpenMP] Better diagnostics for invalid or ...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Thu Nov 20 07:13:42 PST 2025


  Branch: refs/heads/users/kparzysz/n03-invalid-directive
  Home:   https://github.com/llvm/llvm-project
  Commit: 72c046f755c26e7696ccff0ba4e25701293be726
      https://github.com/llvm/llvm-project/commit/72c046f755c26e7696ccff0ba4e25701293be726
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2025-11-20 (Thu, 20 Nov 2025)

  Changed paths:
    M flang/include/flang/Parser/dump-parse-tree.h
    M flang/include/flang/Parser/parse-tree.h
    M flang/lib/Parser/executable-parsers.cpp
    M flang/lib/Parser/openmp-parsers.cpp
    M flang/lib/Parser/program-parsers.cpp
    M flang/lib/Parser/type-parsers.h
    M flang/lib/Parser/unparse.cpp
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/check-omp-structure.h
    M flang/lib/Semantics/resolve-directives.cpp
    M flang/test/Parser/OpenMP/fail-construct2.f90
    M flang/test/Parser/OpenMP/tile-fail.f90
    M flang/test/Semantics/OpenMP/loop-association.f90

  Log Message:
  -----------
  [flang][OpenMP] Better diagnostics for invalid or misplaced directives

Add two more AST nodes, one for a misplaced end-directive, and one for
an invalid string following the OpenMP sentinel (e.g. "!$OMP XYZ").

Emit error messages when either node is encountered in semantic analysis.



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