[all-commits] [llvm/llvm-project] 8035bb: [OPENMP]Fix skipping of functions body.

Alexey Bataev via All-commits all-commits at lists.llvm.org
Fri Dec 13 13:56:08 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8035bb4a6573f7d20f17044a68a1405691000525
      https://github.com/llvm/llvm-project/commit/8035bb4a6573f7d20f17044a68a1405691000525
  Author: Alexey Bataev <a.bataev at hotmail.com>
  Date:   2019-12-13 (Fri, 13 Dec 2019)

  Changed paths:
    M clang/include/clang/Parse/Parser.h
    M clang/include/clang/Parse/RAIIObjectsForParser.h
    M clang/lib/Parse/ParseOpenMP.cpp
    M clang/lib/Parse/Parser.cpp
    A clang/test/OpenMP/crash-skipped-bodies-template-inst.cpp
    M clang/test/OpenMP/openmp_check.cpp

  Log Message:
  -----------
  [OPENMP]Fix skipping of functions body.

When parsing the code with OpenMP and the function's body must be
skipped, need to skip also OpenMP annotation tokens. Otherwise the
counters for braces/parens are unbalanced and parsing fails.




More information about the All-commits mailing list