llvm-project/clang/test/PCH
Nikita Popov 532dc62b90 [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC)
This adds -no-opaque-pointers to clang tests whose output will
change when opaque pointers are enabled by default. This is
intended to be part of the migration approach described in
https://discourse.llvm.org/t/enabling-opaque-pointers-by-default/61322/9.

The patch has been produced by replacing %clang_cc1 with
%clang_cc1 -no-opaque-pointers for tests that fail with opaque
pointers enabled. Worth noting that this doesn't cover all tests,
there's a remaining ~40 tests not using %clang_cc1 that will need
a followup change.

Differential Revision: https://reviews.llvm.org/D123115
2022-04-07 12:09:47 +02:00
..
Inputs Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
__va_list_tag-typedef.c
__va_list_tag.c
aarch64-sve-types.c [AArch64][SVE] clang: Add missing svbfloat16_t tests 2020-06-29 16:48:53 +00:00
aix-pragma-pack.c [Frontend] Add pragma align natural and sort out pragma pack stack effect 2021-01-13 10:53:24 -05:00
arc-blocks.mm [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC) 2022-04-07 12:09:47 +02:00
arc.m
asm.c
asm.h Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
attrs-PR8406.c Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
attrs.c Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
badpch.c
block-helpers.cpp [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC) 2022-04-07 12:09:47 +02:00
block-helpers.h
blocks.c
blocks.h
btf_type_tag_attr.c [Attr] Fix a btf_type_tag AST generation 2022-03-16 08:46:52 -07:00
builtin-bit-cast.cpp [PCH] Support writing BuiltinBitCastExprs to PCHs 2020-06-11 13:37:01 -04:00
builtin-is-constant-evaluated.cpp [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC) 2022-04-07 12:09:47 +02:00
builtin-macro.c
builtins.c Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
builtins.h
captured-stmt.cpp
case-insensitive-include.c
chain-categories.m
chain-categories2.m
chain-class-extension.m
chain-conversion-lookup.cpp
chain-cxx.cpp
chain-decls.c Fix the declaration printer to properly handle prototypes in C 2022-02-17 13:54:09 -05:00
chain-default-argument-instantiation.cpp
chain-empty-initial-namespace.cpp
chain-ext_vector.c
chain-external-defs.c [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
chain-friend-instantiation.cpp
chain-implicit-definition.cpp
chain-invalid-code.cpp
chain-late-anonymous-namespace.cpp
chain-macro-override.c Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
chain-macro.c Fix the declaration printer to properly handle prototypes in C 2022-02-17 13:54:09 -05:00
chain-openmp-allocate.cpp [OPENMP]Consider 'omp_null_allocator' as a predefined allocator. 2020-05-07 10:11:06 -04:00
chain-openmp-threadprivate.cpp [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC) 2022-04-07 12:09:47 +02:00
chain-pending-instantiations.cpp [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC) 2022-04-07 12:09:47 +02:00
chain-predecl.h
chain-predecl.m
chain-remap-types.m Clean up ObjCPropertyDecl printing 2019-04-08 19:52:45 +00:00
chain-selectors.m Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
chain-staticvar-instantiation.cpp
chain-trivial.c
chain-typo-corrections.cpp
changed-files.c
check-deserializations.cpp
cli-macro.c make sure to not warn about unused macros from -D 2020-04-27 21:26:13 +02:00
cmdline-include.c
cmdline-include1.h
cmdline-include2.h
codegen.cpp accept 'clang++ -c a.pch -o a.o' to create PCH's object file 2020-07-22 10:21:23 +02:00
coroutines.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
crash-12631281.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cuda-kernel-call.cu
cxx-alias-decl.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx-alias-decl.h
cxx-attrs-packexpansion.cpp [clang] Persist Attr::IsPackExpansion into the PCH 2020-04-05 23:32:03 -04:00
cxx-chain-function-template.cpp
cxx-char-literal.cpp
cxx-constexpr.cpp PR44406: Follow behavior of array bound constant folding in more recent versions of GCC. 2020-10-16 14:34:35 -07:00
cxx-dependent-sized-ext-vector.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx-explicit-specifier.cpp Diagnose -Wunused-value based on CFG reachability 2021-09-28 10:00:15 -07:00
cxx-exprs.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx-for-range.cpp
cxx-for-range.h
cxx-friends.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx-friends.h
cxx-functions.cpp
cxx-functions.h
cxx-implicit-moves.cpp
cxx-invalid-destructor.cpp [clang] Exclude invalid destructors from lookups. 2020-08-26 19:29:30 +02:00
cxx-invalid-destructor.h [clang] Exclude invalid destructors from lookups. 2020-08-26 19:29:30 +02:00
cxx-key-functions.cpp
cxx-mangling.cpp
cxx-member-init.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx-method.cpp
cxx-ms-function-specialization-class-scope.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx-ms-function-specialization-class-scope.h
cxx-namespaces.cpp
cxx-namespaces.h
cxx-offsetof-base.cpp
cxx-offsetof-base.h
cxx-recovery-expr.cpp [AST] Fix an undefine behavior when creating an empty recovery expr. 2020-04-16 12:35:45 +02:00
cxx-reference.cpp
cxx-reference.h [clang] Allow LifetimeExtendedTemporary to have no access specifier 2021-01-18 19:19:57 +01:00
cxx-required-decls.cpp
cxx-required-decls.h
cxx-static_assert.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx-templates.cpp PR48434: Work around crashes due to deserialization cycles via typedefs. 2020-12-09 12:22:35 -08:00
cxx-templates.h PR48434: Work around crashes due to deserialization cycles via typedefs. 2020-12-09 12:22:35 -08:00
cxx-trailing-return.cpp
cxx-traits.cpp
cxx-traits.h
cxx-typeid.cpp
cxx-typeid.h
cxx-using.cpp
cxx-using.h
cxx-variadic-templates-with-default-params.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx-variadic-templates.cpp Don't crash if we deserialize a pack expansion type whose pattern 2020-07-31 17:19:44 -07:00
cxx-variadic-templates.h Don't crash if we deserialize a pack expansion type whose pattern 2020-07-31 17:19:44 -07:00
cxx0x-default-delete.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx0x-delegating-ctors.cpp
cxx1y-decltype-auto.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx1y-deduced-return-type.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx1y-default-initializer.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx1y-init-captures.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx1y-lambdas.mm Don't crash if we deserialize a pack expansion type whose pattern 2020-07-31 17:19:44 -07:00
cxx1y-variable-templates.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx1z-aligned-alloc.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx1z-decomposition.cpp Set InvalidDecl directly when deserializing a Decl 2020-09-05 14:26:43 +02:00
cxx1z-init-statement.cpp
cxx1z-init-statement.h
cxx1z-using-declaration.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx2a-bitfield-init.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx2a-compare.cpp [c++20] Add rewriting from comparison operators to <=> / ==. 2019-10-19 00:04:43 +00:00
cxx2a-concept-specialization-expr.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx2a-constraints-crash.cpp [Concepts] Fix a deserialization crash. 2020-07-30 09:25:15 +02:00
cxx2a-constraints.cpp Don't crash if we deserialize a pack expansion type whose pattern 2020-07-31 17:19:44 -07:00
cxx2a-defaulted-comparison.cpp Fix rejects-valid when referencing an implicit operator== from within a 2020-06-22 20:19:20 -07:00
cxx2a-for-init-statement.cpp
cxx2a-requires-expr.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx2a-template-lambdas.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx11-constexpr.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx11-enum-template.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx11-exception-spec.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx11-inheriting-ctors.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx11-lambdas.mm [c++20] Implement P0428R2 - Familiar template syntax for generic lambdas 2019-05-04 10:49:46 +00:00
cxx11-statement-attributes.cpp [NFC][Clang][test] Inclusive language: Remove and rephrase uses of sanity test/check in clang/test 2021-11-24 14:03:49 -05:00
cxx11-user-defined-literals.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
cxx14-decltype-auto.cpp Reland (2) "[AST] Add RParen loc for decltype AutoTypeloc."" 2022-01-17 11:33:11 +01:00
cxx17-deduction-guide-decl.cpp [clang] Add a C++17 deduction guide testcase. 2020-12-04 09:02:50 +01:00
cxx20-template-args.cpp Add more test coverage for APValue serialization / deserialization and 2020-10-21 13:21:41 -07:00
cxx20-unevaluated-lambda.cpp Fix crash when deserializing a lambda expression in a decltype. 2022-02-15 17:56:45 -08:00
cxx_exprs.cpp For DR712: store on a DeclRefExpr whether it constitutes an odr-use. 2019-06-11 17:50:32 +00:00
cxx_exprs.h
datetime.c
debug-info-limited-struct.c
debug-info-limited-struct.h Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
debug-info-pch-container-path.c PCH debug info: Avoid appending the source directory to an absolute path 2019-10-21 16:44:37 +00:00
debug-info-pch-path.c [NFC][AIX]Disable precompiled module file tests on AIX 2021-11-24 13:22:09 -05:00
decl-attrs.cpp Add another test for PR48434. 2020-12-09 12:22:35 -08:00
decl-in-prototype.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
delayed-pch-instantiate.cpp fix clang/PCH/delayed-pch-instantiate test 2020-06-21 19:00:42 +02:00
delayed-template-parsing.cpp Handle delayed-template-parsing functions imported into a non-dtp TU 2020-06-12 16:09:38 +02:00
designated-init.c
designated-init.c.h Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
determinism.cpp Always keep unset fields in FPOptionsOverride zeroed. 2020-08-16 15:44:51 -07:00
different-diagnostic-level.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
different-linker-version.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
dllexport-default-arg-closure.cpp [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC) 2022-04-07 12:09:47 +02:00
emit-dependencies.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
empty-def-fwd-struct.h
empty-with-headers.c
enum.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
enum.h
exprs.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
exprs.h
ext_vector.c
ext_vector.h
external-defs.c [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00
external-defs.h
externally-retained.m Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
field-designator.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
fixed-point-literal.c [Fixed Point] [AST] Add an AST serialization code for fixed-point literals. 2020-04-14 13:20:49 -05:00
floating-literal.c
for-loop-init-ternary-operator-statement.cpp [clang] Fix ternary operator in the second for loop statement 2021-05-16 10:42:52 -07:00
format-strings.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
friend-template.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
functions.c
functions.h
fuzzy-pch.c
fuzzy-pch.h
headermap.h
headermap.m
headersearch.cpp
implicitly-deleted.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
include-stream-type.cpp
include-timestamp.cpp Extend diagnostic for out of date AST input file. 2021-08-24 17:03:06 -07:00
irgen-rdar13114142.mm [AIX][ZOS] Disable LIT tests on AIX and z/OS due to lack of Objective-C support 2021-09-16 14:04:42 -04:00
late-parsed-instantiations.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
leakfiles.test Rename PCH/leakfiles test so it runs on bots. 2019-08-09 17:13:56 +00:00
line-directive-nofilename.c
line-directive-nofilename.h
line-directive.c
line-directive.h
local_static.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
local_static.h
macro-redef.c
macro-undef.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
make-integer-seq.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
method-redecls.m
method_pool.h
method_pool.m
missing-file.cpp
modified-header-crash.c
modified-header-crash.h
modified-header-error.c Re-land Remove REQUIRES:shell from tests that pass for me on Windows 2019-09-10 20:15:45 +00:00
modified-module-dependency.m
modified-module-dependency.module.map
module-hash-difference.m
ms-if-exists.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
ms-pch-macro-include_instead-regression.c Revert "Revert "[clang][pp] adds '#pragma include_instead'"" 2021-07-29 19:21:43 +00:00
ms-pch-macro.c Fix up ms-pch-macro.c test to pass on non-Windows 2020-01-14 22:19:30 -08:00
multiple-include-pch.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
multiple_decls.c
multiple_decls.h
namespaces.cpp
no-escaping-block-tail-calls.cpp [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default 2022-01-16 18:54:17 +09:00
no-escaping-block-tail-calls.h
no-validate-pch.cl
non-trivial-c-compound-literal.m [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC) 2022-04-07 12:09:47 +02:00
non-trivial-c-union.m [Sema] Diagnose default-initialization, destruction, and copying of 2019-09-07 00:34:43 +00:00
nonvisible-external-defs.c
nonvisible-external-defs.h Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
objc_boxable.m
objc_boxable_record.h
objc_boxable_record_attr.h
objc_container.h Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
objc_container.m [AIX][ZOS] Disable LIT tests on AIX and z/OS due to lack of Objective-C support 2021-09-16 14:04:42 -04:00
objc_exprs.h
objc_exprs.m Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
objc_import.h
objc_import.m Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
objc_kindof.m
objc_literals.m Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
objc_literals.mm [AIX][ZOS] Disable LIT tests on AIX and z/OS due to lack of Objective-C support 2021-09-16 14:04:42 -04:00
objc_methods.h
objc_methods.m Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
objc_parameterized_classes.m
objc_property.h
objc_property.m Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
objc_stmts.h
objc_stmts.m
objcxx-ivar-class.h
objcxx-ivar-class.mm [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC) 2022-04-07 12:09:47 +02:00
ocl_types.cl
ocl_types.h
opencl-extensions.cl
pch-dir.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
pch-dir.h
pch-hdrstop-err.cpp
pch-hdrstop-warn.cpp
pch-hdrstop.cpp
pch-instantiate-templates-forward-decl.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
pch-instantiate-templates.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
pch-no-hdrstop.cpp
pch-through1.cpp
pch-through2.cpp
pch-through3a.cpp
pch-through3b.cpp
pch-through3c.cpp
pch-through4.cpp When skipping code at the start of a file during PCH use, Preprocessor::Lex 2019-04-29 21:21:17 +00:00
pch-through4a.cpp When skipping code at the start of a file during PCH use, Preprocessor::Lex 2019-04-29 21:21:17 +00:00
pch-wasm.c [WebAssembly] Emit clangast in custom section aligned by 4 bytes 2021-10-19 15:50:08 -07:00
pch__VA_ARGS__.c
pch__VA_ARGS__.h
pchpch.c
pchpch1.h
pchpch2.h
pending-ids.m [AIX][ZOS] Disable LIT tests on AIX and z/OS due to lack of Objective-C support 2021-09-16 14:04:42 -04:00
pr4489.c
pr18806.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
pr27445.cpp [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC) 2022-04-07 12:09:47 +02:00
pragma-comment.c
pragma-cuda-force-host-device.cu
pragma-detect_mismatch.c
pragma-diag-section.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
pragma-diag.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
pragma-floatcontrol.c [clang] add fexperimental-strict-floating-point to test cases that fail on arm and aarch not sure this will work due to commit rG13bfd89c4962 2020-10-30 07:30:06 -07:00
pragma-loop.cpp
pragma-ms_struct.cpp
pragma-once.c
pragma-optimize.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
pragma-pack.c
pragma-pointers_to_members.cpp
pragma-weak-functional.c [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC) 2022-04-07 12:09:47 +02:00
pragma-weak-functional.h [Clang] Work with multiple pragmas weak before definition 2022-03-24 20:17:49 -04:00
pragma-weak.c
pragma-weak.h
preamble-modules.cpp [clang] When loading preamble from AST file, re-export modules in Sema. 2020-08-20 14:19:52 +02:00
preamble.c
pth.h
rdar8852495.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
rdar10830559.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
reinclude.cpp
reinclude1.h
reinclude2.h
reloc.c
remap-file-from-pch.cpp
remap-file-from-pch.cpp.h
remap-file-from-pch.cpp.remap.h
replaced-decl.m
selector-warning.h
selector-warning.m
single-token-macro.c
source-manager-stack.c
specialization-after-instantiation.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
stmt-attrs.cpp
stmt-openmp_structured_block-bit.cpp Modify TypePrinter to differentiate between anonymous struct and unnamed struct 2021-02-22 14:16:43 -08:00
stmts.c
stmts.h
struct.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
struct.h
subscripting-literals.m Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
suspicious-pragma-pack.c
target-options.c
target-options.h
tentative-defs.c Recommit #2 "[Driver] Default to -fno-common for all targets" 2020-03-09 19:57:03 +00:00
tentative-defs.h
thread-local.cpp Diagnose use of _Thread_local as an extension when not in C11 mode. 2019-08-26 19:44:07 +00:00
thread-safety-attrs.cpp Thread safety analysis: Drop special block handling 2021-09-20 15:20:15 +02:00
type_pack_element.cpp add option to instantiate templates already in the PCH 2020-06-21 17:05:52 +02:00
types.c Add -Wno-strict-prototypes to C tests; NFC 2022-02-24 15:30:30 -05:00
types.h
typo.cpp
typo.m Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
typo2.cpp
undefined-internal.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
uses-seh.cpp [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default 2022-01-16 18:54:17 +09:00
uuidof.cpp
va_arg.c
va_arg.cpp
va_arg.h
validate-file-content.m Reapply: [Modules][PCH] Hash input files content 2019-10-15 14:23:55 +00:00
variables.c
variables.h
verify_pch.m Extend diagnostic for out of date AST input file. 2021-08-24 17:03:06 -07:00
working-directory.cpp
working-directory.h