llvm-project/flang/test/Preprocessing
Daniil Dudkin 889c7c8e92 [flang] Support correct continuations for compiler directives
If a line is over 72 characters long, flang's preprocessor cuts it there
and continues on the next line.
For this purpose it uses the standard way of continuing line with & on each line.
However, it doesn't work with long compiler directives, like OpenMP or OpenACC ones.
The line that continues the directive also has to
contain the corresponding sentinel at the beginning.

This change implements the described functionality.
Also, some code was refactored in order to simplify and reuse existing code.

Reviewed By: klausler

Differential Revision: https://reviews.llvm.org/D126301
2022-05-27 13:45:37 +03:00
..
assert.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
compiler_defined_macros.F90 [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
dash-E.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
defines.F90 [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
empty.h [flang] Allow Fortran comments after #include path 2020-09-14 16:58:14 -07:00
fixed-rescan.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
hollerith.f [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
include-comment.F90 [flang] Distinguish usage and portability warning messages 2022-03-08 17:24:52 -08:00
parse-preprocessed.F [flang][nfc] Add a regression test for #50993 2021-08-02 18:21:23 +00:00
pp001.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp002.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp003.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp004.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp005.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp006.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp007.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp008.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp009.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp010.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp011.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp012.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp013.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp014.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp015.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp016.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp017.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp018.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp019.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp020.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp021.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp022.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp023.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp024.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp025.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp026.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp027.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp028.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp029.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp030.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp031.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp032.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp033.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp034.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp035.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp036.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp037.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp038.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp039.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp040.F [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
pp041.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp042.F [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
pp043.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp044.F [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp045.F [flang] Fix handling of space between # and name in preprocessor stringification 2022-01-12 16:02:17 -08:00
pp101.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp102.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp103.F90 [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
pp104.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp105.F90 [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
pp106.F90 [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
pp107.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp108.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp109.F90 [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
pp110.F90 [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
pp111.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp112.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp113.F90 [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
pp114.F90 [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
pp115.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp116.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp117.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp118.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp119.F90 [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
pp120.F90 [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
pp121.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp122.F90 [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
pp123.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp124.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp125.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp126.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp127.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp128.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
pp129.F90 [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
pp130.F90 [flang][windows] Run regression tests under Windows. NFCI. 2021-06-10 05:13:44 -05:00
pp131.F90 [flang] Fix handling of space between # and name in preprocessor stringification 2022-01-12 16:02:17 -08:00
pp132.f90 [flang] Support correct continuations for compiler directives 2022-05-27 13:45:37 +03:00
pp133.f90 [flang] Support correct continuations for compiler directives 2022-05-27 13:45:37 +03:00