hanchenye-llvm-project/clang/test/Misc
Alexey Bataev cbecfdfefe [OpenMP] Fix trailing space when printing pragmas, by Joel. E. Denny
Summary:
-ast-print prints omp pragmas with a trailing space.  While this
behavior is likely of little concern to most users, surely it's
unintentional, and it's annoying for some source-level work I'm
pursuing.  This patch focuses on omp pragmas, but it also fixes
init_seg and loop hint pragmas because they share implementation.

The testing strategy here is to add usually just one '{{$}}' per
relevant -ast-print test file.  This seems to achieve good code
coverage.  However, this strategy is probably easy to forget as the
tests evolve.  That's probably fine as this fix is far from critical.
The main goal of the testing is to aid the initial review.

This patch also adds a fixme for "#pragma unroll", which prints as
"#pragma unroll (enable)", which is invalid syntax.

Reviewers: ABataev

Reviewed By: ABataev

Subscribers: guansong, cfe-commits

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

llvm-svn: 325145
2018-02-14 17:38:47 +00:00
..
Inputs
amdgcn.languageOptsOpenCL.cl
ast-dump-arm-attr.c
ast-dump-attr.cpp Re-commit r321223, which adds a printing policy to the ASTDumper. 2017-12-21 21:42:42 +00:00
ast-dump-attr.m Allow the NS, CF, and ObjC attributes to be used with -fdouble-square-bracket-attributes. The syntactic locations for such attributes on ObjC constructs have been specifically chosen to follow the GNU attribute syntactic locations. 2018-02-12 13:38:25 +00:00
ast-dump-c-attr.c Add -f[no-]double-square-bracket-attributes as new driver options to control use of [[]] attributes in all language modes. This is the initial implementation of WG14 N2165, which is a proposal to add [[]] attributes to C2x, but also allows you to enable these attributes in C++98, or disable them in C++11 or later. 2017-10-15 15:01:42 +00:00
ast-dump-color.cpp Re-commit r321223, which adds a printing policy to the ASTDumper. 2017-12-21 21:42:42 +00:00
ast-dump-comment.cpp
ast-dump-decl.c
ast-dump-decl.cpp Re-commit r321223, which adds a printing policy to the ASTDumper. 2017-12-21 21:42:42 +00:00
ast-dump-decl.m
ast-dump-decl.mm
ast-dump-invalid.cpp Re-commit r321223, which adds a printing policy to the ASTDumper. 2017-12-21 21:42:42 +00:00
ast-dump-lookups.cpp
ast-dump-msp430-attr.c
ast-dump-pipe.cl
ast-dump-stmt.c Track in the AST whether the operand to a UnaryOperator can overflow and then use that logic when evaluating constant expressions and emitting codegen. 2018-01-09 13:07:03 +00:00
ast-dump-stmt.cpp
ast-dump-stmt.m
ast-dump-templates.cpp
ast-dump-wchar.cpp
ast-print-char-literal.cpp
ast-print-objectivec.m
ast-print-out-of-line-func.cpp
ast-print-pragmas-xfail.cpp
ast-print-pragmas.cpp [OpenMP] Fix trailing space when printing pragmas, by Joel. E. Denny 2018-02-14 17:38:47 +00:00
attr-source-range.cpp
backend-optimization-failure-nodbg.cpp
backend-optimization-failure.cpp
backend-resource-limit-diagnostics.cl Revert "Mark test as unsupported until r315808 is fixed" 2017-10-14 22:24:31 +00:00
backend-stack-frame-diagnostics-fallback.cpp
backend-stack-frame-diagnostics.cpp
caret-diags-macros.c
caret-diags-multiline.cpp
caret-diags-scratch-buffer.c
cc1as-asm.s
cc1as-compress.s
dev-fd-fs.c
diag-aka-types.cpp
diag-format.c
diag-line-wrapping.cpp
diag-macro-backtrace.c
diag-macro-backtrace2.c
diag-mapping.c
diag-mapping2.c
diag-null-bytes-in-line.cpp
diag-presumed.c
diag-special-chars.c
diag-template-diffing-color.cpp
diag-template-diffing-cxx98.cpp
diag-template-diffing.cpp
diag-trailing-null-bytes.cpp
diag-verify.cpp
diagnostic-crash.cpp
driver-verify.c
emit-html-insert.c
emit-html.c
error-limit-multiple-notes.cpp
error-limit.c
find-diagnostic-id.c
freebsd-arm-size_t.c
include-stack-for-note-flag.cpp
integer-literal-printing.cpp
interpreter.c
languageOptsOpenCL.cl
macro-backtrace.c
message-length.c
nvptx.languageOptsOpenCL.cl
permissions.cpp
pr32207.c
pragma-attribute-cxx-subject-match-rules.cpp Extend -ast-dump for CXXRecordDecl to dump the flags from the DefinitionData. 2017-09-22 00:11:15 +00:00
pragma-attribute-cxx.cpp Extend -ast-dump for CXXRecordDecl to dump the flags from the DefinitionData. 2017-09-22 00:11:15 +00:00
pragma-attribute-objc-subject-match-rules.m
pragma-attribute-objc.m
pragma-attribute-strict-subjects.c
pragma-attribute-supported-attributes-list.test Add support for attribute 'trivial_abi'. 2018-02-05 20:23:22 +00:00
predefines.c
r600.languageOptsOpenCL.cl
reduced-diags-macros-backtrace.cpp
reduced-diags-macros.cpp
remap-file.c
serialized-diags-driver.c
serialized-diags-frontend.c
serialized-diags-no-category.c
serialized-diags-no-issue.c
serialized-diags-really-long-text.cpp
serialized-diags-single-issue.c
serialized-diags-stable.c
serialized-diags.c
serialized-diags.h
serialized-diags.m
show-diag-options.c
tabstop.c
target-invalid-cpu-note.c Update target-note-test to be current with the AMDGPU changes 2018-02-12 17:19:57 +00:00
target-parser.c
thinlto.c
unnecessary-elipses.cpp
unprintable.c
verify.c
warn-in-system-header.c
warn-in-system-header.h
warn-sysheader.cpp
warning-flags-enabled.c
warning-flags-tree.c [diagtool] Change default tree behavior to print only flags 2017-09-05 18:04:40 +00:00
warning-flags.c PR34822: Fix a collection of related bugs with our handling of C89 implicit function declarations. 2017-10-04 01:49:22 +00:00
win32-macho.c
working-directory.c
wrong-encoding.c
wrong-encoding2.c