mirror-llvm-project/clang/test/Preprocessor
Zeyi Xu 037a0f40a8
[RISCV][MC] Add experimental Smcsps and Sscsps support (#211712)
Add experimental v0.19 support for the `Smcsps` and `Sscsps` conditional
stack pointer swap extensions.
2026-08-01 11:05:22 +08:00
..
Inputs [Clang] Support includes translated to module imports in -header-include-filtering=direct-per-file (#156756) 2025-09-24 09:31:42 -07:00
_Pragma-dependency.c
_Pragma-dependency2.c
_Pragma-in-include.c [clang][lex] Fix lexing malformed pragma within include directive (#138165) 2025-05-05 07:29:41 -04:00
_Pragma-in-macro-arg.c
_Pragma-in-macro-arg.cpp
_Pragma-location.c
_Pragma-newline.c
_Pragma-physloc.c
_Pragma.c
aarch64-target-features.c [AArch64][COFF] Branch-protection=standard/pac-ret means "b-key" on Windows (#203989) 2026-07-17 00:04:26 +03:00
aarch64_asm_flag_output.c
aix-vec_extabi.c
alloc_token.cpp [Clang] Wire up -fsanitize=alloc-token (#156839) 2025-10-08 20:59:24 +02:00
amdgpu-subarch-cc1-target-cpu.cl clang/AMDGPU: Fix handling of subarch triples with no -mcpu (#211467) 2026-07-23 13:39:16 +02:00
annotate_in_macro_arg.c Revert "Reapply [Clang] Implement P2843R3 - Preprocessing is never undefined" (#198641) 2026-05-19 18:14:53 -05:00
arm-acle-6.4.c [Clang][ARM] Fix __ARM_FEATURE_LDREX on Armv8-M (#149538) 2025-07-22 08:53:45 +01:00
arm-acle-6.5.c
arm-pic-predefines.c
arm-target-features.c [ARM][AArch64] Introduce the Armv9.7-A architecture version (#163154) 2025-10-23 23:12:58 +01:00
arm64_32.c
arm64e.c [clang] Define __PTRAUTH_INTRINSICS__ for arm64e-apple-* targets (#172944) 2026-02-25 01:58:56 -08:00
assembler-with-cpp.c
avr-atmega328p.c
avr-attiny104.c
avr-builtins.c [clang][AVR] Add basic AVR builtin functions (#203214) 2026-06-16 21:40:23 +02:00
avr-common.c
bigoutput.c
bpf-predefined-macros.c [BPF] Support Stack Arguments (#189060) 2026-05-09 13:44:32 +01:00
builtin_aux_info.cpp clang/AMDGPU: Rename amdgcn triples to amdgpu in cc1 tests (14) (#212053) 2026-07-27 10:45:30 +02:00
builtin_line.c
c2x.c
c2y.c
c17.c
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
cl-pathmap.c [clang][test] Fix cl-pathmap.c test failure on mac (#203043) 2026-06-10 10:47:13 -07:00
clang_headers.c
comment_save.c
comment_save_if.c
comment_save_macro.c
constants.c Reject invalid integer constants in unevaluated preprocessor operands (#134884) 2025-04-08 14:25:59 -04:00
csky-target-features.c
cuda-approx-transcendentals.cu
cuda-preprocess.cu
cuda-types.cu
cxx_and.cpp
cxx_bitand.cpp
cxx_bitor.cpp
cxx_compl.cpp
cxx_not.cpp
cxx_not_eq.cpp
cxx_oper_comma.cpp [clang][test] Add test for comma operator rejection in preprocessor conditionals (#155570) 2025-10-23 12:41:48 -04:00
cxx_oper_keyword.cpp
cxx_oper_keyword_ms_compat.cpp
cxx_oper_spelling.cpp
cxx_or.cpp
cxx_true.cpp
cxx_xor.cpp
darwin-predefines.c
defer-ts.c [Clang] Add support for the C _Defer TS (#162848) 2025-12-11 05:54:09 +01:00
dependencies-and-pp.c
deprecate-threads-macro-definition-msvc1939.c
directive-invalid.c
directives_asm.S
disabled-cond-diags.c
disabled-cond-diags2.c
dump-macros-spacing.c
dump-macros-undef.c
dump-options.c
dump-tokens.cpp [clang] Make -dump-tokens option align tokens (#164894) 2026-04-03 08:33:36 -04:00
dump_import.h
dump_import.m
dump_include.c
dump_include.h
dump_macros.c
dumptokens_phyloc.c
elfiamcu-predefines.c
elifdef.c
embed-reject-device-files-lin.c [clang] Reject character devices in #embed for now (#135370) 2025-04-15 09:43:01 +02:00
embed-reject-device-files-win.c [clang] Reject character devices in #embed for now (#135370) 2025-04-15 09:43:01 +02:00
embed___has_embed.c [clang] Clear NeedsCleaning flag after ExpandBuiltinMacro (#133574) 2025-04-15 21:13:56 +02:00
embed___has_embed_parsing_errors.c [clang] avoid reentering header-name lexing on nested macro expansion (#179151) 2026-02-13 18:58:50 +02:00
embed___has_embed_supported.c
embed_art.c
embed_codegen.cpp
embed_constexpr.c [clang][bytecode] Fix initializing float elements from #embed (#154285) 2025-08-19 11:04:21 +02:00
embed_constexpr.cpp
embed_dependencies.c [clang] Fix dependency output for #embed (#178001) 2026-02-02 11:00:46 +01:00
embed_empty_file.c [Clang] prevent assertion on empty filename in #embed directive (#163072) 2025-10-13 15:53:25 +03:00
embed_ext_compat_diags.c
embed_feature_test.cpp
embed_file_not_found_chevron.c
embed_file_not_found_quote.c
embed_init.c
embed_parameter_if_empty.c
embed_parameter_limit.c
embed_parameter_offset.c
embed_parameter_prefix.c
embed_parameter_suffix.c
embed_parameter_unrecognized.c [C23] Fix failed assertions with invalid #embed parameters (#135368) 2025-04-11 10:44:37 -04:00
embed_parsing_errors.c [Clang] Fixed a crash when parsing #embed parameters with unmatched closing brackets (#152877) 2025-08-11 17:08:10 +03:00
embed_path_chevron.c
embed_path_quote.c
embed_preprocess_to_file.c
embed_search_paths.c
embed_single_entity.c
embed_weird.cpp [clang] Implement StmtPrinter for EmbedExpr (#135957) 2025-04-17 15:15:07 +02:00
embed_zos.c [clang] Remove shell requirements from tests 2025-09-11 17:51:47 -07:00
empty_file_to_include.h
empty_va_arg.cpp
expr_comma.c
expr_define_expansion.c Revert "Reapply [Clang] Implement P2843R3 - Preprocessing is never undefined" (#198641) 2026-05-19 18:14:53 -05:00
expr_invalid_tok.c
expr_liveness.c
expr_multichar.c
expr_usual_conversions.c
ext-pp-directive.c
extension-warning.c
feature_tests.c
feature_tests.cpp
file_name_macro.c
file_test.c [Tests] Add system-cygwin feature, and use it. (#152611) 2025-08-08 13:29:00 -07:00
file_test_windows.c [clang][test] Fix test failures when LLVM_WINDOWS_PREFER_FORWARD_SLASH is ON (#193156) 2026-04-28 12:46:40 +02:00
file_to_include.h
first-line-indent.c
fixed-point.c
flt_eval_macro.cpp
function_macro_file.c
function_macro_file.h
GH101342.c [Clang] Detects invalid unicode characters in token formed by ## (#208757) 2026-07-13 16:03:09 +00:00
hardlink-include-names.c [clang] Fix incorrect filenames for hardlinks (#189475) 2026-06-23 12:08:43 -07:00
hardware_interference.cpp
has_attribute.c [clang] Clear NeedsCleaning flag after ExpandBuiltinMacro (#133574) 2025-04-15 21:13:56 +02:00
has_attribute.cpp [clang] Clear NeedsCleaning flag after ExpandBuiltinMacro (#133574) 2025-04-15 21:13:56 +02:00
has_attribute_errors.cpp [Clang] prevent preprocessor crash on incomplete scoped __has_cpp_attribute arguments (#178273) 2026-01-28 15:44:48 +02:00
has_builtin_cpuid.c
has_c_attribute.c [clang] Clear NeedsCleaning flag after ExpandBuiltinMacro (#133574) 2025-04-15 21:13:56 +02:00
has_c_attribute.cpp
has_c_attribute_errors.c [Clang] prevent preprocessor crash on incomplete scoped __has_cpp_attribute arguments (#178273) 2026-01-28 15:44:48 +02:00
has_include.c [clang] avoid reentering header-name lexing on nested macro expansion (#179151) 2026-02-13 18:58:50 +02:00
hash_builtin.cpp clang/AMDGPU: Migrate cc1 tests to subarch triples (1) (#211822) 2026-07-24 15:41:17 +00:00
hash_line.c
hash_space.c
header-search-crash.c
header-shadowing.c [clang] Support header shadowing diagnostics in Clang header search (#162491) 2025-12-03 14:08:20 +08:00
header_is_main_file.c
header_lookup1.c
headermap-rel.c
headermap-rel2.c
hexagon-predefines.c [Clang][Hexagon] Predefine _GNU_SOURCE for C++ compilations (#201599) 2026-06-19 09:16:14 -05:00
hip-host-cpu-macros.cu
if_warning.c
ifdef-recover.c
ignore-pragmas.c
import_self.c
include-cycle.c
include-directive1.c
include-directive2.c
include-directive3.c
include-header-file-and-dir.c
include-header-missing-in-framework-with-headermap.c
include-header-missing-in-framework.c
include-in-module-purview.cppm
include-leading-nonalpha-no-suggest.c
include-likely-typo.c
include-macros.c
include-next.c
include-nonalpha-no-crash.c
indent_macro.c
init-aarch64.c [clang] Use a 128-byte destructive interference size on Apple AArch64 (#208716) 2026-07-10 15:37:23 -04:00
init-arm.c
init-csky.c
init-datetime-macros-nowarns.c [clang-cl] Add cl compiler build deterministic options for compatibility. (#194779) 2026-06-17 14:06:34 -07:00
init-datetime-macros-warns.c [clang-cl] Add cl compiler build deterministic options for compatibility. (#194779) 2026-06-17 14:06:34 -07:00
init-datetime-macros.c [clang-cl][test] Use /Zs to avoid writing unnecessary output files (#204501) 2026-06-17 23:03:46 -05:00
init-fuchsia.c [clang][Fuchsia] Add __Fuchsia_Compiler_ABI__ predefine (#211744) 2026-07-24 12:04:35 -07:00
init-loongarch.c [clang][LoongArch] Add support for LoongArch32 (#172619) 2026-01-17 16:27:54 +08:00
init-mips.c [Mips] Fix mcpu flag with i6400/i6500 (#161330) 2025-10-13 18:04:43 +08:00
init-ppc.c
init-ppc64.c
init-riscv.c [Clang] Define __WCHAR_MIN__ and related macros (#208135) 2026-07-09 23:22:22 +08:00
init-s390x.c Enable fexec-charset option (#138895) 2026-07-02 13:38:50 -04:00
init-serenityos.c [clang] Add support for SerenityOS (#187941) 2026-04-14 10:04:24 -07:00
init-v7k-compat.c
init-ve.c
init-x86.c [Clang][Cygwin] Enable few conditions that are shared with MinGW (#149637) 2025-07-29 10:01:43 -07:00
init.c clang/AMDGPU: Rename amdgcn triples to amdgpu in cc1 tests (14) (#212053) 2026-07-27 10:45:30 +02:00
invalid-__has_warning1.c
invalid-__has_warning2.c
is_target.c
is_target_arm.c
is_target_arm64.c
is_target_environment_version.c
is_target_os_darwin.c
is_target_unknown.c
is_target_unknown_environment.c
is_target_variant.c
iwithprefix.c Update remaining tests for usage of CLANG_RESOURCE_DIR (#202475) 2026-06-13 17:55:59 -04:00
lang-std.cpp Reapply "[clang] Remove %T from tests (#151614)" 2025-08-02 20:08:53 +00:00
line-directive-output.c [Clang] Treat line directives as header names. (#211512) 2026-07-29 19:04:17 +02:00
line-directive-suppressed.c [clang][driver] Suppress gnu-line-marker when saving temps (#134621) 2025-06-10 11:54:50 -05:00
line-directive-system-headers.c
line-directive.c [Clang] Treat line directives as header names. (#211512) 2026-07-29 19:04:17 +02:00
llvm-rc.rc
llvm-windres.rc
macho-embedded-predefines.c
macro-multiline.c
macro-reserved-attrs-cxx11.cpp Revert "Reapply [Clang] Implement P2843R3 - Preprocessing is never undefined" (#198641) 2026-05-19 18:14:53 -05:00
macro-reserved-cxx11.cpp
macro-reserved-ms.c Revert "Reapply [Clang] Implement P2843R3 - Preprocessing is never undefined" (#198641) 2026-05-19 18:14:53 -05:00
macro-reserved.c Revert "Reapply [Clang] Implement P2843R3 - Preprocessing is never undefined" (#198641) 2026-05-19 18:14:53 -05:00
macro-reserved.cpp Revert "Reapply [Clang] Implement P2843R3 - Preprocessing is never undefined" (#198641) 2026-05-19 18:14:53 -05:00
macro_arg_directive.c Revert "Reapply [Clang] Implement P2843R3 - Preprocessing is never undefined" (#198641) 2026-05-19 18:14:53 -05: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
macro_expand_empty.c
macro_expandloc.c
macro_fn.c [clang] Suggest using __VA_OPT__(,) instead of GNU zero variadic macro argument (#188624) 2026-04-01 12:09:02 +00:00
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
macro_misc.c
macro_not_define.c
macro_paste_bad.c
macro_paste_bcpl_comment.c
macro_paste_c_block_comment.c
macro_paste_commaext.c
macro_paste_empty.c
macro_paste_hard.c
macro_paste_hashhash.c
macro_paste_identifier_error.c
macro_paste_identifier_ucn.c [Clang][Preprocessor] Expand UCNs in macro concatenation (#145351) 2025-06-25 00:56:01 +08:00
macro_paste_msextensions.c
macro_paste_none.c
macro_paste_simple.c
macro_paste_spacing.c
macro_paste_spacing2.c
macro_raw_string.cpp
macro_redefined.c
macro_redefined.S
macro_rescan.c
macro_rescan2.c
macro_rescan_varargs.c
macro_reserved.i [Clang] Do not warn for serialized builtin or command-line definitions (#137306) 2025-05-01 09:55:46 +02:00
macro_rparen_scan.c
macro_rparen_scan2.c
macro_space.c
macro_undef.c
macro_vaopt_check.cpp
macro_vaopt_expand.cpp
macro_vaopt_p1042r1.cpp
macro_variadic.cl
macro_with_initializer_list.cpp
mi_opt.c
mi_opt.h
mi_opt2.c
mi_opt2.h
microsoft-ext.c
microsoft-header-search-fail.c
microsoft-header-search.c
microsoft-import.c
minimize-whitespace-messages.c
minimize-whitespace.c
miopt-peek-restore-header-guard.cpp [clang][Lex] Preserve MultipleIncludeOpt state in Lexer::peekNextPPToken (#183425) 2026-03-04 15:11:33 +01:00
missing-include-range-check.h
missing-system-header.c
missing-system-header.h
mmx.c
multiple-inclusion-opt.cpp
multiple-inclusion-opt.h
no-fixed-point.c
non_fragile_feature.m
non_fragile_feature1.m
nonportable-include-with-hmap.c [clang] Remove shell requirements from tests 2025-09-11 17:51:47 -07:00
nonportable-trailing-whitespace-win.c [Clang] Add warning for non-portable include paths with trailing whitespace or dots (#190610) 2026-05-21 14:42:25 +02:00
nonportable-trailing-whitespace.c [Clang] Add warning for non-portable include paths with trailing whitespace or dots (#190610) 2026-05-21 14:42:25 +02:00
objc-pp.m
ohos.c
openacc.c [OpenACC] Update OpenACC macro, remove override macro 2025-07-17 09:12:36 -07:00
openmp-macro-expansion.c
optimize.c
output_paste_avoid.cpp
overflow.c
pfp-predefines.c [Clang] Add pointer field protection feature. 2026-02-19 15:19:35 -08:00
pic.c
pp-modules.c
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
pr133574.c [clang] Clear NeedsCleaning flag after ExpandBuiltinMacro (#133574) 2025-04-15 21:13:56 +02:00
pragma-captured.c
pragma-comment-elf.c
pragma-comment.c [PowerPC][AIX] Support #pragma comment copyright for AIX (#178184) 2026-06-19 06:13:33 +05:30
pragma-missing-string-token.c
pragma-pushpop-macro-diag.c [clang] Check empty macro name in #pragma push_macro("") or #pragma pop_macro("") (#149982) 2025-07-22 22:57:34 +08:00
pragma-pushpop-macro.c [clang] Check empty macro name in #pragma push_macro("") or #pragma pop_macro("") (#149982) 2025-07-22 22:57:34 +08:00
pragma.c
pragma_assume_nonnull.c
pragma_diagnostic.c
pragma_diagnostic_output.c
pragma_diagnostic_sections.cpp
pragma_microsoft.c
pragma_microsoft.cpp
pragma_module.c Line and digit directives, OriginalFileName, ModuleName should be unevaluated strings (#201413) 2026-06-29 08:17:07 -04:00
pragma_poison.c
pragma_set_pp_state.cpp [Clang] Support libstdc++ workarounds when using -E (#210802) 2026-07-30 18:09:08 +02:00
pragma_sysheader.c
pragma_unknown.c
predefined-arch-macros-x86.c [X86][AVX10] Remove EVEX512 and AVX10-256 implementations (#157034) 2025-09-05 14:08:59 +00:00
predefined-arch-macros.c [X86] Remove AMX-TF32 (#207673) 2026-07-07 13:13:27 +05:30
predefined-exceptions.m
predefined-macros-hlsl.hlsl [HLSL] Add NativeInt16Type langopt to control whether short type is supported. Enabled by default for all but HLSL. (#165584) 2025-10-31 09:49:32 -07:00
predefined-macros-no-warnings.c clang/AMDGPU: Rename amdgcn triples to amdgpu in cc1 tests (14) (#212053) 2026-07-27 10:45:30 +02:00
predefined-macros.c clang/AMDGPU: Rename amdgcn triples to amdgpu in cc1 tests (14) (#212053) 2026-07-27 10:45:30 +02:00
predefined-nullability.c
predefined-win-macros.c [clang] Predefine _MSVC_TRADITIONAL in MSVC compatibility mode (#184278) 2026-03-04 11:35:34 +01:00
preprocess-cpp-output.c [Preprocessor] Do not expand macros if the input is already preprocessed (#137665) 2025-07-29 08:49:36 +02:00
preprocess-pragma-cpp-output.c [Preprocessor] Do not expand macros if the input is already preprocessed (#137665) 2025-07-29 08:49:36 +02:00
print-assembler.s
print-header-crash.modulemap [Clang] Fix crash when building a module with CC_PRINT_HEADERS_FORMAT=json (#136227) 2025-04-22 10:27:07 -07:00
print-header-json.c [Clang] Fix brittle print-header-json.c test (#162484) 2025-10-08 16:16:29 +02:00
print-pragma-microsoft.c
print_empty_include.c
print_empty_include.h
print_line_count.c
print_line_empty_file.c
print_line_include.c
print_line_include.h
print_line_track.c Revert "[clang][SourceManager] Use getFileLoc when computing getPresumedLoc" (#168368) 2025-11-17 08:45:08 -05:00
ptrauth_extension.c [clang][PAC] ptrauth_qualifier and ptrauth_intrinsic should only be available on Darwin (#153912) 2025-08-18 20:29:26 +00:00
ptrauth_feature.c [clang][PAC][darwin] Set correct default ptrauth features for arm64e-darwin (#153722) 2025-08-19 17:31:14 -07:00
pushable-diagnostics.c
riscv-atomics.c [RISCV][LLVM] Enable atomics for 'Zalrsc' (#163672) 2025-10-21 09:33:19 -07:00
riscv-cf-protection-branch.c [Clang][RISCV] Add Zicfilp CFI unlabeled scheme preprocessor macros (#109600) 2025-05-19 18:39:31 +08:00
riscv-cf-protection-return.c
riscv-cmodel.c
riscv-intrinsic-exts.c [llvm][RISCV] Missing shorthand intrinsic macro (#195791) 2026-05-08 14:38:57 +08:00
riscv-target-features-andes.c [RISCV] Add MC layer support for Andes XAndesVSIntH extension. (#159514) 2025-09-23 06:03:30 +00:00
riscv-target-features-cv.c [RISCV] Add pre-defined macro test for XCVmem. NFC. 2025-07-28 13:08:07 +08:00
riscv-target-features-sifive.c [RISCV][MC] Introduce XSfvfexp* and XSfvfbfexpa* extensions and their MC supports (#164349) 2025-10-21 18:27:21 -07:00
riscv-target-features-thead.c [RISCV] Split the pre-defined macro tests for xthead* extensions to riscv-target-features-thead.c. NFC. 2025-07-28 13:08:07 +08:00
riscv-target-features.c [RISCV][MC] Add experimental Smcsps and Sscsps support (#211712) 2026-08-01 11:05:22 +08:00
sanitizer-predefines.c [Frontend] Define __SANITIZE__ macros for kernel address variants (#156543) 2025-09-08 11:33:57 -07:00
search-path-usage.m
single_byte.txt
skip-empty-lines.c
skipping_unclean.c
SOURCE_DATE_EPOCH.c
static_assert-already-defined.c
stdc-ms-extension.cpp
stdint.c [Clang] Define __WCHAR_MIN__ and related macros (#208135) 2026-07-09 23:22:22 +08:00
stringize_misc.c
stringize_skipped.c
stringize_space.c
suggest-typoed-directive.c
suggest-typoed-directive.S
sycl-macro.cpp
sysroot-prefix.c
systemz_asm_flag_output.c Add support for flag output operand "=@cc" for SystemZ. (#125970) 2025-10-14 11:53:42 +02:00
time64.c
traditional-cpp.c
ucn-allowed-chars.c [Clang] Yet more consistent Unicode diagnostics (#211002) 2026-07-21 17:22:21 +02:00
ucn-pp-identifier.c [Clang] Yet more consistent Unicode diagnostics (#211002) 2026-07-21 17:22:21 +02:00
undef-error.c
undef-x86.c
unterminated.c
unwind-tables.c [clang] Make "__GCC_HAVE_DWARF2_CFI_ASM" a proper predefined macro (#165731) 2025-11-03 18:09:18 +00:00
user_defined_system_framework.c
utf8-allowed-chars.c [Clang] Yet more consistent Unicode diagnostics (#211002) 2026-07-21 17:22:21 +02:00
warn-disabled-macro-expansion.c
warn-macro-undef-true.c Revert "Reapply [Clang] Implement P2843R3 - Preprocessing is never undefined" (#198641) 2026-05-19 18:14:53 -05:00
warn-macro-undef.c
warn-macro-unused.c
warn-macro-unused.h
warning_tests.c
wasm-target-features.c [WebAssembly] WASIP3 Library Call Thread Context Support (#175800) 2026-05-26 22:46:13 +00:00
wchar_t.c
Weverything_pragma.c
whitespace-ms-extensions.c
woa-defaults.c
woa-wchar_t.c
x86_amx_target_features.c
x86_asm_flag_output.c
x86_seg_fs_gs.c
x86_target_features.c [clang] Add -mavx512bmm flag (#208520) 2026-07-10 11:08:02 +08:00
zos-target.c [z/OS][Clang] Raise minimum supported z/OS target level to 3.1 (#203580) 2026-06-15 11:42:55 -04:00