[all-commits] [llvm/llvm-project] c972f6: [OPENMP]Allow using of members in standalone decla...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Jan 7 10:58:02 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c972f6fd7919b737f4c991d27249b9a947011c8e
      https://github.com/llvm/llvm-project/commit/c972f6fd7919b737f4c991d27249b9a947011c8e
  Author: Alexey Bataev <a.bataev at hotmail.com>
  Date:   2020-01-07 (Tue, 07 Jan 2020)

  Changed paths:
    M clang/include/clang/Parse/Parser.h
    M clang/lib/Parse/ParseCXXInlineMethods.cpp
    M clang/lib/Parse/ParseDeclCXX.cpp
    M clang/lib/Parse/ParseOpenMP.cpp
    M clang/test/OpenMP/declare_mapper_messages.cpp
    M clang/test/OpenMP/declare_reduction_codegen.cpp
    M clang/test/OpenMP/declare_reduction_messages.cpp

  Log Message:
  -----------
  [OPENMP]Allow using of members in standalone declaration pragmas.

If standalone OpenMP declaration pragma, like declare mapper or declare
reduction, is declared in the class context, it may reference a member
(data or function) in its internal expressions/statements. So, the
parsing of such pragmas must be dalayed just like the parsing of the
member initializers/definitions before the completion of the class
declaration.




More information about the All-commits mailing list