llvm/flang/lib/parser
Jinxin (Brian) Yang 39be4ad473 [flang] [OpenMP] parse tree fix for Declare Target (flang-compiler/f18#670)
The original implementation will throw parsing error for multiple
clauses on `declare target` directive, for example:
```
!$omp declare target to(Q) link(R)
```

Based on the OpenMP Spec, we only need two types for the specifier:

```
!$omp declare target (extended-list)
```
or
```
!$omp declare target [clause[ [,] clause] ... ]
```

This fix makes `declare target` accepts either the `list` or `clauses`,
which is more general and better for error messages.

Adjusted existing test for checking the parse tree changes. More tests
will be added during Semantics.

Original-commit: flang-compiler/f18@60f47fc1a1
Reviewed-on: https://github.com/flang-compiler/f18/pull/670
2019-08-20 10:23:56 -07:00
..
basic-parsers.h [flang] Revert "Remove needless braces" 2019-06-26 09:44:08 +00:00
char-block.h [flang] Add operator<< for parser::CharBlock 2019-08-07 10:49:54 -07:00
char-buffer.cc
char-buffer.h
char-set.cc
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
dump-parse-tree.h [flang] [OpenMP] parse tree fix for Declare Target (flang-compiler/f18#670) 2019-08-20 10:23:56 -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] [OpenMP] parse tree changes for OpenMPLoopConstruct (flang-compiler/f18#656) 2019-08-14 15:16:27 -07:00
instrumented-parser.cc
instrumented-parser.h
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] parse tree fix for Declare Target (flang-compiler/f18#670) 2019-08-20 10:23:56 -07:00
parse-state.h [flang] Character set and encoding changes 2019-06-17 16:13:07 -07:00
parse-tree-visitor.h [flang] [OpenMP] parse tree fix for Declare Target (flang-compiler/f18#670) 2019-08-20 10:23:56 -07:00
parse-tree.cc [flang] Add operator<< for parser::CharBlock 2019-08-07 10:49:54 -07:00
parse-tree.h [flang] [OpenMP] parse tree fix for Declare Target (flang-compiler/f18#670) 2019-08-20 10:23:56 -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] Enable some new warnings, clean up some of their consequences 2019-08-16 09:41:06 -07:00
preprocessor.h
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] Enable more warnings, deal with fallout 2019-08-16 09:41:07 -07:00
provenance.h [flang] Enable more warnings, deal with fallout 2019-08-16 09:41: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] [OpenMP] parse tree changes for Sections/Parallel Sections constructs (flang-compiler/f18#652) 2019-08-14 08:42:28 -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] Enable more warnings, deal with fallout 2019-08-16 09:41:07 -07:00
tools.h [flang] Allocate semantic checks (second part) 2019-05-03 00:45:22 -07:00
type-parsers.h [flang] [OpenMP] parse tree changes for OpenMPLoopConstruct (flang-compiler/f18#656) 2019-08-14 15:16:27 -07:00
unparse.cc [flang] [OpenMP] parse tree fix for Declare Target (flang-compiler/f18#670) 2019-08-20 10:23:56 -07:00
unparse.h [flang] More debugging vs. regression tests 2019-06-17 16:13:08 -07:00
user-state.cc
user-state.h