llvm-project/clang/test/Preprocessor
Duncan P. N. Exon Smith 1e487e4c16 clang: Only define OBJC_NEW_PROPERTIES when -x objective-c
Since 2009 (in r63846) we've been `#define`-ing OBJC_NEW_PROPERTIES all
the time on Darwin, but this macro only makes sense for `-x objective-c`
and `-x objective-c++`.  Restrict it to those cases (for which there is
already separate logic).

https://reviews.llvm.org/D72970
rdar://problem/10050342
2020-01-24 14:55:12 -08:00
..
Inputs Fix -Wnonportable-include-path suppression for header maps with absolute paths. 2019-09-11 20:39:04 +00:00
Weverything_pragma.c Fix tests after r363749 2019-06-18 23:40:17 +00:00
_Pragma-dependency.c Replace tok::angle_string_literal with new tok::header_name. 2019-03-19 22:09:55 +00:00
_Pragma-dependency2.c
_Pragma-in-macro-arg.c
_Pragma-in-macro-arg.cpp Remove use of lookahead from _Pragma handling and from all other 2019-04-11 21:18:22 +00:00
_Pragma-location.c
_Pragma-physloc.c
_Pragma.c
aarch64-target-features.c AArch64: add missing Apple CPU names and use them by default. 2020-01-08 09:24:06 +00:00
annotate_in_macro_arg.c
arm-acle-6.4.c [ARM] Prevent DSP and SIM32 being set for v6m 2018-09-28 10:18:02 +00:00
arm-acle-6.5.c [ARM] Fix bugs introduced by the fp64/d32 rework. 2019-06-07 12:42:54 +00:00
arm-pic-predefines.c [ARM] Add pre-defined macros for ROPI and RWPI 2019-02-18 12:39:47 +00:00
arm-target-features.c [clang][llvm] Obsolete Exynos M1 and M2 2019-10-30 15:02:59 -05:00
arm64_32.c AArch64: add arm64_32 support to Clang. 2019-11-12 12:45:18 +00:00
assembler-with-cpp.c
bigoutput.c Adding a test for PR25717. 2016-01-27 02:18:28 +00:00
bpf-predefined-macros.c [BPF] do not generate predefined macro bpf 2019-04-26 15:35:51 +00:00
builtin_line.c
c17.c Add language standard aliases for -std=c18, -std=gnu18, and -std=iso9899:2018. 2018-10-18 17:42:41 +00:00
c90.c
c99-6_10_3_3_p4.c
c99-6_10_3_4_p5.c
c99-6_10_3_4_p6.c
c99-6_10_3_4_p7.c
c99-6_10_3_4_p9.c
clang_headers.c
comment_save.c
comment_save_if.c
comment_save_macro.c [Clang] Remove unwanted --check-prefix=CHECK from unit tests. NFC. 2016-04-20 01:02:18 +00:00
cuda-approx-transcendentals.cu [CUDA] Updated CUDA tests that must run w/o CUDA installation. 2016-08-02 23:43:04 +00:00
cuda-macos-includes.cu [CUDA] Attempt to fix test failures in cuda-macos-includes.cu. 2016-11-18 01:11:32 +00:00
cuda-preprocess.cu [CUDA] Updated CUDA tests that must run w/o CUDA installation. 2016-08-02 23:43:04 +00:00
cuda-types.cu [CUDA] Fix grep pattern in cuda-types.cu 2019-06-10 22:28:20 +00:00
cxx_and.cpp
cxx_bitand.cpp
cxx_bitor.cpp
cxx_compl.cpp
cxx_not.cpp
cxx_not_eq.cpp
cxx_oper_keyword.cpp Keep the IdentifierInfo in the Token for alternative operator keyword 2017-07-14 09:23:40 +00:00
cxx_oper_keyword_ms_compat.cpp
cxx_oper_spelling.cpp
cxx_or.cpp
cxx_true.cpp
cxx_xor.cpp
dependencies-and-pp.c Fix PR31644 introduced by r287138 and add a regression test. 2017-01-14 21:12:08 +00:00
directive-invalid.c
disabled-cond-diags.c
disabled-cond-diags2.c
dump-macros-spacing.c
dump-macros-undef.c
dump-options.c
dump_import.h [Preprocessor] Support for '-dI' flag 2016-11-17 22:45:31 +00:00
dump_import.m [Preprocessor] Support for '-dI' flag 2016-11-17 22:45:31 +00:00
dump_include.c [Preprocessor] Support for '-dI' flag 2016-11-17 22:45:31 +00:00
dump_include.h [Preprocessor] Support for '-dI' flag 2016-11-17 22:45:31 +00:00
dump_macros.c
dumptokens_phyloc.c
elfiamcu-predefines.c [x86] Correct setting of WIntType for MCU target 2016-02-04 11:54:45 +00:00
empty_file_to_include.h Diagnose likely typos in #include directives. 2018-09-13 21:10:08 +00:00
expr_comma.c
expr_define_expansion.c Add -Wexpansion-to-undefined: warn when using `defined` in a macro definition. 2016-01-19 15:15:31 +00:00
expr_invalid_tok.c Improve diagnostic for the case when a non-defined function-like macro is used 2016-04-16 00:07:09 +00:00
expr_liveness.c
expr_multichar.c
expr_usual_conversions.c
extension-warning.c
feature_tests.c Add __has_builtin support for builtin function-like type traits. 2019-08-14 02:30:11 +00:00
feature_tests.cpp Accept __is_same_as as a GCC-compatibility synonym for the proper trait name __is_same. 2019-10-29 14:44:38 -07:00
file_name_macro.c Reland "[Clang][PP] Add the __FILE_NAME__ builtin macro" 2019-05-16 21:13:49 +00:00
file_test.c XFAIL a test on Windows 2019-11-26 19:55:50 -08:00
file_test.h Initial implementation of -fmacro-prefix-map and -ffile-prefix-map 2019-11-26 15:17:49 -08:00
file_to_include.h
first-line-indent.c
function_macro_file.c
function_macro_file.h
has_attribute.c Improve diagnostic for the case when a non-defined function-like macro is used 2016-04-16 00:07:09 +00:00
has_attribute.cpp Allow standards-based attributes to have leading and trailing underscores. 2019-08-15 18:35:44 +00:00
has_c_attribute.c Disallow use of __has_c_attribute in C++ mode. 2019-11-25 17:35:12 -05:00
has_c_attribute.cpp Disallow use of __has_c_attribute in C++ mode. 2019-11-25 17:35:12 -05:00
has_include.c Factor out repeated code parsing and concatenating header-names from 2019-03-19 01:51:19 +00:00
hash_line.c
hash_space.c
header_is_main_file.c Do not print include_next/pragma once warnings when input is a header. 2016-10-27 14:17:10 +00:00
header_lookup1.c
headermap-rel.c [hmaptool] Turn %hmaptool into a proper substitution 2018-06-22 09:46:40 +00:00
headermap-rel2.c [hmaptool] Turn %hmaptool into a proper substitution 2018-06-22 09:46:40 +00:00
hexagon-predefines.c [Hexagon] Add support for Hexagon/HVX v67 ISA 2020-01-20 16:16:49 -06:00
if_warning.c
ifdef-recover.c
ignore-pragmas.c Revert 320391: Certain targets are failing, pulling back to diagnose. 2017-12-11 18:14:51 +00:00
import_self.c
include-cycle.c [Preprocessor] Stop entering included files after hitting a fatal error. 2018-07-25 19:16:26 +00:00
include-directive1.c
include-directive2.c
include-directive3.c
include-header-file-and-dir.c Don't diagnose errors when a file matches an include component 2019-08-09 19:49:14 +00:00
include-header-missing-in-framework-with-headermap.c [Preprocessor] Fix crash emitting note with framework location for "file not found" error. 2019-05-27 19:15:30 +00:00
include-header-missing-in-framework.c [Preprocessor] Add a note with framework location for "file not found" error. 2019-02-05 22:34:55 +00:00
include-leading-nonalpha-no-suggest.c Add testcases for r342667. 2018-09-20 17:22:43 +00:00
include-likely-typo.c [MSVC Compat] Fix typo correction for inclusion directives. 2019-01-15 20:08:23 +00:00
include-macros.c
include-next.c Improve the diagnostic for #include_next occurring in a file not found 2019-03-21 20:42:13 +00:00
include-nonalpha-no-crash.c [Preprocessor] Fix a crash when handling non-alpha include header. 2018-10-01 14:38:43 +00:00
indent_macro.c Fixed tests where grep was not matching the linefeed 2019-05-10 20:11:36 +00:00
init-ppc64.c [PowerPC][Triple] Use elfv2 on freebsd>=13 and linux-musl 2020-01-07 11:40:56 -08:00
init-v7k-compat.c AArch64: add arm64_32 support to Clang. 2019-11-12 12:45:18 +00:00
init.c clang: Only define OBJC_NEW_PROPERTIES when -x objective-c 2020-01-24 14:55:12 -08:00
invalid-__has_warning1.c Consolidate and improve the handling of built-in feature-like macros 2016-04-05 08:36:47 +00:00
invalid-__has_warning2.c Consolidate and improve the handling of built-in feature-like macros 2016-04-05 08:36:47 +00:00
is_target.c Commit missing tests for r320734 2017-12-14 19:22:41 +00:00
is_target_arm.c Commit missing tests for r320734 2017-12-14 19:22:41 +00:00
is_target_arm64.c __is_target_arch: Check the arch and subarch instead of the arch name 2017-12-15 19:58:38 +00:00
is_target_environment_version.c __is_target_environment: Check the environment after parsing it 2017-12-15 20:07:53 +00:00
is_target_os_darwin.c Commit missing tests for r320734 2017-12-14 19:22:41 +00:00
is_target_unknown.c Commit missing tests for r320734 2017-12-14 19:22:41 +00:00
iwithprefix.c
line-directive-output.c Add test coverage for recent behavior change in GNU line marker pre-processing 2017-05-23 16:09:13 +00:00
line-directive.c
macho-embedded-predefines.c
macro-multiline.c Use backslash escape, replacing xargs -0 in test macro-multiline.c 2018-01-04 22:58:30 +00:00
macro-reserved-cxx11.cpp
macro-reserved-ms.c
macro-reserved.c
macro-reserved.cpp
macro_arg_directive.c Print a note to the called macro when diagnosing err_embedded_directive 2019-02-14 04:13:17 +00:00
macro_arg_directive.h
macro_arg_empty.c
macro_arg_keyword.c
macro_arg_slocentry_merge.c
macro_arg_slocentry_merge.h
macro_backslash.c
macro_disable.c
macro_expand.c Fixed preprocessed output of the first token for pragmas. 2016-02-09 08:51:26 +00:00
macro_expand_empty.c
macro_expandloc.c
macro_fn.c
macro_fn_comma_swallow.c
macro_fn_comma_swallow2.c
macro_fn_disable_expand.c
macro_fn_lparen_scan.c
macro_fn_lparen_scan2.c
macro_fn_placemarker.c
macro_fn_preexpand.c
macro_fn_varargs_iso.c
macro_fn_varargs_named.c Fixed tests where grep was not matching the linefeed 2019-05-10 20:11:36 +00:00
macro_misc.c
macro_not_define.c Fixed tests where grep was not matching the linefeed 2019-05-10 20:11:36 +00:00
macro_paste_bad.c
macro_paste_bcpl_comment.c
macro_paste_c_block_comment.c
macro_paste_commaext.c Fix typos in clang 2018-04-06 15:14:32 +00:00
macro_paste_empty.c
macro_paste_hard.c
macro_paste_hashhash.c
macro_paste_identifier_error.c
macro_paste_msextensions.c Emit a -Wmicrosoft warning when pasting /##/ into a comment token in MS mode. 2015-12-29 23:06:17 +00:00
macro_paste_none.c
macro_paste_simple.c
macro_paste_spacing.c
macro_paste_spacing2.c
macro_raw_string.cpp Stringizing raw string literals containing newline 2017-12-06 17:00:53 +00:00
macro_redefined.c
macro_rescan.c
macro_rescan2.c
macro_rescan_varargs.c
macro_rparen_scan.c Fixed tests where grep was not matching the linefeed 2019-05-10 20:11:36 +00:00
macro_rparen_scan2.c
macro_space.c
macro_undef.c
macro_vaopt_check.cpp [c++2a] Implement P0306 __VA_OPT__ (Comma omission and comma deletion) 2017-10-15 01:26:26 +00:00
macro_vaopt_expand.cpp [c++20] Implement tweaked __VA_OPT__ rules from P1042R1: 2019-05-04 06:46:18 +00:00
macro_vaopt_p1042r1.cpp [c++20] Implement tweaked __VA_OPT__ rules from P1042R1: 2019-05-04 06:46:18 +00:00
macro_variadic.cl [OpenCL] Allow variadic macros as Clang feature. 2019-03-26 11:22:37 +00:00
macro_with_initializer_list.cpp
mi_opt.c
mi_opt.h
mi_opt2.c
mi_opt2.h
microsoft-ext.c [ms] Fix Microsoft compatibility handling of commas in nested macro expansions. 2019-11-04 12:49:19 -05:00
microsoft-header-search.c
microsoft-import.c
missing-include-range-check.h Include full filename range for missing includes 2016-10-25 10:13:10 +00:00
missing-system-header.c
missing-system-header.h
mmx.c
non_fragile_feature.m
non_fragile_feature1.m
nonportable-include-with-hmap.c Fix up a test updated in r371655 - require case-insensitive file system. 2019-09-11 21:19:27 +00:00
objc-pp.m
openmp-macro-expansion.c
optimize.c
output_paste_avoid.cpp
overflow.c
pic.c Restructure the propagation of -fPIC/-fPIE. 2016-06-23 15:07:32 +00:00
pp-modules.c Add pragma to perform module import and use it in -E output. 2017-04-29 00:34:47 +00:00
pp-modules.h
pp-record.c
pp-record.h
pr2086.c
pr2086.h
pr13851.c
pr19649-signed-wchar_t.c
pr19649-unsigned-wchar_t.c Driver: hoist the `wchar_t` handling to the driver 2017-10-06 23:09:55 +00:00
pragma-captured.c
pragma-comment-linux.c Support `#pragma comment(lib, "name")` in the frontend for ELF 2018-02-07 01:46:46 +00:00
pragma-pushpop-macro.c
pragma.c Fix combining pragma __debug dump & parser_crash with -E 2018-11-15 03:04:21 +00:00
pragma_assume_nonnull.c [Preprocessor] Preserve #pragma clang assume_nonnull in preprocessed output 2017-09-27 23:29:37 +00:00
pragma_diagnostic.c Fix tests after r363749 2019-06-18 23:40:17 +00:00
pragma_diagnostic_output.c
pragma_diagnostic_sections.cpp [Diagnostic][test] Remove an unneeded change to pragma_diagnostic_sections.cpp after D70638 2019-12-03 16:43:35 -08:00
pragma_microsoft.c Fix for expanding __pragmas in macro arguments 2019-10-07 19:41:53 +00:00
pragma_microsoft.cpp
pragma_module.c [test] Use %clang_cc1 instead of %clang -cc1 2019-09-27 05:37:06 +00:00
pragma_poison.c
pragma_ps4.c
pragma_sysheader.c
pragma_sysheader.h
pragma_unknown.c Preserve unknown STDC pragma through preprocessor 2018-01-05 22:45:03 +00:00
predefined-arch-macros.c [X86] Add 'fxsr' feature to -march=pentium2 to match X86.td and gcc. 2019-11-06 10:27:53 -08:00
predefined-exceptions.m
predefined-macros.c [OpenCL] Rename lang mode flag for C++ mode 2019-07-25 11:04:29 +00:00
predefined-nullability.c
predefined-win-macros.c Bug 43965 - Value of _MSVC_LANG doesn't match MSVC++ VS2019 /std:c++latest mode 2019-12-04 14:39:41 -08:00
print-assembler.s Don't print end-of-directive tokens in -E output 2017-10-16 23:07:15 +00:00
print-pragma-microsoft.c
print_line_count.c
print_line_empty_file.c
print_line_include.c
print_line_include.h
print_line_track.c
pushable-diagnostics.c Fix tests after r363749 2019-06-18 23:40:17 +00:00
riscv-cmodel.c [RISCV] Add option aliases: -mcmodel=medany and -mcmodel=medlow 2019-09-17 08:19:17 +00:00
riscv-target-features.c Revert "[RISCV] Add Clang frontend support for Bitmanip extension" 2020-01-15 10:43:42 +00:00
skipping_unclean.c
stdint.c AArch64: add arm64_32 support to Clang. 2019-11-12 12:45:18 +00:00
stringize_misc.c Diagnose missing macro argument following charize operator. 2016-04-01 19:02:20 +00:00
stringize_skipped.c [Preprocessor] Always discard body of #define if we failed to parse it 2019-08-01 09:10:37 +00:00
stringize_space.c Fix whitespace before token-paste of an argument. 2017-05-04 21:31:17 +00:00
sycl-macro.cpp [SYCL] Add clang front-end option to enable SYCL device compilation flow. 2019-02-25 11:48:48 +00:00
sysroot-prefix.c Fix sysroot-prefix.c on Windows (/ vs \). 2016-05-06 21:17:32 +00:00
traditional-cpp.c
ucn-allowed-chars.c
ucn-pp-identifier.c [Lexer] Allow UCN for dollar symbol '\u0024' in identifiers when using -fdollars-in-identifiers flag. 2020-01-15 11:28:57 +00:00
undef-error.c
unterminated.c
user_defined_system_framework.c
utf8-allowed-chars.c
warn-disabled-macro-expansion.c
warn-macro-unused.c
warn-macro-unused.h
warning_tests.c Consolidate and improve the handling of built-in feature-like macros 2016-04-05 08:36:47 +00:00
wasm-target-features.c [WebAssembly] Update bleeding-edge CPU features 2020-01-24 14:27:35 -08:00
wchar_t.c Clang :: Sema/wchar.c has long been failing on Solaris: 2019-06-17 20:21:25 +00:00
woa-defaults.c Basic: correct `__WINT_TYPE__` on Windows 2018-09-19 16:18:55 +00:00
woa-wchar_t.c
x86_asm_flag_output.c [X86] Add clang support for X86 flag output parameters. 2019-02-14 19:27:25 +00:00
x86_seg_fs_gs.c Support __seg_fs and __seg_gs on x86 2019-07-14 18:33:51 +00:00
x86_target_features.c [X86] Add 'mmx' to all CPUs that have a version of 'sse' and weren't already enabling '3dnow' 2019-11-06 10:02:40 -08:00