[all-commits] [llvm/llvm-project] d466ca: [Clang][OpenMP] Add static version of getSingleCla...

Michael Kruse via All-commits all-commits at lists.llvm.org
Sun Jun 6 07:18:02 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d466ca087aae958d1c0a965c561be07d2cb3e7e2
      https://github.com/llvm/llvm-project/commit/d466ca087aae958d1c0a965c561be07d2cb3e7e2
  Author: Michael Kruse <llvm-project at meinersbur.de>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M clang/include/clang/AST/StmtOpenMP.h

  Log Message:
  -----------
  [Clang][OpenMP] Add static version of getSingleClause<ClauseT>. NFC.

The current method getSingleClause requires an instance of OMPExecutableDirective to be called. Introduce a static version taking a list of clauses as argument instead that can be used during parsing/Sema before any OMPExecutableDirective has been created.

This is the same approach as taken for getClausesOfKind for getting more more than a single clause of a type which also has a method and static version. NFC patch extracted out of D99459 by request.

Reviewed By: ABataev

Differential Revision: https://reviews.llvm.org/D103665




More information about the All-commits mailing list