llvm-project/clang/lib/Parse
Alexey Bataev f3c832a970 [OpenMP] Fix handling of clause on wrong directive, by Joel. E. Denny
Summary:
First, this patch fixes an assert failure when, for example, "omp for"
has num_teams.

Second, this patch prevents duplicate diagnostics when, for example,
"omp for" has uniform.

This patch makes the general assumption (even where it doesn't
necessarily fix an existing bug) that it is worthless to perform sema
for a clause that appears on a directive on which OpenMP does not
permit that clause.  However, due to this assumption, this patch
suppresses some diagnostics that were expected in the test suite.  I
assert that those diagnostics were likely just distracting to the
user.

Reviewers: ABataev

Reviewed By: ABataev

Subscribers: cfe-commits

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

llvm-svn: 322107
2018-01-09 19:21:04 +00:00
..
CMakeLists.txt
ParseAST.cpp C++ Modules TS: add frontend support for building pcm files from module 2016-08-26 00:14:38 +00:00
ParseCXXInlineMethods.cpp PR34163: Don't cache an incorrect key function for a class if queried between 2017-08-12 01:46:03 +00:00
ParseDecl.cpp Again reverting an attempt to convert the DeclSpec enums into scoped enums. 2018-01-01 18:23:28 +00:00
ParseDeclCXX.cpp Again reverting an attempt to convert the DeclSpec enums into scoped enums. 2018-01-01 18:23:28 +00:00
ParseExpr.cpp Again reverting an attempt to convert the DeclSpec enums into scoped enums. 2018-01-01 18:23:28 +00:00
ParseExprCXX.cpp Again reverting an attempt to convert the DeclSpec enums into scoped enums. 2018-01-01 18:23:28 +00:00
ParseInit.cpp Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-01 21:23:52 +00:00
ParseObjc.cpp Again reverting an attempt to convert the DeclSpec enums into scoped enums. 2018-01-01 18:23:28 +00:00
ParseOpenMP.cpp [OpenMP] Fix handling of clause on wrong directive, by Joel. E. Denny 2018-01-09 19:21:04 +00:00
ParsePragma.cpp Preserve unknown STDC pragma through preprocessor 2018-01-05 22:45:03 +00:00
ParseStmt.cpp [NFC] Modernize enum Declarator::TheContext to a type-safe scoped enum. 2017-12-29 05:41:00 +00:00
ParseStmtAsm.cpp Move MS inline asm parser methods out of line to reduce indentation, NFC 2017-10-26 17:07:48 +00:00
ParseTemplate.cpp [NFC] Modernize enum DeclSpecContext into a scoped enum. 2017-12-31 00:06:40 +00:00
ParseTentative.cpp Remove old concepts parsing code 2017-12-07 00:34:20 +00:00
Parser.cpp Again reverting an attempt to convert the DeclSpec enums into scoped enums. 2018-01-01 18:23:28 +00:00