llvm/flang/lib/parser
Jinxin (Brian) Yang cdd1ca064c [flang] [OpenMP] Add Sections and Single Construct check (flang-compiler/f18#585)
* [OpenMP] Add Sections and Single Construct check

Parse tree for OmpEndSingle needs to be modified to save the provenance
of END SINGLE directive and check its own clauses

* Update on reviews

1. PushContext is created to push new context with source provenance

2. Tweak the logic for SECTION nesting, treak Orphaned or wrong nesting
   as the same error type

3. Make sure the check for NOWAIT clause only applies to the ones that
   are not handled by parser.
   Note that the case for DO or DO_SIMD will take effect after the
   loop association work (parse tree change) is done. But I still list
   them there for completeness.

4. Happen to find that NOWAIT is not accepted by PARALLEL SECTIONS,
   fixed it in the parser.


Original-commit: flang-compiler/f18@236cf1efea
Reviewed-on: https://github.com/flang-compiler/f18/pull/585
2019-08-01 14:32:33 -07:00
..
basic-parsers.h [flang] Revert "Remove needless braces" 2019-06-26 09:44:08 +00:00
char-block.h [flang] Strip comments from source and directive lines after macro replacement 2019-05-10 16:04:10 -07:00
char-buffer.cc [flang] Changed .clang-format so that it will not add a comment after the closing brace of each namespace. Removed all such previous comments from all .cc and .h files 2018-10-25 05:55:23 -07:00
char-buffer.h [flang] Changed .clang-format so that it will not add a comment after the closing brace of each namespace. Removed all such previous comments from all .cc and .h files 2018-10-25 05:55:23 -07:00
char-set.cc [flang] Changed .clang-format so that it will not add a comment after the closing brace of each namespace. Removed all such previous comments from all .cc and .h files 2018-10-25 05:55:23 -07:00
char-set.h [flang] Extirpate NCHARACTER type, NC"" literals, and EUC-JP Hollerith 2019-06-28 11:22:43 -07:00
characters.cc [flang] Extirpate NCHARACTER type, NC"" literals, and EUC-JP Hollerith 2019-06-28 11:22:43 -07:00
characters.h [flang] Extirpate NCHARACTER type, NC"" literals, and EUC-JP Hollerith 2019-06-28 11:22:43 -07:00
CMakeLists.txt [flang] Generalize tools, clean up common/unwrap.h with new-found knowledge 2019-04-16 15:59:04 -07:00
debug-parser.cc [flang] Replace formatting of CharBlock & string 2019-05-07 09:24:32 -07:00
debug-parser.h [flang] Changed .clang-format so that it will not add a comment after the closing brace of each namespace. Removed all such previous comments from all .cc and .h files 2018-10-25 05:55:23 -07:00
dump-parse-tree.h [flang] Complete source provenance on OMP constructs (except ATOMIC) 2019-07-15 13:05:29 -07:00
features.h [flang] Add non standard feature for labeled do not ending with END DO or CONTINUE 2019-07-09 11:54:40 -07:00
format-specification.h [flang] Redo without macros 2019-04-09 13:29:40 -07:00
grammar.h [flang] Update grammar and a test in light of C1516 2019-07-10 16:42:10 -07:00
instrumented-parser.cc [flang] Changed .clang-format so that it will not add a comment after the closing brace of each namespace. Removed all such previous comments from all .cc and .h files 2018-10-25 05:55:23 -07:00
instrumented-parser.h [flang] Changed .clang-format so that it will not add a comment after the closing brace of each namespace. Removed all such previous comments from all .cc and .h files 2018-10-25 05:55:23 -07:00
message.cc [flang] Trim duplicate error messages on intrinsics, and fix FINDLOC for Character data. 2019-07-03 12:30:28 -07:00
message.h [flang] Support SELECTED_CHAR_KIND("DEFAULT") 2019-07-17 15:58:28 -07:00
openmp-grammar.h [flang] [OpenMP] Add Sections and Single Construct check (flang-compiler/f18#585) 2019-08-01 14:32:33 -07:00
parse-state.h [flang] Character set and encoding changes 2019-06-17 16:13:07 -07:00
parse-tree-visitor.h [flang] Combine BARRIER/TASKWAIT/TASKYIELD 2019-07-15 13:05:28 -07:00
parse-tree.cc [flang] Quick additional fix for crashes on statement functions without arguments 2019-07-03 13:04:56 -07:00
parse-tree.h [flang] [OpenMP] Add Sections and Single Construct check (flang-compiler/f18#585) 2019-08-01 14:32:33 -07:00
parsing.cc [flang] Character set and encoding changes 2019-06-17 16:13:07 -07:00
parsing.h [flang] Character set and encoding changes 2019-06-17 16:13:07 -07:00
preprocessor.cc [flang] Character set and encoding changes 2019-06-17 16:13:07 -07:00
preprocessor.h [flang] Changed .clang-format so that it will not add a comment after the closing brace of each namespace. Removed all such previous comments from all .cc and .h files 2018-10-25 05:55:23 -07:00
prescan.cc [flang] Review comments and last (?) bugs 2019-06-18 13:46:54 -07:00
prescan.h [flang] Review comments and last (?) bugs 2019-06-18 13:46:54 -07:00
provenance.cc [flang] Character set and encoding changes 2019-06-17 16:13:07 -07:00
provenance.h [flang] Character set and encoding changes 2019-06-17 16:13:07 -07:00
source.cc [flang] Character set and encoding changes 2019-06-17 16:13:07 -07:00
source.h [flang] Character set and encoding changes 2019-06-17 16:13:07 -07:00
stmt-parser.h [flang] some debugging after more testing 2019-04-01 16:23:34 -07:00
token-parsers.h [flang] Define and use OpenMPConstructDirective 2019-07-15 13:05:24 -07:00
token-sequence.cc [flang] Extirpate NCHARACTER type, NC"" literals, and EUC-JP Hollerith 2019-06-28 11:22:43 -07:00
token-sequence.h [flang] More debugging vs. regression tests 2019-06-17 16:13:08 -07:00
tools.cc [flang] Allocate semantic checks (second part) 2019-05-03 00:45:22 -07:00
tools.h [flang] Allocate semantic checks (second part) 2019-05-03 00:45:22 -07:00
type-parsers.h [flang] Use parameter packs to simplify parser combinators. Work around g++ bug better. 2019-04-19 16:59:28 -07:00
unparse.cc [flang] Combine BARRIER/TASKWAIT/TASKYIELD 2019-07-15 13:05:28 -07:00
unparse.h [flang] More debugging vs. regression tests 2019-06-17 16:13:08 -07:00
user-state.cc [flang] Use value()/has_value() on Indirection class templates instead of operator*/operator-> 2019-03-05 12:28:08 -08:00
user-state.h [flang] Changed .clang-format so that it will not add a comment after the closing brace of each namespace. Removed all such previous comments from all .cc and .h files 2018-10-25 05:55:23 -07:00