From cf222ec146ba8654fe66316f29b8b6f3badf7f7d Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Tue, 19 Aug 2025 18:25:13 +0100 Subject: [PATCH 1/5] [clang][test][DebugInfo] Move debug-info tests from CodeGen to DebugInfo directory (#154311) This patch works towards consolidating all Clang debug-info into the `clang/test/DebugInfo` directory (https://discourse.llvm.org/t/clang-test-location-of-clang-debug-info-tests/87958). Here we move only the `clang/test/CodeGen` tests. The list of files i came up with is: 1. searched for anything with `*debug-info*` in the filename 2. searched for occurrences of `debug-info-kind` in the tests I created a couple of subdirectories in `clang/test/DebugInfo` where I thought it made sense (mostly when the tests were target-specific). There's a couple of tests in `clang/test/CodeGen` that still set `-debug-info-kind`. They probably don't need to do that, but I'm not changing that as part of this PR. (cherry picked from commit 3f3bc4853ef452bcd6490fdb6b837b6fa739e0bb) --- .../AArch64/sve-vector-types.c} | 0 .../AArch64/sve-vectorx2-types.c} | 0 .../AArch64/sve-vectorx3-types.c} | 0 .../AArch64/sve-vectorx4-types.c} | 0 .../debug-types.c => DebugInfo/AArch64/types.c} | 0 .../AssignmentTracking}/assignment-tracking.cpp | 0 .../AssignmentTracking}/flag.cpp | 0 .../AssignmentTracking}/memcpy-fragment.cpp | 0 .../AssignmentTracking}/nested-scope.cpp | 0 .../{CodeGen => DebugInfo/BPF}/attr-btf_tag-typedef.c | 0 .../BPF}/attr-btf_type_tag-func.c | 0 .../BPF}/bpf-attr-type-tag-atomic.c | 0 .../BPF}/bpf-debug-info-extern-func.c | 0 .../BPF}/builtin-preserve-access-index-nonptr.c | 0 .../BPF}/builtins-bpf-preserve-field-info-1.c | 0 .../BPF}/builtins-bpf-preserve-field-info-2.c | 0 .../BPF}/builtins-bpf-preserve-field-info-3.c | 0 .../BPF}/builtins-bpf-preserve-field-info-4.c | 0 .../Generic}/2007-05-11-str-const.c | 0 .../{CodeGen => DebugInfo/Generic}/2009-03-13-dbg.c | 0 .../{CodeGen => DebugInfo/Generic}/2009-04-23-dbg.c | 0 .../Generic}/2009-07-31-DbgDeclare.c | 0 .../Generic}/2010-01-14-FnType-DebugInfo.c | 0 .../Generic}/2010-01-18-Inlined-Debug.c | 0 .../Generic}/2010-02-10-PointerName.c | 0 .../Generic}/2010-02-15-DbgStaticVar.c | 0 .../Generic}/2010-02-16-DbgScopes.c | 0 .../Generic}/2010-03-5-LexicalScope.c | 0 .../Generic}/2010-07-08-DeclDebugLineNo.c | 0 .../Generic}/2010-08-10-DbgConstant.c | 0 .../Generic/257-args.c} | 0 .../Generic}/Inputs/debug-info-embed-source.c | 0 .../Generic}/Inputs/debug-info-file-checksum-line.cpp | 0 .../Generic}/Inputs/debug-info-file-checksum-pre.cpp | 0 .../Generic}/Inputs/debug-info-file-checksum.c | 0 .../Generic}/Inputs/debug-info-macro.h | 0 .../Generic}/Inputs/debug-info-slash.cpp | 0 .../Generic}/Inputs/debug-info-slash.h | 0 clang/test/DebugInfo/Generic/Inputs/stdio.h | 9 +++++++++ .../Generic/abspath.c} | 10 +++++----- .../Generic/alias-pointer.c} | 0 .../debug-info-alias.c => DebugInfo/Generic/alias.c} | 0 .../Generic}/amdgpu-barrier-type-debug-info.c | 0 .../Generic}/amdgpu-buffer-rsrc-type-debug-info.c | 0 .../debug-info-args.c => DebugInfo/Generic/args.c} | 0 clang/test/{CodeGen => DebugInfo/Generic}/artificial.c | 0 .../debug-info-atomic.c => DebugInfo/Generic/atomic.c} | 0 .../Generic}/attr-btf_type_tag-func-ptr.c | 0 .../Generic}/attr-btf_type_tag-similar-type.c | 0 .../Generic}/attr-btf_type_tag-typedef-field.c | 0 .../Generic}/attr-btf_type_tag-var.c | 0 .../Generic}/attr-counted-by-debug-info.c | 0 .../test/{CodeGen => DebugInfo/Generic}/attr-nodebug.c | 0 .../{CodeGen => DebugInfo/Generic}/attr-nodebug2.c | 0 .../Generic/attributed-stmt.c} | 0 .../Generic/bitfield-0-struct.c} | 0 .../Generic/block-decl.c} | 0 .../Generic/block-expr.c} | 0 .../Generic/block-out-return.c} | 0 .../Generic/block-vars.c} | 0 .../debug-info-block.c => DebugInfo/Generic/block.c} | 0 .../Generic}/bounds-checking-debuginfo.c | 0 .../Generic}/bpf-debug-info-unref.c | 0 .../Generic}/builtin-preserve-access-index-array.c | 0 .../debug-info-cc.c => DebugInfo/Generic/cc.c} | 0 .../Generic}/cfi-check-fail-debuginfo.c | 0 .../Generic}/cfi-icall-generalize-debuginfo.c | 0 .../Generic}/cfi-icall-normalize2-debuginfo.c | 0 .../Generic/codeview-buildinfo.c} | 2 +- .../Generic/codeview-heapallocsite.c} | 0 .../Generic/codeview-unnamed.c} | 0 .../Generic/compilation-dir.c} | 6 +++--- .../debug-info-crash.c => DebugInfo/Generic/crash.c} | 0 .../{CodeGen => DebugInfo/Generic}/dbg-const-int128.c | 0 clang/test/{CodeGen => DebugInfo/Generic}/debug-info.c | 0 .../Generic}/debug-label-inline.c | 0 .../test/{CodeGen => DebugInfo/Generic}/debug-line-1.c | 0 .../{CodeGen => DebugInfo/Generic}/debug-prefix-map.c | 0 .../Generic}/debug-prefix-map.cpp | 0 .../Generic/embed-source.c} | 0 .../Generic/enum-case-val.c} | 0 .../Generic/enum-extensibility.c} | 0 .../debug-info-enum.c => DebugInfo/Generic/enum.c} | 0 .../debug-info-enum.cpp => DebugInfo/Generic/enum.cpp} | 0 clang/test/{CodeGen => DebugInfo/Generic}/enum2.c | 0 .../Generic/extern-basic.c} | 0 .../Generic/extern-basic.cpp} | 0 .../Generic/extern-call.c} | 0 .../Generic/extern-callback.c} | 0 .../Generic/extern-duplicate.c} | 0 .../Generic/extern-multi.c} | 0 .../Generic/extern-unused.c} | 0 .../Generic}/fake-use-return-line.c | 0 .../Generic/file-change.c} | 0 .../Generic/file-checksum.c} | 0 .../Generic/gline-tables-only.c} | 0 .../Generic/gline-tables-only2.c} | 0 .../Generic}/global-blocks-lines.c | 0 .../Generic/global-constant.c} | 0 .../Generic/imported-entity.cpp} | 2 +- .../Generic/inline-for.c} | 0 .../debug-label.c => DebugInfo/Generic/label.c} | 0 .../Generic}/lifetime-debuginfo-1.c | 0 .../Generic}/lifetime-debuginfo-2.c | 0 .../Generic/limited.c} | 0 .../debug-info-line.c => DebugInfo/Generic/line.c} | 0 .../debug-info-line2.c => DebugInfo/Generic/line2.c} | 0 .../debug-info-line3.c => DebugInfo/Generic/line3.c} | 0 .../debug-info-line4.c => DebugInfo/Generic/line4.c} | 0 .../{CodeGen => DebugInfo/Generic}/lineno-dbginfo.c | 0 .../Generic}/linetable-endscope.c | 0 .../debug-info-lto.c => DebugInfo/Generic/lto.c} | 0 .../debug-info-macro.c => DebugInfo/Generic/macro.c} | 2 +- .../Generic/matrix-types.c} | 0 .../debug-info-member.c => DebugInfo/Generic/member.c} | 0 .../Generic}/mips-debug-info-bitfield.c | 0 .../debug-info-names.c => DebugInfo/Generic/names.c} | 0 .../Generic/no-inline-line-tables.c} | 0 .../test/{CodeGen => DebugInfo/Generic}/nodebug-attr.c | 0 .../debug-nvptx.c => DebugInfo/Generic/nvptx.c} | 0 .../{CodeGen => DebugInfo/Generic}/openmp-prefix-map.c | 0 .../debug-info-oslog.c => DebugInfo/Generic/oslog.c} | 0 .../Generic}/overloadable-debug.c | 0 .../Generic/packed-struct.c} | 0 .../Generic}/pr52782-stdcall-func-decl.cpp | 0 .../Generic/preferred-type.cpp} | 0 .../Generic}/preferred_name-chain.cpp | 0 .../{CodeGen => DebugInfo/Generic}/preferred_name.cpp | 0 .../Generic/preprocessed-file.i} | 0 .../Generic/programming-language.c} | 0 .../Generic/pseudo-probe.cpp} | 0 .../{CodeGen => DebugInfo/Generic}/ptrauth-debuginfo.c | 0 .../Generic/ranges-base-address.c} | 0 .../Generic/same-line.c} | 0 .../Generic/scope-file.c} | 0 .../debug-info-scope.c => DebugInfo/Generic/scope.c} | 0 .../debug-info-slash.c => DebugInfo/Generic/slash.c} | 4 ++-- .../Generic/slash.test} | 0 .../Generic}/split-debug-filename.c | 0 .../Generic}/split-debug-inlining.c | 0 .../Generic}/split-debug-output.c | 0 .../Generic}/split-debug-single-file.c | 0 .../Generic/static-const-fp.c} | 0 .../debug-info-static.c => DebugInfo/Generic/static.c} | 0 .../Generic/switch-fallthrough.c} | 0 .../Generic/sysroot-sdk.c} | 0 .../Generic}/thinlto-split-dwarf.c | 0 .../Generic/typedef.c} | 0 .../Generic}/ubsan-debuglog-return.c | 0 .../Generic}/ubsan-function-debuginfo.c | 0 .../Generic}/ubsan-trap-debugloc.c | 0 .../Generic}/ubsan-trap-reason-add-overflow.c | 0 .../Generic}/ubsan-trap-reason-alignment-assumption.c | 0 .../Generic}/ubsan-trap-reason-builtin-unreachable.c | 0 .../Generic}/ubsan-trap-reason-cfi-check-fail.c | 0 .../Generic}/ubsan-trap-reason-crash.cpp | 0 .../Generic}/ubsan-trap-reason-div-rem-overflow.c | 0 .../ubsan-trap-reason-dynamic-type-cache-miss.cpp | 0 .../Generic}/ubsan-trap-reason-flag.c | 0 .../Generic}/ubsan-trap-reason-float-cast-overflow.c | 0 .../ubsan-trap-reason-function-type-mismatch.c | 0 .../Generic}/ubsan-trap-reason-implicit-conversion.c | 0 .../Generic}/ubsan-trap-reason-invalid-builtin.c | 0 .../Generic}/ubsan-trap-reason-invalid-objc-cast.m | 0 .../Generic}/ubsan-trap-reason-load-invalid-value.c | 0 .../Generic}/ubsan-trap-reason-missing-return.cpp | 0 .../Generic}/ubsan-trap-reason-mul-overflow.c | 0 .../Generic}/ubsan-trap-reason-negate-overflow.c | 0 .../Generic}/ubsan-trap-reason-nonnull-arg.c | 0 .../Generic}/ubsan-trap-reason-nonnull-return.c | 0 .../Generic}/ubsan-trap-reason-nullability-arg.c | 0 .../Generic}/ubsan-trap-reason-nullability-return.c | 0 .../Generic}/ubsan-trap-reason-out-of-bounds.c | 0 .../Generic}/ubsan-trap-reason-pointer-overflow.c | 0 .../Generic}/ubsan-trap-reason-shift-out-of-bounds.c | 0 .../Generic}/ubsan-trap-reason-sub-overflow.c | 0 .../Generic}/ubsan-trap-reason-type-mismatch.c | 0 .../ubsan-trap-reason-vla-bound-not-positive.c | 0 .../Generic}/unique-internal-linkage-names-dwarf.c | 0 .../Generic}/unique-internal-linkage-names-dwarf.cpp | 0 .../Generic}/unsigned-promotion-debuginfo.c | 0 .../Generic/unused-types.c} | 0 .../Generic/unused-types.cpp} | 0 .../Generic}/unused_nested_enump.cpp | 0 .../Generic/variables.c} | 0 .../Generic/vector-bool.c} | 0 .../debug-info-vector.c => DebugInfo/Generic/vector.c} | 0 .../Generic/version-coff.c} | 0 .../Generic/version.c} | 0 .../debug-info-vla.c => DebugInfo/Generic/vla.c} | 0 .../{CodeGen => DebugInfo}/RISCV/riscv-v-debuginfo.c | 0 191 files changed, 22 insertions(+), 13 deletions(-) rename clang/test/{CodeGen/AArch64/debug-sve-vector-types.c => DebugInfo/AArch64/sve-vector-types.c} (100%) rename clang/test/{CodeGen/AArch64/debug-sve-vectorx2-types.c => DebugInfo/AArch64/sve-vectorx2-types.c} (100%) rename clang/test/{CodeGen/AArch64/debug-sve-vectorx3-types.c => DebugInfo/AArch64/sve-vectorx3-types.c} (100%) rename clang/test/{CodeGen/AArch64/debug-sve-vectorx4-types.c => DebugInfo/AArch64/sve-vectorx4-types.c} (100%) rename clang/test/{CodeGen/AArch64/debug-types.c => DebugInfo/AArch64/types.c} (100%) rename clang/test/{CodeGen/assignment-tracking => DebugInfo/AssignmentTracking}/assignment-tracking.cpp (100%) rename clang/test/{CodeGen/assignment-tracking => DebugInfo/AssignmentTracking}/flag.cpp (100%) rename clang/test/{CodeGen/assignment-tracking => DebugInfo/AssignmentTracking}/memcpy-fragment.cpp (100%) rename clang/test/{CodeGen/assignment-tracking => DebugInfo/AssignmentTracking}/nested-scope.cpp (100%) rename clang/test/{CodeGen => DebugInfo/BPF}/attr-btf_tag-typedef.c (100%) rename clang/test/{CodeGen => DebugInfo/BPF}/attr-btf_type_tag-func.c (100%) rename clang/test/{CodeGen => DebugInfo/BPF}/bpf-attr-type-tag-atomic.c (100%) rename clang/test/{CodeGen => DebugInfo/BPF}/bpf-debug-info-extern-func.c (100%) rename clang/test/{CodeGen => DebugInfo/BPF}/builtin-preserve-access-index-nonptr.c (100%) rename clang/test/{CodeGen => DebugInfo/BPF}/builtins-bpf-preserve-field-info-1.c (100%) rename clang/test/{CodeGen => DebugInfo/BPF}/builtins-bpf-preserve-field-info-2.c (100%) rename clang/test/{CodeGen => DebugInfo/BPF}/builtins-bpf-preserve-field-info-3.c (100%) rename clang/test/{CodeGen => DebugInfo/BPF}/builtins-bpf-preserve-field-info-4.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/2007-05-11-str-const.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/2009-03-13-dbg.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/2009-04-23-dbg.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/2009-07-31-DbgDeclare.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/2010-01-14-FnType-DebugInfo.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/2010-01-18-Inlined-Debug.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/2010-02-10-PointerName.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/2010-02-15-DbgStaticVar.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/2010-02-16-DbgScopes.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/2010-03-5-LexicalScope.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/2010-07-08-DeclDebugLineNo.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/2010-08-10-DbgConstant.c (100%) rename clang/test/{CodeGen/debug-info-257-args.c => DebugInfo/Generic/257-args.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/Inputs/debug-info-embed-source.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/Inputs/debug-info-file-checksum-line.cpp (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/Inputs/debug-info-file-checksum-pre.cpp (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/Inputs/debug-info-file-checksum.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/Inputs/debug-info-macro.h (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/Inputs/debug-info-slash.cpp (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/Inputs/debug-info-slash.h (100%) create mode 100644 clang/test/DebugInfo/Generic/Inputs/stdio.h rename clang/test/{CodeGen/debug-info-abspath.c => DebugInfo/Generic/abspath.c} (70%) rename clang/test/{CodeGen/debug-info-alias-pointer.c => DebugInfo/Generic/alias-pointer.c} (100%) rename clang/test/{CodeGen/debug-info-alias.c => DebugInfo/Generic/alias.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/amdgpu-barrier-type-debug-info.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/amdgpu-buffer-rsrc-type-debug-info.c (100%) rename clang/test/{CodeGen/debug-info-args.c => DebugInfo/Generic/args.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/artificial.c (100%) rename clang/test/{CodeGen/debug-info-atomic.c => DebugInfo/Generic/atomic.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/attr-btf_type_tag-func-ptr.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/attr-btf_type_tag-similar-type.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/attr-btf_type_tag-typedef-field.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/attr-btf_type_tag-var.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/attr-counted-by-debug-info.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/attr-nodebug.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/attr-nodebug2.c (100%) rename clang/test/{CodeGen/debug-info-attributed-stmt.c => DebugInfo/Generic/attributed-stmt.c} (100%) rename clang/test/{CodeGen/debug-info-bitfield-0-struct.c => DebugInfo/Generic/bitfield-0-struct.c} (100%) rename clang/test/{CodeGen/debug-info-block-decl.c => DebugInfo/Generic/block-decl.c} (100%) rename clang/test/{CodeGen/debug-info-block-expr.c => DebugInfo/Generic/block-expr.c} (100%) rename clang/test/{CodeGen/debug-info-block-out-return.c => DebugInfo/Generic/block-out-return.c} (100%) rename clang/test/{CodeGen/debug-info-block-vars.c => DebugInfo/Generic/block-vars.c} (100%) rename clang/test/{CodeGen/debug-info-block.c => DebugInfo/Generic/block.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/bounds-checking-debuginfo.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/bpf-debug-info-unref.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/builtin-preserve-access-index-array.c (100%) rename clang/test/{CodeGen/debug-info-cc.c => DebugInfo/Generic/cc.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/cfi-check-fail-debuginfo.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/cfi-icall-generalize-debuginfo.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/cfi-icall-normalize2-debuginfo.c (100%) rename clang/test/{CodeGen/debug-info-codeview-buildinfo.c => DebugInfo/Generic/codeview-buildinfo.c} (97%) rename clang/test/{CodeGen/debug-info-codeview-heapallocsite.c => DebugInfo/Generic/codeview-heapallocsite.c} (100%) rename clang/test/{CodeGen/debug-info-codeview-unnamed.c => DebugInfo/Generic/codeview-unnamed.c} (100%) rename clang/test/{CodeGen/debug-info-compilation-dir.c => DebugInfo/Generic/compilation-dir.c} (79%) rename clang/test/{CodeGen/debug-info-crash.c => DebugInfo/Generic/crash.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/dbg-const-int128.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/debug-info.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/debug-label-inline.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/debug-line-1.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/debug-prefix-map.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/debug-prefix-map.cpp (100%) rename clang/test/{CodeGen/debug-info-embed-source.c => DebugInfo/Generic/embed-source.c} (100%) rename clang/test/{CodeGen/debug-info-enum-case-val.c => DebugInfo/Generic/enum-case-val.c} (100%) rename clang/test/{CodeGen/debug-info-enum-extensibility.c => DebugInfo/Generic/enum-extensibility.c} (100%) rename clang/test/{CodeGen/debug-info-enum.c => DebugInfo/Generic/enum.c} (100%) rename clang/test/{CodeGen/debug-info-enum.cpp => DebugInfo/Generic/enum.cpp} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/enum2.c (100%) rename clang/test/{CodeGen/debug-info-extern-basic.c => DebugInfo/Generic/extern-basic.c} (100%) rename clang/test/{CodeGen/debug-info-extern-basic.cpp => DebugInfo/Generic/extern-basic.cpp} (100%) rename clang/test/{CodeGen/debug-info-extern-call.c => DebugInfo/Generic/extern-call.c} (100%) rename clang/test/{CodeGen/debug-info-extern-callback.c => DebugInfo/Generic/extern-callback.c} (100%) rename clang/test/{CodeGen/debug-info-extern-duplicate.c => DebugInfo/Generic/extern-duplicate.c} (100%) rename clang/test/{CodeGen/debug-info-extern-multi.c => DebugInfo/Generic/extern-multi.c} (100%) rename clang/test/{CodeGen/debug-info-extern-unused.c => DebugInfo/Generic/extern-unused.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/fake-use-return-line.c (100%) rename clang/test/{CodeGen/debug-info-file-change.c => DebugInfo/Generic/file-change.c} (100%) rename clang/test/{CodeGen/debug-info-file-checksum.c => DebugInfo/Generic/file-checksum.c} (100%) rename clang/test/{CodeGen/debug-info-gline-tables-only.c => DebugInfo/Generic/gline-tables-only.c} (100%) rename clang/test/{CodeGen/debug-info-gline-tables-only2.c => DebugInfo/Generic/gline-tables-only2.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/global-blocks-lines.c (100%) rename clang/test/{CodeGen/debug-info-global-constant.c => DebugInfo/Generic/global-constant.c} (100%) rename clang/test/{CodeGen/debug-info-imported-entity.cpp => DebugInfo/Generic/imported-entity.cpp} (87%) rename clang/test/{CodeGen/debug-info-inline-for.c => DebugInfo/Generic/inline-for.c} (100%) rename clang/test/{CodeGen/debug-label.c => DebugInfo/Generic/label.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/lifetime-debuginfo-1.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/lifetime-debuginfo-2.c (100%) rename clang/test/{CodeGen/debug-info-limited.c => DebugInfo/Generic/limited.c} (100%) rename clang/test/{CodeGen/debug-info-line.c => DebugInfo/Generic/line.c} (100%) rename clang/test/{CodeGen/debug-info-line2.c => DebugInfo/Generic/line2.c} (100%) rename clang/test/{CodeGen/debug-info-line3.c => DebugInfo/Generic/line3.c} (100%) rename clang/test/{CodeGen/debug-info-line4.c => DebugInfo/Generic/line4.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/lineno-dbginfo.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/linetable-endscope.c (100%) rename clang/test/{CodeGen/debug-info-lto.c => DebugInfo/Generic/lto.c} (100%) rename clang/test/{CodeGen/debug-info-macro.c => DebugInfo/Generic/macro.c} (98%) rename clang/test/{CodeGen/debug-info-matrix-types.c => DebugInfo/Generic/matrix-types.c} (100%) rename clang/test/{CodeGen/debug-info-member.c => DebugInfo/Generic/member.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/mips-debug-info-bitfield.c (100%) rename clang/test/{CodeGen/debug-info-names.c => DebugInfo/Generic/names.c} (100%) rename clang/test/{CodeGen/debug-info-no-inline-line-tables.c => DebugInfo/Generic/no-inline-line-tables.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/nodebug-attr.c (100%) rename clang/test/{CodeGen/debug-nvptx.c => DebugInfo/Generic/nvptx.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/openmp-prefix-map.c (100%) rename clang/test/{CodeGen/debug-info-oslog.c => DebugInfo/Generic/oslog.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/overloadable-debug.c (100%) rename clang/test/{CodeGen/debug-info-packed-struct.c => DebugInfo/Generic/packed-struct.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/pr52782-stdcall-func-decl.cpp (100%) rename clang/test/{CodeGen/debug-info-preferred-type.cpp => DebugInfo/Generic/preferred-type.cpp} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/preferred_name-chain.cpp (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/preferred_name.cpp (100%) rename clang/test/{CodeGen/debug-info-preprocessed-file.i => DebugInfo/Generic/preprocessed-file.i} (100%) rename clang/test/{CodeGen/debug-info-programming-language.c => DebugInfo/Generic/programming-language.c} (100%) rename clang/test/{CodeGen/debug-info-pseudo-probe.cpp => DebugInfo/Generic/pseudo-probe.cpp} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ptrauth-debuginfo.c (100%) rename clang/test/{CodeGen/debug-info-ranges-base-address.c => DebugInfo/Generic/ranges-base-address.c} (100%) rename clang/test/{CodeGen/debug-info-same-line.c => DebugInfo/Generic/same-line.c} (100%) rename clang/test/{CodeGen/debug-info-scope-file.c => DebugInfo/Generic/scope-file.c} (100%) rename clang/test/{CodeGen/debug-info-scope.c => DebugInfo/Generic/scope.c} (100%) rename clang/test/{CodeGen/debug-info-slash.c => DebugInfo/Generic/slash.c} (70%) rename clang/test/{CodeGen/debug-info-slash.test => DebugInfo/Generic/slash.test} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/split-debug-filename.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/split-debug-inlining.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/split-debug-output.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/split-debug-single-file.c (100%) rename clang/test/{CodeGen/debug-info-static-const-fp.c => DebugInfo/Generic/static-const-fp.c} (100%) rename clang/test/{CodeGen/debug-info-static.c => DebugInfo/Generic/static.c} (100%) rename clang/test/{CodeGen/debug-info-switch-fallthrough.c => DebugInfo/Generic/switch-fallthrough.c} (100%) rename clang/test/{CodeGen/debug-info-sysroot-sdk.c => DebugInfo/Generic/sysroot-sdk.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/thinlto-split-dwarf.c (100%) rename clang/test/{CodeGen/debug-info-typedef.c => DebugInfo/Generic/typedef.c} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-debuglog-return.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-function-debuginfo.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-debugloc.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-add-overflow.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-alignment-assumption.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-builtin-unreachable.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-cfi-check-fail.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-crash.cpp (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-div-rem-overflow.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-dynamic-type-cache-miss.cpp (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-flag.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-float-cast-overflow.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-function-type-mismatch.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-implicit-conversion.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-invalid-builtin.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-invalid-objc-cast.m (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-load-invalid-value.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-missing-return.cpp (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-mul-overflow.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-negate-overflow.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-nonnull-arg.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-nonnull-return.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-nullability-arg.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-nullability-return.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-out-of-bounds.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-pointer-overflow.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-shift-out-of-bounds.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-sub-overflow.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-type-mismatch.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/ubsan-trap-reason-vla-bound-not-positive.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/unique-internal-linkage-names-dwarf.c (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/unique-internal-linkage-names-dwarf.cpp (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/unsigned-promotion-debuginfo.c (100%) rename clang/test/{CodeGen/debug-info-unused-types.c => DebugInfo/Generic/unused-types.c} (100%) rename clang/test/{CodeGen/debug-info-unused-types.cpp => DebugInfo/Generic/unused-types.cpp} (100%) rename clang/test/{CodeGen => DebugInfo/Generic}/unused_nested_enump.cpp (100%) rename clang/test/{CodeGen/debug-info-variables.c => DebugInfo/Generic/variables.c} (100%) rename clang/test/{CodeGen/debug-info-vector-bool.c => DebugInfo/Generic/vector-bool.c} (100%) rename clang/test/{CodeGen/debug-info-vector.c => DebugInfo/Generic/vector.c} (100%) rename clang/test/{CodeGen/debug-info-version-coff.c => DebugInfo/Generic/version-coff.c} (100%) rename clang/test/{CodeGen/debug-info-version.c => DebugInfo/Generic/version.c} (100%) rename clang/test/{CodeGen/debug-info-vla.c => DebugInfo/Generic/vla.c} (100%) rename clang/test/{CodeGen => DebugInfo}/RISCV/riscv-v-debuginfo.c (100%) diff --git a/clang/test/CodeGen/AArch64/debug-sve-vector-types.c b/clang/test/DebugInfo/AArch64/sve-vector-types.c similarity index 100% rename from clang/test/CodeGen/AArch64/debug-sve-vector-types.c rename to clang/test/DebugInfo/AArch64/sve-vector-types.c diff --git a/clang/test/CodeGen/AArch64/debug-sve-vectorx2-types.c b/clang/test/DebugInfo/AArch64/sve-vectorx2-types.c similarity index 100% rename from clang/test/CodeGen/AArch64/debug-sve-vectorx2-types.c rename to clang/test/DebugInfo/AArch64/sve-vectorx2-types.c diff --git a/clang/test/CodeGen/AArch64/debug-sve-vectorx3-types.c b/clang/test/DebugInfo/AArch64/sve-vectorx3-types.c similarity index 100% rename from clang/test/CodeGen/AArch64/debug-sve-vectorx3-types.c rename to clang/test/DebugInfo/AArch64/sve-vectorx3-types.c diff --git a/clang/test/CodeGen/AArch64/debug-sve-vectorx4-types.c b/clang/test/DebugInfo/AArch64/sve-vectorx4-types.c similarity index 100% rename from clang/test/CodeGen/AArch64/debug-sve-vectorx4-types.c rename to clang/test/DebugInfo/AArch64/sve-vectorx4-types.c diff --git a/clang/test/CodeGen/AArch64/debug-types.c b/clang/test/DebugInfo/AArch64/types.c similarity index 100% rename from clang/test/CodeGen/AArch64/debug-types.c rename to clang/test/DebugInfo/AArch64/types.c diff --git a/clang/test/CodeGen/assignment-tracking/assignment-tracking.cpp b/clang/test/DebugInfo/AssignmentTracking/assignment-tracking.cpp similarity index 100% rename from clang/test/CodeGen/assignment-tracking/assignment-tracking.cpp rename to clang/test/DebugInfo/AssignmentTracking/assignment-tracking.cpp diff --git a/clang/test/CodeGen/assignment-tracking/flag.cpp b/clang/test/DebugInfo/AssignmentTracking/flag.cpp similarity index 100% rename from clang/test/CodeGen/assignment-tracking/flag.cpp rename to clang/test/DebugInfo/AssignmentTracking/flag.cpp diff --git a/clang/test/CodeGen/assignment-tracking/memcpy-fragment.cpp b/clang/test/DebugInfo/AssignmentTracking/memcpy-fragment.cpp similarity index 100% rename from clang/test/CodeGen/assignment-tracking/memcpy-fragment.cpp rename to clang/test/DebugInfo/AssignmentTracking/memcpy-fragment.cpp diff --git a/clang/test/CodeGen/assignment-tracking/nested-scope.cpp b/clang/test/DebugInfo/AssignmentTracking/nested-scope.cpp similarity index 100% rename from clang/test/CodeGen/assignment-tracking/nested-scope.cpp rename to clang/test/DebugInfo/AssignmentTracking/nested-scope.cpp diff --git a/clang/test/CodeGen/attr-btf_tag-typedef.c b/clang/test/DebugInfo/BPF/attr-btf_tag-typedef.c similarity index 100% rename from clang/test/CodeGen/attr-btf_tag-typedef.c rename to clang/test/DebugInfo/BPF/attr-btf_tag-typedef.c diff --git a/clang/test/CodeGen/attr-btf_type_tag-func.c b/clang/test/DebugInfo/BPF/attr-btf_type_tag-func.c similarity index 100% rename from clang/test/CodeGen/attr-btf_type_tag-func.c rename to clang/test/DebugInfo/BPF/attr-btf_type_tag-func.c diff --git a/clang/test/CodeGen/bpf-attr-type-tag-atomic.c b/clang/test/DebugInfo/BPF/bpf-attr-type-tag-atomic.c similarity index 100% rename from clang/test/CodeGen/bpf-attr-type-tag-atomic.c rename to clang/test/DebugInfo/BPF/bpf-attr-type-tag-atomic.c diff --git a/clang/test/CodeGen/bpf-debug-info-extern-func.c b/clang/test/DebugInfo/BPF/bpf-debug-info-extern-func.c similarity index 100% rename from clang/test/CodeGen/bpf-debug-info-extern-func.c rename to clang/test/DebugInfo/BPF/bpf-debug-info-extern-func.c diff --git a/clang/test/CodeGen/builtin-preserve-access-index-nonptr.c b/clang/test/DebugInfo/BPF/builtin-preserve-access-index-nonptr.c similarity index 100% rename from clang/test/CodeGen/builtin-preserve-access-index-nonptr.c rename to clang/test/DebugInfo/BPF/builtin-preserve-access-index-nonptr.c diff --git a/clang/test/CodeGen/builtins-bpf-preserve-field-info-1.c b/clang/test/DebugInfo/BPF/builtins-bpf-preserve-field-info-1.c similarity index 100% rename from clang/test/CodeGen/builtins-bpf-preserve-field-info-1.c rename to clang/test/DebugInfo/BPF/builtins-bpf-preserve-field-info-1.c diff --git a/clang/test/CodeGen/builtins-bpf-preserve-field-info-2.c b/clang/test/DebugInfo/BPF/builtins-bpf-preserve-field-info-2.c similarity index 100% rename from clang/test/CodeGen/builtins-bpf-preserve-field-info-2.c rename to clang/test/DebugInfo/BPF/builtins-bpf-preserve-field-info-2.c diff --git a/clang/test/CodeGen/builtins-bpf-preserve-field-info-3.c b/clang/test/DebugInfo/BPF/builtins-bpf-preserve-field-info-3.c similarity index 100% rename from clang/test/CodeGen/builtins-bpf-preserve-field-info-3.c rename to clang/test/DebugInfo/BPF/builtins-bpf-preserve-field-info-3.c diff --git a/clang/test/CodeGen/builtins-bpf-preserve-field-info-4.c b/clang/test/DebugInfo/BPF/builtins-bpf-preserve-field-info-4.c similarity index 100% rename from clang/test/CodeGen/builtins-bpf-preserve-field-info-4.c rename to clang/test/DebugInfo/BPF/builtins-bpf-preserve-field-info-4.c diff --git a/clang/test/CodeGen/2007-05-11-str-const.c b/clang/test/DebugInfo/Generic/2007-05-11-str-const.c similarity index 100% rename from clang/test/CodeGen/2007-05-11-str-const.c rename to clang/test/DebugInfo/Generic/2007-05-11-str-const.c diff --git a/clang/test/CodeGen/2009-03-13-dbg.c b/clang/test/DebugInfo/Generic/2009-03-13-dbg.c similarity index 100% rename from clang/test/CodeGen/2009-03-13-dbg.c rename to clang/test/DebugInfo/Generic/2009-03-13-dbg.c diff --git a/clang/test/CodeGen/2009-04-23-dbg.c b/clang/test/DebugInfo/Generic/2009-04-23-dbg.c similarity index 100% rename from clang/test/CodeGen/2009-04-23-dbg.c rename to clang/test/DebugInfo/Generic/2009-04-23-dbg.c diff --git a/clang/test/CodeGen/2009-07-31-DbgDeclare.c b/clang/test/DebugInfo/Generic/2009-07-31-DbgDeclare.c similarity index 100% rename from clang/test/CodeGen/2009-07-31-DbgDeclare.c rename to clang/test/DebugInfo/Generic/2009-07-31-DbgDeclare.c diff --git a/clang/test/CodeGen/2010-01-14-FnType-DebugInfo.c b/clang/test/DebugInfo/Generic/2010-01-14-FnType-DebugInfo.c similarity index 100% rename from clang/test/CodeGen/2010-01-14-FnType-DebugInfo.c rename to clang/test/DebugInfo/Generic/2010-01-14-FnType-DebugInfo.c diff --git a/clang/test/CodeGen/2010-01-18-Inlined-Debug.c b/clang/test/DebugInfo/Generic/2010-01-18-Inlined-Debug.c similarity index 100% rename from clang/test/CodeGen/2010-01-18-Inlined-Debug.c rename to clang/test/DebugInfo/Generic/2010-01-18-Inlined-Debug.c diff --git a/clang/test/CodeGen/2010-02-10-PointerName.c b/clang/test/DebugInfo/Generic/2010-02-10-PointerName.c similarity index 100% rename from clang/test/CodeGen/2010-02-10-PointerName.c rename to clang/test/DebugInfo/Generic/2010-02-10-PointerName.c diff --git a/clang/test/CodeGen/2010-02-15-DbgStaticVar.c b/clang/test/DebugInfo/Generic/2010-02-15-DbgStaticVar.c similarity index 100% rename from clang/test/CodeGen/2010-02-15-DbgStaticVar.c rename to clang/test/DebugInfo/Generic/2010-02-15-DbgStaticVar.c diff --git a/clang/test/CodeGen/2010-02-16-DbgScopes.c b/clang/test/DebugInfo/Generic/2010-02-16-DbgScopes.c similarity index 100% rename from clang/test/CodeGen/2010-02-16-DbgScopes.c rename to clang/test/DebugInfo/Generic/2010-02-16-DbgScopes.c diff --git a/clang/test/CodeGen/2010-03-5-LexicalScope.c b/clang/test/DebugInfo/Generic/2010-03-5-LexicalScope.c similarity index 100% rename from clang/test/CodeGen/2010-03-5-LexicalScope.c rename to clang/test/DebugInfo/Generic/2010-03-5-LexicalScope.c diff --git a/clang/test/CodeGen/2010-07-08-DeclDebugLineNo.c b/clang/test/DebugInfo/Generic/2010-07-08-DeclDebugLineNo.c similarity index 100% rename from clang/test/CodeGen/2010-07-08-DeclDebugLineNo.c rename to clang/test/DebugInfo/Generic/2010-07-08-DeclDebugLineNo.c diff --git a/clang/test/CodeGen/2010-08-10-DbgConstant.c b/clang/test/DebugInfo/Generic/2010-08-10-DbgConstant.c similarity index 100% rename from clang/test/CodeGen/2010-08-10-DbgConstant.c rename to clang/test/DebugInfo/Generic/2010-08-10-DbgConstant.c diff --git a/clang/test/CodeGen/debug-info-257-args.c b/clang/test/DebugInfo/Generic/257-args.c similarity index 100% rename from clang/test/CodeGen/debug-info-257-args.c rename to clang/test/DebugInfo/Generic/257-args.c diff --git a/clang/test/CodeGen/Inputs/debug-info-embed-source.c b/clang/test/DebugInfo/Generic/Inputs/debug-info-embed-source.c similarity index 100% rename from clang/test/CodeGen/Inputs/debug-info-embed-source.c rename to clang/test/DebugInfo/Generic/Inputs/debug-info-embed-source.c diff --git a/clang/test/CodeGen/Inputs/debug-info-file-checksum-line.cpp b/clang/test/DebugInfo/Generic/Inputs/debug-info-file-checksum-line.cpp similarity index 100% rename from clang/test/CodeGen/Inputs/debug-info-file-checksum-line.cpp rename to clang/test/DebugInfo/Generic/Inputs/debug-info-file-checksum-line.cpp diff --git a/clang/test/CodeGen/Inputs/debug-info-file-checksum-pre.cpp b/clang/test/DebugInfo/Generic/Inputs/debug-info-file-checksum-pre.cpp similarity index 100% rename from clang/test/CodeGen/Inputs/debug-info-file-checksum-pre.cpp rename to clang/test/DebugInfo/Generic/Inputs/debug-info-file-checksum-pre.cpp diff --git a/clang/test/CodeGen/Inputs/debug-info-file-checksum.c b/clang/test/DebugInfo/Generic/Inputs/debug-info-file-checksum.c similarity index 100% rename from clang/test/CodeGen/Inputs/debug-info-file-checksum.c rename to clang/test/DebugInfo/Generic/Inputs/debug-info-file-checksum.c diff --git a/clang/test/CodeGen/Inputs/debug-info-macro.h b/clang/test/DebugInfo/Generic/Inputs/debug-info-macro.h similarity index 100% rename from clang/test/CodeGen/Inputs/debug-info-macro.h rename to clang/test/DebugInfo/Generic/Inputs/debug-info-macro.h diff --git a/clang/test/CodeGen/Inputs/debug-info-slash.cpp b/clang/test/DebugInfo/Generic/Inputs/debug-info-slash.cpp similarity index 100% rename from clang/test/CodeGen/Inputs/debug-info-slash.cpp rename to clang/test/DebugInfo/Generic/Inputs/debug-info-slash.cpp diff --git a/clang/test/CodeGen/Inputs/debug-info-slash.h b/clang/test/DebugInfo/Generic/Inputs/debug-info-slash.h similarity index 100% rename from clang/test/CodeGen/Inputs/debug-info-slash.h rename to clang/test/DebugInfo/Generic/Inputs/debug-info-slash.h diff --git a/clang/test/DebugInfo/Generic/Inputs/stdio.h b/clang/test/DebugInfo/Generic/Inputs/stdio.h new file mode 100644 index 0000000000000..fc49fd8247038 --- /dev/null +++ b/clang/test/DebugInfo/Generic/Inputs/stdio.h @@ -0,0 +1,9 @@ +struct FILE; +extern int vfprintf(struct FILE *s, const char *format, __builtin_va_list arg); +extern int vprintf(const char *format, __builtin_va_list arg); + +extern __inline __attribute__((gnu_inline,always_inline)) int +vprintf(const char *x, __builtin_va_list y) +{ + return vfprintf (0, 0, y); +} diff --git a/clang/test/CodeGen/debug-info-abspath.c b/clang/test/DebugInfo/Generic/abspath.c similarity index 70% rename from clang/test/CodeGen/debug-info-abspath.c rename to clang/test/DebugInfo/Generic/abspath.c index 193a72c0a66fd..95bed45518f2b 100644 --- a/clang/test/CodeGen/debug-info-abspath.c +++ b/clang/test/DebugInfo/Generic/abspath.c @@ -1,9 +1,9 @@ // RUN: mkdir -p %t/UNIQUEISH_SENTINEL -// RUN: cp %s %t/UNIQUEISH_SENTINEL/debug-info-abspath.c +// RUN: cp %s %t/UNIQUEISH_SENTINEL/abspath.c // RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple \ -// RUN: -fdebug-compilation-dir=%t/UNIQUEISH_SENTINEL/debug-info-abspath.c \ -// RUN: %t/UNIQUEISH_SENTINEL/debug-info-abspath.c -emit-llvm -o - \ +// RUN: -fdebug-compilation-dir=%t/UNIQUEISH_SENTINEL/abspath.c \ +// RUN: %t/UNIQUEISH_SENTINEL/abspath.c -emit-llvm -o - \ // RUN: | FileCheck %s // RUN: cp %s %t.c @@ -18,8 +18,8 @@ void foo(void) {} // CHECK: = distinct !DISubprogram({{.*}}file: ![[SPFILE:[0-9]+]] // CHECK: ![[SPFILE]] = !DIFile(filename: "{{.*}}UNIQUEISH_SENTINEL -// CHECK-SAME: debug-info-abspath.c" +// CHECK-SAME: abspath.c" // CHECK-NOT: directory: "{{.*}}UNIQUEISH_SENTINEL // INTREE: = distinct !DISubprogram({{.*}}![[SPFILE:[0-9]+]] -// INTREE: DIFile({{.*}}directory: "{{.+}}CodeGen{{.*}}") +// INTREE: DIFile({{.*}}directory: "{{.+}}Generic{{.*}}") diff --git a/clang/test/CodeGen/debug-info-alias-pointer.c b/clang/test/DebugInfo/Generic/alias-pointer.c similarity index 100% rename from clang/test/CodeGen/debug-info-alias-pointer.c rename to clang/test/DebugInfo/Generic/alias-pointer.c diff --git a/clang/test/CodeGen/debug-info-alias.c b/clang/test/DebugInfo/Generic/alias.c similarity index 100% rename from clang/test/CodeGen/debug-info-alias.c rename to clang/test/DebugInfo/Generic/alias.c diff --git a/clang/test/CodeGen/amdgpu-barrier-type-debug-info.c b/clang/test/DebugInfo/Generic/amdgpu-barrier-type-debug-info.c similarity index 100% rename from clang/test/CodeGen/amdgpu-barrier-type-debug-info.c rename to clang/test/DebugInfo/Generic/amdgpu-barrier-type-debug-info.c diff --git a/clang/test/CodeGen/amdgpu-buffer-rsrc-type-debug-info.c b/clang/test/DebugInfo/Generic/amdgpu-buffer-rsrc-type-debug-info.c similarity index 100% rename from clang/test/CodeGen/amdgpu-buffer-rsrc-type-debug-info.c rename to clang/test/DebugInfo/Generic/amdgpu-buffer-rsrc-type-debug-info.c diff --git a/clang/test/CodeGen/debug-info-args.c b/clang/test/DebugInfo/Generic/args.c similarity index 100% rename from clang/test/CodeGen/debug-info-args.c rename to clang/test/DebugInfo/Generic/args.c diff --git a/clang/test/CodeGen/artificial.c b/clang/test/DebugInfo/Generic/artificial.c similarity index 100% rename from clang/test/CodeGen/artificial.c rename to clang/test/DebugInfo/Generic/artificial.c diff --git a/clang/test/CodeGen/debug-info-atomic.c b/clang/test/DebugInfo/Generic/atomic.c similarity index 100% rename from clang/test/CodeGen/debug-info-atomic.c rename to clang/test/DebugInfo/Generic/atomic.c diff --git a/clang/test/CodeGen/attr-btf_type_tag-func-ptr.c b/clang/test/DebugInfo/Generic/attr-btf_type_tag-func-ptr.c similarity index 100% rename from clang/test/CodeGen/attr-btf_type_tag-func-ptr.c rename to clang/test/DebugInfo/Generic/attr-btf_type_tag-func-ptr.c diff --git a/clang/test/CodeGen/attr-btf_type_tag-similar-type.c b/clang/test/DebugInfo/Generic/attr-btf_type_tag-similar-type.c similarity index 100% rename from clang/test/CodeGen/attr-btf_type_tag-similar-type.c rename to clang/test/DebugInfo/Generic/attr-btf_type_tag-similar-type.c diff --git a/clang/test/CodeGen/attr-btf_type_tag-typedef-field.c b/clang/test/DebugInfo/Generic/attr-btf_type_tag-typedef-field.c similarity index 100% rename from clang/test/CodeGen/attr-btf_type_tag-typedef-field.c rename to clang/test/DebugInfo/Generic/attr-btf_type_tag-typedef-field.c diff --git a/clang/test/CodeGen/attr-btf_type_tag-var.c b/clang/test/DebugInfo/Generic/attr-btf_type_tag-var.c similarity index 100% rename from clang/test/CodeGen/attr-btf_type_tag-var.c rename to clang/test/DebugInfo/Generic/attr-btf_type_tag-var.c diff --git a/clang/test/CodeGen/attr-counted-by-debug-info.c b/clang/test/DebugInfo/Generic/attr-counted-by-debug-info.c similarity index 100% rename from clang/test/CodeGen/attr-counted-by-debug-info.c rename to clang/test/DebugInfo/Generic/attr-counted-by-debug-info.c diff --git a/clang/test/CodeGen/attr-nodebug.c b/clang/test/DebugInfo/Generic/attr-nodebug.c similarity index 100% rename from clang/test/CodeGen/attr-nodebug.c rename to clang/test/DebugInfo/Generic/attr-nodebug.c diff --git a/clang/test/CodeGen/attr-nodebug2.c b/clang/test/DebugInfo/Generic/attr-nodebug2.c similarity index 100% rename from clang/test/CodeGen/attr-nodebug2.c rename to clang/test/DebugInfo/Generic/attr-nodebug2.c diff --git a/clang/test/CodeGen/debug-info-attributed-stmt.c b/clang/test/DebugInfo/Generic/attributed-stmt.c similarity index 100% rename from clang/test/CodeGen/debug-info-attributed-stmt.c rename to clang/test/DebugInfo/Generic/attributed-stmt.c diff --git a/clang/test/CodeGen/debug-info-bitfield-0-struct.c b/clang/test/DebugInfo/Generic/bitfield-0-struct.c similarity index 100% rename from clang/test/CodeGen/debug-info-bitfield-0-struct.c rename to clang/test/DebugInfo/Generic/bitfield-0-struct.c diff --git a/clang/test/CodeGen/debug-info-block-decl.c b/clang/test/DebugInfo/Generic/block-decl.c similarity index 100% rename from clang/test/CodeGen/debug-info-block-decl.c rename to clang/test/DebugInfo/Generic/block-decl.c diff --git a/clang/test/CodeGen/debug-info-block-expr.c b/clang/test/DebugInfo/Generic/block-expr.c similarity index 100% rename from clang/test/CodeGen/debug-info-block-expr.c rename to clang/test/DebugInfo/Generic/block-expr.c diff --git a/clang/test/CodeGen/debug-info-block-out-return.c b/clang/test/DebugInfo/Generic/block-out-return.c similarity index 100% rename from clang/test/CodeGen/debug-info-block-out-return.c rename to clang/test/DebugInfo/Generic/block-out-return.c diff --git a/clang/test/CodeGen/debug-info-block-vars.c b/clang/test/DebugInfo/Generic/block-vars.c similarity index 100% rename from clang/test/CodeGen/debug-info-block-vars.c rename to clang/test/DebugInfo/Generic/block-vars.c diff --git a/clang/test/CodeGen/debug-info-block.c b/clang/test/DebugInfo/Generic/block.c similarity index 100% rename from clang/test/CodeGen/debug-info-block.c rename to clang/test/DebugInfo/Generic/block.c diff --git a/clang/test/CodeGen/bounds-checking-debuginfo.c b/clang/test/DebugInfo/Generic/bounds-checking-debuginfo.c similarity index 100% rename from clang/test/CodeGen/bounds-checking-debuginfo.c rename to clang/test/DebugInfo/Generic/bounds-checking-debuginfo.c diff --git a/clang/test/CodeGen/bpf-debug-info-unref.c b/clang/test/DebugInfo/Generic/bpf-debug-info-unref.c similarity index 100% rename from clang/test/CodeGen/bpf-debug-info-unref.c rename to clang/test/DebugInfo/Generic/bpf-debug-info-unref.c diff --git a/clang/test/CodeGen/builtin-preserve-access-index-array.c b/clang/test/DebugInfo/Generic/builtin-preserve-access-index-array.c similarity index 100% rename from clang/test/CodeGen/builtin-preserve-access-index-array.c rename to clang/test/DebugInfo/Generic/builtin-preserve-access-index-array.c diff --git a/clang/test/CodeGen/debug-info-cc.c b/clang/test/DebugInfo/Generic/cc.c similarity index 100% rename from clang/test/CodeGen/debug-info-cc.c rename to clang/test/DebugInfo/Generic/cc.c diff --git a/clang/test/CodeGen/cfi-check-fail-debuginfo.c b/clang/test/DebugInfo/Generic/cfi-check-fail-debuginfo.c similarity index 100% rename from clang/test/CodeGen/cfi-check-fail-debuginfo.c rename to clang/test/DebugInfo/Generic/cfi-check-fail-debuginfo.c diff --git a/clang/test/CodeGen/cfi-icall-generalize-debuginfo.c b/clang/test/DebugInfo/Generic/cfi-icall-generalize-debuginfo.c similarity index 100% rename from clang/test/CodeGen/cfi-icall-generalize-debuginfo.c rename to clang/test/DebugInfo/Generic/cfi-icall-generalize-debuginfo.c diff --git a/clang/test/CodeGen/cfi-icall-normalize2-debuginfo.c b/clang/test/DebugInfo/Generic/cfi-icall-normalize2-debuginfo.c similarity index 100% rename from clang/test/CodeGen/cfi-icall-normalize2-debuginfo.c rename to clang/test/DebugInfo/Generic/cfi-icall-normalize2-debuginfo.c diff --git a/clang/test/CodeGen/debug-info-codeview-buildinfo.c b/clang/test/DebugInfo/Generic/codeview-buildinfo.c similarity index 97% rename from clang/test/CodeGen/debug-info-codeview-buildinfo.c rename to clang/test/DebugInfo/Generic/codeview-buildinfo.c index 98d249be8c883..ee6f772944d84 100644 --- a/clang/test/CodeGen/debug-info-codeview-buildinfo.c +++ b/clang/test/DebugInfo/Generic/codeview-buildinfo.c @@ -17,7 +17,7 @@ int main(void) { return 42; } // CHECK: Types (.debug$T) // CHECK: ============================================================ // CHECK: 0x[[PWD:.+]] | LF_STRING_ID [size = {{.+}}] ID: , String: [[PWDVAL:.+]] -// CHECK: 0x[[FILEPATH:.+]] | LF_STRING_ID [size = {{.+}}] ID: , String: [[FILEPATHVAL:.+[\\/]debug-info-codeview-buildinfo.c]] +// CHECK: 0x[[FILEPATH:.+]] | LF_STRING_ID [size = {{.+}}] ID: , String: [[FILEPATHVAL:.+[\\/]codeview-buildinfo.c]] // CHECK: 0x[[ZIPDB:.+]] | LF_STRING_ID [size = {{.+}}] ID: , String: // CHECK: 0x[[TOOL:.+]] | LF_STRING_ID [size = {{.+}}] ID: , String: [[TOOLVAL:.+[\\/][clang|llvm].*]] // CHECK: 0x[[CMDLINE:.+]] | LF_STRING_ID [size = {{.+}}] ID: , String: "-cc1 diff --git a/clang/test/CodeGen/debug-info-codeview-heapallocsite.c b/clang/test/DebugInfo/Generic/codeview-heapallocsite.c similarity index 100% rename from clang/test/CodeGen/debug-info-codeview-heapallocsite.c rename to clang/test/DebugInfo/Generic/codeview-heapallocsite.c diff --git a/clang/test/CodeGen/debug-info-codeview-unnamed.c b/clang/test/DebugInfo/Generic/codeview-unnamed.c similarity index 100% rename from clang/test/CodeGen/debug-info-codeview-unnamed.c rename to clang/test/DebugInfo/Generic/codeview-unnamed.c diff --git a/clang/test/CodeGen/debug-info-compilation-dir.c b/clang/test/DebugInfo/Generic/compilation-dir.c similarity index 79% rename from clang/test/CodeGen/debug-info-compilation-dir.c rename to clang/test/DebugInfo/Generic/compilation-dir.c index 5f5542c525495..d2c19f298ec72 100644 --- a/clang/test/CodeGen/debug-info-compilation-dir.c +++ b/clang/test/DebugInfo/Generic/compilation-dir.c @@ -5,12 +5,12 @@ // CHECK-NONSENSE: nonsense // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck -check-prefix=CHECK-DIR %s -// CHECK-DIR: CodeGen +// CHECK-DIR: Generic /// Test path remapping. // RUN: %clang_cc1 -fdebug-compilation-dir=%S -main-file-name %s -emit-llvm -debug-info-kind=limited %s -o - | FileCheck -check-prefix=CHECK-ABS %s -// CHECK-ABS: DIFile(filename: "{{.*}}debug-info-compilation-dir.c", directory: "{{.*}}CodeGen") +// CHECK-ABS: DIFile(filename: "{{.*}}compilation-dir.c", directory: "{{.*}}Generic") // RUN: %clang_cc1 -main-file-name %s -emit-llvm -debug-info-kind=limited %s -o - | FileCheck -check-prefix=CHECK-NOMAP %s -// CHECK-NOMAP: DIFile(filename: "{{.*}}debug-info-compilation-dir.c", directory: "") +// CHECK-NOMAP: DIFile(filename: "{{.*}}compilation-dir.c", directory: "") diff --git a/clang/test/CodeGen/debug-info-crash.c b/clang/test/DebugInfo/Generic/crash.c similarity index 100% rename from clang/test/CodeGen/debug-info-crash.c rename to clang/test/DebugInfo/Generic/crash.c diff --git a/clang/test/CodeGen/dbg-const-int128.c b/clang/test/DebugInfo/Generic/dbg-const-int128.c similarity index 100% rename from clang/test/CodeGen/dbg-const-int128.c rename to clang/test/DebugInfo/Generic/dbg-const-int128.c diff --git a/clang/test/CodeGen/debug-info.c b/clang/test/DebugInfo/Generic/debug-info.c similarity index 100% rename from clang/test/CodeGen/debug-info.c rename to clang/test/DebugInfo/Generic/debug-info.c diff --git a/clang/test/CodeGen/debug-label-inline.c b/clang/test/DebugInfo/Generic/debug-label-inline.c similarity index 100% rename from clang/test/CodeGen/debug-label-inline.c rename to clang/test/DebugInfo/Generic/debug-label-inline.c diff --git a/clang/test/CodeGen/debug-line-1.c b/clang/test/DebugInfo/Generic/debug-line-1.c similarity index 100% rename from clang/test/CodeGen/debug-line-1.c rename to clang/test/DebugInfo/Generic/debug-line-1.c diff --git a/clang/test/CodeGen/debug-prefix-map.c b/clang/test/DebugInfo/Generic/debug-prefix-map.c similarity index 100% rename from clang/test/CodeGen/debug-prefix-map.c rename to clang/test/DebugInfo/Generic/debug-prefix-map.c diff --git a/clang/test/CodeGen/debug-prefix-map.cpp b/clang/test/DebugInfo/Generic/debug-prefix-map.cpp similarity index 100% rename from clang/test/CodeGen/debug-prefix-map.cpp rename to clang/test/DebugInfo/Generic/debug-prefix-map.cpp diff --git a/clang/test/CodeGen/debug-info-embed-source.c b/clang/test/DebugInfo/Generic/embed-source.c similarity index 100% rename from clang/test/CodeGen/debug-info-embed-source.c rename to clang/test/DebugInfo/Generic/embed-source.c diff --git a/clang/test/CodeGen/debug-info-enum-case-val.c b/clang/test/DebugInfo/Generic/enum-case-val.c similarity index 100% rename from clang/test/CodeGen/debug-info-enum-case-val.c rename to clang/test/DebugInfo/Generic/enum-case-val.c diff --git a/clang/test/CodeGen/debug-info-enum-extensibility.c b/clang/test/DebugInfo/Generic/enum-extensibility.c similarity index 100% rename from clang/test/CodeGen/debug-info-enum-extensibility.c rename to clang/test/DebugInfo/Generic/enum-extensibility.c diff --git a/clang/test/CodeGen/debug-info-enum.c b/clang/test/DebugInfo/Generic/enum.c similarity index 100% rename from clang/test/CodeGen/debug-info-enum.c rename to clang/test/DebugInfo/Generic/enum.c diff --git a/clang/test/CodeGen/debug-info-enum.cpp b/clang/test/DebugInfo/Generic/enum.cpp similarity index 100% rename from clang/test/CodeGen/debug-info-enum.cpp rename to clang/test/DebugInfo/Generic/enum.cpp diff --git a/clang/test/CodeGen/enum2.c b/clang/test/DebugInfo/Generic/enum2.c similarity index 100% rename from clang/test/CodeGen/enum2.c rename to clang/test/DebugInfo/Generic/enum2.c diff --git a/clang/test/CodeGen/debug-info-extern-basic.c b/clang/test/DebugInfo/Generic/extern-basic.c similarity index 100% rename from clang/test/CodeGen/debug-info-extern-basic.c rename to clang/test/DebugInfo/Generic/extern-basic.c diff --git a/clang/test/CodeGen/debug-info-extern-basic.cpp b/clang/test/DebugInfo/Generic/extern-basic.cpp similarity index 100% rename from clang/test/CodeGen/debug-info-extern-basic.cpp rename to clang/test/DebugInfo/Generic/extern-basic.cpp diff --git a/clang/test/CodeGen/debug-info-extern-call.c b/clang/test/DebugInfo/Generic/extern-call.c similarity index 100% rename from clang/test/CodeGen/debug-info-extern-call.c rename to clang/test/DebugInfo/Generic/extern-call.c diff --git a/clang/test/CodeGen/debug-info-extern-callback.c b/clang/test/DebugInfo/Generic/extern-callback.c similarity index 100% rename from clang/test/CodeGen/debug-info-extern-callback.c rename to clang/test/DebugInfo/Generic/extern-callback.c diff --git a/clang/test/CodeGen/debug-info-extern-duplicate.c b/clang/test/DebugInfo/Generic/extern-duplicate.c similarity index 100% rename from clang/test/CodeGen/debug-info-extern-duplicate.c rename to clang/test/DebugInfo/Generic/extern-duplicate.c diff --git a/clang/test/CodeGen/debug-info-extern-multi.c b/clang/test/DebugInfo/Generic/extern-multi.c similarity index 100% rename from clang/test/CodeGen/debug-info-extern-multi.c rename to clang/test/DebugInfo/Generic/extern-multi.c diff --git a/clang/test/CodeGen/debug-info-extern-unused.c b/clang/test/DebugInfo/Generic/extern-unused.c similarity index 100% rename from clang/test/CodeGen/debug-info-extern-unused.c rename to clang/test/DebugInfo/Generic/extern-unused.c diff --git a/clang/test/CodeGen/fake-use-return-line.c b/clang/test/DebugInfo/Generic/fake-use-return-line.c similarity index 100% rename from clang/test/CodeGen/fake-use-return-line.c rename to clang/test/DebugInfo/Generic/fake-use-return-line.c diff --git a/clang/test/CodeGen/debug-info-file-change.c b/clang/test/DebugInfo/Generic/file-change.c similarity index 100% rename from clang/test/CodeGen/debug-info-file-change.c rename to clang/test/DebugInfo/Generic/file-change.c diff --git a/clang/test/CodeGen/debug-info-file-checksum.c b/clang/test/DebugInfo/Generic/file-checksum.c similarity index 100% rename from clang/test/CodeGen/debug-info-file-checksum.c rename to clang/test/DebugInfo/Generic/file-checksum.c diff --git a/clang/test/CodeGen/debug-info-gline-tables-only.c b/clang/test/DebugInfo/Generic/gline-tables-only.c similarity index 100% rename from clang/test/CodeGen/debug-info-gline-tables-only.c rename to clang/test/DebugInfo/Generic/gline-tables-only.c diff --git a/clang/test/CodeGen/debug-info-gline-tables-only2.c b/clang/test/DebugInfo/Generic/gline-tables-only2.c similarity index 100% rename from clang/test/CodeGen/debug-info-gline-tables-only2.c rename to clang/test/DebugInfo/Generic/gline-tables-only2.c diff --git a/clang/test/CodeGen/global-blocks-lines.c b/clang/test/DebugInfo/Generic/global-blocks-lines.c similarity index 100% rename from clang/test/CodeGen/global-blocks-lines.c rename to clang/test/DebugInfo/Generic/global-blocks-lines.c diff --git a/clang/test/CodeGen/debug-info-global-constant.c b/clang/test/DebugInfo/Generic/global-constant.c similarity index 100% rename from clang/test/CodeGen/debug-info-global-constant.c rename to clang/test/DebugInfo/Generic/global-constant.c diff --git a/clang/test/CodeGen/debug-info-imported-entity.cpp b/clang/test/DebugInfo/Generic/imported-entity.cpp similarity index 87% rename from clang/test/CodeGen/debug-info-imported-entity.cpp rename to clang/test/DebugInfo/Generic/imported-entity.cpp index 398536e581aea..f4763c14bbc7b 100644 --- a/clang/test/CodeGen/debug-info-imported-entity.cpp +++ b/clang/test/DebugInfo/Generic/imported-entity.cpp @@ -7,4 +7,4 @@ using std::A; using ::A; // CHECK: [[Imports]] = !{[[ImportedEntity:![0-9]+]]} // CHECK: [[ImportedEntity]] = !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: [[CompileUnit]], entity: [[STDA:![0-9]+]], file: [[FILE:![0-9]+]], line: 4) // CHECK: [[STDA]] = !DICompositeType(tag: DW_TAG_class_type, name: "A", -// CHECK: [[FILE]] = !DIFile(filename: {{.*}}debug-info-imported-entity.cpp +// CHECK: [[FILE]] = !DIFile(filename: {{.*}}imported-entity.cpp diff --git a/clang/test/CodeGen/debug-info-inline-for.c b/clang/test/DebugInfo/Generic/inline-for.c similarity index 100% rename from clang/test/CodeGen/debug-info-inline-for.c rename to clang/test/DebugInfo/Generic/inline-for.c diff --git a/clang/test/CodeGen/debug-label.c b/clang/test/DebugInfo/Generic/label.c similarity index 100% rename from clang/test/CodeGen/debug-label.c rename to clang/test/DebugInfo/Generic/label.c diff --git a/clang/test/CodeGen/lifetime-debuginfo-1.c b/clang/test/DebugInfo/Generic/lifetime-debuginfo-1.c similarity index 100% rename from clang/test/CodeGen/lifetime-debuginfo-1.c rename to clang/test/DebugInfo/Generic/lifetime-debuginfo-1.c diff --git a/clang/test/CodeGen/lifetime-debuginfo-2.c b/clang/test/DebugInfo/Generic/lifetime-debuginfo-2.c similarity index 100% rename from clang/test/CodeGen/lifetime-debuginfo-2.c rename to clang/test/DebugInfo/Generic/lifetime-debuginfo-2.c diff --git a/clang/test/CodeGen/debug-info-limited.c b/clang/test/DebugInfo/Generic/limited.c similarity index 100% rename from clang/test/CodeGen/debug-info-limited.c rename to clang/test/DebugInfo/Generic/limited.c diff --git a/clang/test/CodeGen/debug-info-line.c b/clang/test/DebugInfo/Generic/line.c similarity index 100% rename from clang/test/CodeGen/debug-info-line.c rename to clang/test/DebugInfo/Generic/line.c diff --git a/clang/test/CodeGen/debug-info-line2.c b/clang/test/DebugInfo/Generic/line2.c similarity index 100% rename from clang/test/CodeGen/debug-info-line2.c rename to clang/test/DebugInfo/Generic/line2.c diff --git a/clang/test/CodeGen/debug-info-line3.c b/clang/test/DebugInfo/Generic/line3.c similarity index 100% rename from clang/test/CodeGen/debug-info-line3.c rename to clang/test/DebugInfo/Generic/line3.c diff --git a/clang/test/CodeGen/debug-info-line4.c b/clang/test/DebugInfo/Generic/line4.c similarity index 100% rename from clang/test/CodeGen/debug-info-line4.c rename to clang/test/DebugInfo/Generic/line4.c diff --git a/clang/test/CodeGen/lineno-dbginfo.c b/clang/test/DebugInfo/Generic/lineno-dbginfo.c similarity index 100% rename from clang/test/CodeGen/lineno-dbginfo.c rename to clang/test/DebugInfo/Generic/lineno-dbginfo.c diff --git a/clang/test/CodeGen/linetable-endscope.c b/clang/test/DebugInfo/Generic/linetable-endscope.c similarity index 100% rename from clang/test/CodeGen/linetable-endscope.c rename to clang/test/DebugInfo/Generic/linetable-endscope.c diff --git a/clang/test/CodeGen/debug-info-lto.c b/clang/test/DebugInfo/Generic/lto.c similarity index 100% rename from clang/test/CodeGen/debug-info-lto.c rename to clang/test/DebugInfo/Generic/lto.c diff --git a/clang/test/CodeGen/debug-info-macro.c b/clang/test/DebugInfo/Generic/macro.c similarity index 98% rename from clang/test/CodeGen/debug-info-macro.c rename to clang/test/DebugInfo/Generic/macro.c index 23fd67515e845..de8d1ab915d7e 100644 --- a/clang/test/CodeGen/debug-info-macro.c +++ b/clang/test/DebugInfo/Generic/macro.c @@ -30,7 +30,7 @@ // PCH: [[Macros]] = !{[[MainMacroFile:![0-9]+]], [[DefineC1:![0-9]+]], [[DefineA:![0-9]+]], [[UndefC1:![0-9]+]]} // CHECK: [[MainMacroFile]] = !DIMacroFile(file: [[MainFile:![0-9]+]], nodes: [[N1:![0-9]+]]) -// CHECK: [[MainFile]] = !DIFile(filename: "{{.*}}debug-info-macro.c" +// CHECK: [[MainFile]] = !DIFile(filename: "{{.*}}macro.c" // CHECK: [[N1]] = !{[[CommandLineInclude:![0-9]+]], [[DefineD1:![0-9]+]], [[FileInclude1:![0-9]+]], [[UndefD1:![0-9]+]], [[DefineD2:![0-9]+]], [[FileInclude2:![0-9]+]], [[UndefD2:![0-9]+]]} // CHECK: [[CommandLineInclude]] = !DIMacroFile(file: [[HeaderFile:![0-9]+]], nodes: [[N2:![0-9]+]]) diff --git a/clang/test/CodeGen/debug-info-matrix-types.c b/clang/test/DebugInfo/Generic/matrix-types.c similarity index 100% rename from clang/test/CodeGen/debug-info-matrix-types.c rename to clang/test/DebugInfo/Generic/matrix-types.c diff --git a/clang/test/CodeGen/debug-info-member.c b/clang/test/DebugInfo/Generic/member.c similarity index 100% rename from clang/test/CodeGen/debug-info-member.c rename to clang/test/DebugInfo/Generic/member.c diff --git a/clang/test/CodeGen/mips-debug-info-bitfield.c b/clang/test/DebugInfo/Generic/mips-debug-info-bitfield.c similarity index 100% rename from clang/test/CodeGen/mips-debug-info-bitfield.c rename to clang/test/DebugInfo/Generic/mips-debug-info-bitfield.c diff --git a/clang/test/CodeGen/debug-info-names.c b/clang/test/DebugInfo/Generic/names.c similarity index 100% rename from clang/test/CodeGen/debug-info-names.c rename to clang/test/DebugInfo/Generic/names.c diff --git a/clang/test/CodeGen/debug-info-no-inline-line-tables.c b/clang/test/DebugInfo/Generic/no-inline-line-tables.c similarity index 100% rename from clang/test/CodeGen/debug-info-no-inline-line-tables.c rename to clang/test/DebugInfo/Generic/no-inline-line-tables.c diff --git a/clang/test/CodeGen/nodebug-attr.c b/clang/test/DebugInfo/Generic/nodebug-attr.c similarity index 100% rename from clang/test/CodeGen/nodebug-attr.c rename to clang/test/DebugInfo/Generic/nodebug-attr.c diff --git a/clang/test/CodeGen/debug-nvptx.c b/clang/test/DebugInfo/Generic/nvptx.c similarity index 100% rename from clang/test/CodeGen/debug-nvptx.c rename to clang/test/DebugInfo/Generic/nvptx.c diff --git a/clang/test/CodeGen/openmp-prefix-map.c b/clang/test/DebugInfo/Generic/openmp-prefix-map.c similarity index 100% rename from clang/test/CodeGen/openmp-prefix-map.c rename to clang/test/DebugInfo/Generic/openmp-prefix-map.c diff --git a/clang/test/CodeGen/debug-info-oslog.c b/clang/test/DebugInfo/Generic/oslog.c similarity index 100% rename from clang/test/CodeGen/debug-info-oslog.c rename to clang/test/DebugInfo/Generic/oslog.c diff --git a/clang/test/CodeGen/overloadable-debug.c b/clang/test/DebugInfo/Generic/overloadable-debug.c similarity index 100% rename from clang/test/CodeGen/overloadable-debug.c rename to clang/test/DebugInfo/Generic/overloadable-debug.c diff --git a/clang/test/CodeGen/debug-info-packed-struct.c b/clang/test/DebugInfo/Generic/packed-struct.c similarity index 100% rename from clang/test/CodeGen/debug-info-packed-struct.c rename to clang/test/DebugInfo/Generic/packed-struct.c diff --git a/clang/test/CodeGen/pr52782-stdcall-func-decl.cpp b/clang/test/DebugInfo/Generic/pr52782-stdcall-func-decl.cpp similarity index 100% rename from clang/test/CodeGen/pr52782-stdcall-func-decl.cpp rename to clang/test/DebugInfo/Generic/pr52782-stdcall-func-decl.cpp diff --git a/clang/test/CodeGen/debug-info-preferred-type.cpp b/clang/test/DebugInfo/Generic/preferred-type.cpp similarity index 100% rename from clang/test/CodeGen/debug-info-preferred-type.cpp rename to clang/test/DebugInfo/Generic/preferred-type.cpp diff --git a/clang/test/CodeGen/preferred_name-chain.cpp b/clang/test/DebugInfo/Generic/preferred_name-chain.cpp similarity index 100% rename from clang/test/CodeGen/preferred_name-chain.cpp rename to clang/test/DebugInfo/Generic/preferred_name-chain.cpp diff --git a/clang/test/CodeGen/preferred_name.cpp b/clang/test/DebugInfo/Generic/preferred_name.cpp similarity index 100% rename from clang/test/CodeGen/preferred_name.cpp rename to clang/test/DebugInfo/Generic/preferred_name.cpp diff --git a/clang/test/CodeGen/debug-info-preprocessed-file.i b/clang/test/DebugInfo/Generic/preprocessed-file.i similarity index 100% rename from clang/test/CodeGen/debug-info-preprocessed-file.i rename to clang/test/DebugInfo/Generic/preprocessed-file.i diff --git a/clang/test/CodeGen/debug-info-programming-language.c b/clang/test/DebugInfo/Generic/programming-language.c similarity index 100% rename from clang/test/CodeGen/debug-info-programming-language.c rename to clang/test/DebugInfo/Generic/programming-language.c diff --git a/clang/test/CodeGen/debug-info-pseudo-probe.cpp b/clang/test/DebugInfo/Generic/pseudo-probe.cpp similarity index 100% rename from clang/test/CodeGen/debug-info-pseudo-probe.cpp rename to clang/test/DebugInfo/Generic/pseudo-probe.cpp diff --git a/clang/test/CodeGen/ptrauth-debuginfo.c b/clang/test/DebugInfo/Generic/ptrauth-debuginfo.c similarity index 100% rename from clang/test/CodeGen/ptrauth-debuginfo.c rename to clang/test/DebugInfo/Generic/ptrauth-debuginfo.c diff --git a/clang/test/CodeGen/debug-info-ranges-base-address.c b/clang/test/DebugInfo/Generic/ranges-base-address.c similarity index 100% rename from clang/test/CodeGen/debug-info-ranges-base-address.c rename to clang/test/DebugInfo/Generic/ranges-base-address.c diff --git a/clang/test/CodeGen/debug-info-same-line.c b/clang/test/DebugInfo/Generic/same-line.c similarity index 100% rename from clang/test/CodeGen/debug-info-same-line.c rename to clang/test/DebugInfo/Generic/same-line.c diff --git a/clang/test/CodeGen/debug-info-scope-file.c b/clang/test/DebugInfo/Generic/scope-file.c similarity index 100% rename from clang/test/CodeGen/debug-info-scope-file.c rename to clang/test/DebugInfo/Generic/scope-file.c diff --git a/clang/test/CodeGen/debug-info-scope.c b/clang/test/DebugInfo/Generic/scope.c similarity index 100% rename from clang/test/CodeGen/debug-info-scope.c rename to clang/test/DebugInfo/Generic/scope.c diff --git a/clang/test/CodeGen/debug-info-slash.c b/clang/test/DebugInfo/Generic/slash.c similarity index 70% rename from clang/test/CodeGen/debug-info-slash.c rename to clang/test/DebugInfo/Generic/slash.c index 56e51c09e5b0e..02187d077d45b 100644 --- a/clang/test/CodeGen/debug-info-slash.c +++ b/clang/test/DebugInfo/Generic/slash.c @@ -2,5 +2,5 @@ // RUN: %clang -target x86_64-linux-gnu -ffile-reproducible -emit-llvm -S -g %s -o - | FileCheck --check-prefix=LINUX %s int main() { return 0; } -// WIN: !DIFile(filename: "{{.*}}\\debug-info-slash.c" -// LINUX: !DIFile(filename: "{{.*}}/debug-info-slash.c" +// WIN: !DIFile(filename: "{{.*}}\\slash.c" +// LINUX: !DIFile(filename: "{{.*}}/slash.c" diff --git a/clang/test/CodeGen/debug-info-slash.test b/clang/test/DebugInfo/Generic/slash.test similarity index 100% rename from clang/test/CodeGen/debug-info-slash.test rename to clang/test/DebugInfo/Generic/slash.test diff --git a/clang/test/CodeGen/split-debug-filename.c b/clang/test/DebugInfo/Generic/split-debug-filename.c similarity index 100% rename from clang/test/CodeGen/split-debug-filename.c rename to clang/test/DebugInfo/Generic/split-debug-filename.c diff --git a/clang/test/CodeGen/split-debug-inlining.c b/clang/test/DebugInfo/Generic/split-debug-inlining.c similarity index 100% rename from clang/test/CodeGen/split-debug-inlining.c rename to clang/test/DebugInfo/Generic/split-debug-inlining.c diff --git a/clang/test/CodeGen/split-debug-output.c b/clang/test/DebugInfo/Generic/split-debug-output.c similarity index 100% rename from clang/test/CodeGen/split-debug-output.c rename to clang/test/DebugInfo/Generic/split-debug-output.c diff --git a/clang/test/CodeGen/split-debug-single-file.c b/clang/test/DebugInfo/Generic/split-debug-single-file.c similarity index 100% rename from clang/test/CodeGen/split-debug-single-file.c rename to clang/test/DebugInfo/Generic/split-debug-single-file.c diff --git a/clang/test/CodeGen/debug-info-static-const-fp.c b/clang/test/DebugInfo/Generic/static-const-fp.c similarity index 100% rename from clang/test/CodeGen/debug-info-static-const-fp.c rename to clang/test/DebugInfo/Generic/static-const-fp.c diff --git a/clang/test/CodeGen/debug-info-static.c b/clang/test/DebugInfo/Generic/static.c similarity index 100% rename from clang/test/CodeGen/debug-info-static.c rename to clang/test/DebugInfo/Generic/static.c diff --git a/clang/test/CodeGen/debug-info-switch-fallthrough.c b/clang/test/DebugInfo/Generic/switch-fallthrough.c similarity index 100% rename from clang/test/CodeGen/debug-info-switch-fallthrough.c rename to clang/test/DebugInfo/Generic/switch-fallthrough.c diff --git a/clang/test/CodeGen/debug-info-sysroot-sdk.c b/clang/test/DebugInfo/Generic/sysroot-sdk.c similarity index 100% rename from clang/test/CodeGen/debug-info-sysroot-sdk.c rename to clang/test/DebugInfo/Generic/sysroot-sdk.c diff --git a/clang/test/CodeGen/thinlto-split-dwarf.c b/clang/test/DebugInfo/Generic/thinlto-split-dwarf.c similarity index 100% rename from clang/test/CodeGen/thinlto-split-dwarf.c rename to clang/test/DebugInfo/Generic/thinlto-split-dwarf.c diff --git a/clang/test/CodeGen/debug-info-typedef.c b/clang/test/DebugInfo/Generic/typedef.c similarity index 100% rename from clang/test/CodeGen/debug-info-typedef.c rename to clang/test/DebugInfo/Generic/typedef.c diff --git a/clang/test/CodeGen/ubsan-debuglog-return.c b/clang/test/DebugInfo/Generic/ubsan-debuglog-return.c similarity index 100% rename from clang/test/CodeGen/ubsan-debuglog-return.c rename to clang/test/DebugInfo/Generic/ubsan-debuglog-return.c diff --git a/clang/test/CodeGen/ubsan-function-debuginfo.c b/clang/test/DebugInfo/Generic/ubsan-function-debuginfo.c similarity index 100% rename from clang/test/CodeGen/ubsan-function-debuginfo.c rename to clang/test/DebugInfo/Generic/ubsan-function-debuginfo.c diff --git a/clang/test/CodeGen/ubsan-trap-debugloc.c b/clang/test/DebugInfo/Generic/ubsan-trap-debugloc.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-debugloc.c rename to clang/test/DebugInfo/Generic/ubsan-trap-debugloc.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-add-overflow.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-add-overflow.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-add-overflow.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-add-overflow.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-alignment-assumption.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-alignment-assumption.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-alignment-assumption.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-alignment-assumption.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-builtin-unreachable.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-builtin-unreachable.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-builtin-unreachable.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-builtin-unreachable.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-cfi-check-fail.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-cfi-check-fail.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-cfi-check-fail.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-cfi-check-fail.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-crash.cpp b/clang/test/DebugInfo/Generic/ubsan-trap-reason-crash.cpp similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-crash.cpp rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-crash.cpp diff --git a/clang/test/CodeGen/ubsan-trap-reason-div-rem-overflow.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-div-rem-overflow.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-div-rem-overflow.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-div-rem-overflow.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-dynamic-type-cache-miss.cpp b/clang/test/DebugInfo/Generic/ubsan-trap-reason-dynamic-type-cache-miss.cpp similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-dynamic-type-cache-miss.cpp rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-dynamic-type-cache-miss.cpp diff --git a/clang/test/CodeGen/ubsan-trap-reason-flag.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-flag.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-flag.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-flag.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-float-cast-overflow.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-float-cast-overflow.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-float-cast-overflow.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-float-cast-overflow.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-function-type-mismatch.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-function-type-mismatch.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-function-type-mismatch.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-function-type-mismatch.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-implicit-conversion.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-implicit-conversion.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-implicit-conversion.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-implicit-conversion.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-invalid-builtin.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-invalid-builtin.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-invalid-builtin.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-invalid-builtin.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-invalid-objc-cast.m b/clang/test/DebugInfo/Generic/ubsan-trap-reason-invalid-objc-cast.m similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-invalid-objc-cast.m rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-invalid-objc-cast.m diff --git a/clang/test/CodeGen/ubsan-trap-reason-load-invalid-value.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-load-invalid-value.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-load-invalid-value.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-load-invalid-value.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-missing-return.cpp b/clang/test/DebugInfo/Generic/ubsan-trap-reason-missing-return.cpp similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-missing-return.cpp rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-missing-return.cpp diff --git a/clang/test/CodeGen/ubsan-trap-reason-mul-overflow.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-mul-overflow.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-mul-overflow.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-mul-overflow.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-negate-overflow.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-negate-overflow.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-negate-overflow.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-negate-overflow.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-nonnull-arg.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-nonnull-arg.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-nonnull-arg.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-nonnull-arg.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-nonnull-return.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-nonnull-return.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-nonnull-return.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-nonnull-return.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-nullability-arg.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-nullability-arg.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-nullability-arg.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-nullability-arg.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-nullability-return.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-nullability-return.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-nullability-return.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-nullability-return.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-out-of-bounds.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-out-of-bounds.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-out-of-bounds.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-out-of-bounds.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-pointer-overflow.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-pointer-overflow.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-pointer-overflow.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-pointer-overflow.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-shift-out-of-bounds.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-shift-out-of-bounds.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-shift-out-of-bounds.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-shift-out-of-bounds.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-sub-overflow.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-sub-overflow.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-sub-overflow.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-sub-overflow.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-type-mismatch.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-type-mismatch.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-type-mismatch.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-type-mismatch.c diff --git a/clang/test/CodeGen/ubsan-trap-reason-vla-bound-not-positive.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-vla-bound-not-positive.c similarity index 100% rename from clang/test/CodeGen/ubsan-trap-reason-vla-bound-not-positive.c rename to clang/test/DebugInfo/Generic/ubsan-trap-reason-vla-bound-not-positive.c diff --git a/clang/test/CodeGen/unique-internal-linkage-names-dwarf.c b/clang/test/DebugInfo/Generic/unique-internal-linkage-names-dwarf.c similarity index 100% rename from clang/test/CodeGen/unique-internal-linkage-names-dwarf.c rename to clang/test/DebugInfo/Generic/unique-internal-linkage-names-dwarf.c diff --git a/clang/test/CodeGen/unique-internal-linkage-names-dwarf.cpp b/clang/test/DebugInfo/Generic/unique-internal-linkage-names-dwarf.cpp similarity index 100% rename from clang/test/CodeGen/unique-internal-linkage-names-dwarf.cpp rename to clang/test/DebugInfo/Generic/unique-internal-linkage-names-dwarf.cpp diff --git a/clang/test/CodeGen/unsigned-promotion-debuginfo.c b/clang/test/DebugInfo/Generic/unsigned-promotion-debuginfo.c similarity index 100% rename from clang/test/CodeGen/unsigned-promotion-debuginfo.c rename to clang/test/DebugInfo/Generic/unsigned-promotion-debuginfo.c diff --git a/clang/test/CodeGen/debug-info-unused-types.c b/clang/test/DebugInfo/Generic/unused-types.c similarity index 100% rename from clang/test/CodeGen/debug-info-unused-types.c rename to clang/test/DebugInfo/Generic/unused-types.c diff --git a/clang/test/CodeGen/debug-info-unused-types.cpp b/clang/test/DebugInfo/Generic/unused-types.cpp similarity index 100% rename from clang/test/CodeGen/debug-info-unused-types.cpp rename to clang/test/DebugInfo/Generic/unused-types.cpp diff --git a/clang/test/CodeGen/unused_nested_enump.cpp b/clang/test/DebugInfo/Generic/unused_nested_enump.cpp similarity index 100% rename from clang/test/CodeGen/unused_nested_enump.cpp rename to clang/test/DebugInfo/Generic/unused_nested_enump.cpp diff --git a/clang/test/CodeGen/debug-info-variables.c b/clang/test/DebugInfo/Generic/variables.c similarity index 100% rename from clang/test/CodeGen/debug-info-variables.c rename to clang/test/DebugInfo/Generic/variables.c diff --git a/clang/test/CodeGen/debug-info-vector-bool.c b/clang/test/DebugInfo/Generic/vector-bool.c similarity index 100% rename from clang/test/CodeGen/debug-info-vector-bool.c rename to clang/test/DebugInfo/Generic/vector-bool.c diff --git a/clang/test/CodeGen/debug-info-vector.c b/clang/test/DebugInfo/Generic/vector.c similarity index 100% rename from clang/test/CodeGen/debug-info-vector.c rename to clang/test/DebugInfo/Generic/vector.c diff --git a/clang/test/CodeGen/debug-info-version-coff.c b/clang/test/DebugInfo/Generic/version-coff.c similarity index 100% rename from clang/test/CodeGen/debug-info-version-coff.c rename to clang/test/DebugInfo/Generic/version-coff.c diff --git a/clang/test/CodeGen/debug-info-version.c b/clang/test/DebugInfo/Generic/version.c similarity index 100% rename from clang/test/CodeGen/debug-info-version.c rename to clang/test/DebugInfo/Generic/version.c diff --git a/clang/test/CodeGen/debug-info-vla.c b/clang/test/DebugInfo/Generic/vla.c similarity index 100% rename from clang/test/CodeGen/debug-info-vla.c rename to clang/test/DebugInfo/Generic/vla.c diff --git a/clang/test/CodeGen/RISCV/riscv-v-debuginfo.c b/clang/test/DebugInfo/RISCV/riscv-v-debuginfo.c similarity index 100% rename from clang/test/CodeGen/RISCV/riscv-v-debuginfo.c rename to clang/test/DebugInfo/RISCV/riscv-v-debuginfo.c From e6110ae1556358b121ff4620fe1c95805ff0d3f0 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Thu, 21 Aug 2025 09:26:08 +0100 Subject: [PATCH 2/5] [clang][DebugInfo][test] Move debug-info tests from CodeGenCXX to DebugInfo directory (#154538) This patch works towards consolidating all Clang debug-info into the `clang/test/DebugInfo` directory (https://discourse.llvm.org/t/clang-test-location-of-clang-debug-info-tests/87958). Here we move only the `clang/test/CodeGenCXX` tests. I created a `CXX` subdirectory for now because many of the tests I checked actually did seem C++-specific. There is probably overlap between the `Generic` and `CXX` subdirectory, but I haven't gone through and audited them all. The list of files i came up with is: 1. searched for anything with `*debug-info*` in the filename 2. searched for occurrences of `debug-info-kind` in the tests There's a couple of tests in `clang/test/CodeGenCXX` that still set `-debug-info-kind`. They probably don't need to do that, but I'm not changing that as part of this PR. (cherry picked from commit f2aedc21f9fc9f3cd67116b0de35d09aa9f15fe4) --- clang/test/CodeGenCXX/debug-info-class-limited.test | 1 - .../{debug-info-lambda-this.cpp => lambda-this-2.cpp} | 0 .../CXX}/2006-11-20-GlobalSymbols.cpp | 0 .../CXX}/2007-01-02-UnboundedArray.cpp | 0 .../2009-03-17-dbg.cpp => DebugInfo/CXX/2009-03-17.cpp} | 0 .../CXX/2009-06-16-Crash.cpp} | 0 .../CXX/2010-05-10-Var.cpp} | 0 .../CXX/2010-05-12-PtrToMember.cpp} | 0 .../CXX}/2010-06-21-LocalVarDbg.cpp | 0 .../{CodeGenCXX => DebugInfo/CXX}/2010-07-23-DeclLoc.cpp | 0 .../CXX/Inputs/class-limited.cpp} | 0 clang/test/{CodeGenCXX => DebugInfo/CXX}/PR20038.cpp | 0 .../debug-info-access.cpp => DebugInfo/CXX/access.cpp} | 0 .../CXX/aix-static-init.cpp} | 0 .../debug-info-alias.cpp => DebugInfo/CXX/alias.cpp} | 0 .../CXX/all-calls-described.cpp} | 0 .../CXX/anon-namespace.cpp} | 0 .../CXX/anon-union-vars.cpp} | 2 +- .../CXX/artificial-arg.cpp} | 0 .../CXX/atexit-stub.cpp} | 0 .../CXX/auto-return.cpp} | 0 .../CXX/block-invocation-linkage-name.cpp} | 0 .../debug-info-blocks.cpp => DebugInfo/CXX/blocks.cpp} | 0 .../CXX/bpf-structors.cpp} | 0 .../debug-info-byval.cpp => DebugInfo/CXX/byval.cpp} | 0 .../CXX/calling-conventions.cpp} | 0 .../debug-info-char16.cpp => DebugInfo/CXX/char16.cpp} | 0 .../CXX/class-limited-plugin.test} | 2 +- clang/test/DebugInfo/CXX/class-limited.test | 1 + .../CXX/class-nolimit.cpp} | 0 .../CXX/class-optzns.cpp} | 0 .../debug-info-class.cpp => DebugInfo/CXX/class.cpp} | 0 .../CXX/codeview-display-name.cpp} | 0 .../CXX/codeview-heapallocsite.cpp} | 0 .../CXX/codeview-injected-class.cpp} | 0 .../CXX/codeview-nested-types.cpp} | 0 .../CXX/codeview-nodebug.cpp} | 0 .../CXX/codeview-template-literal.cpp} | 0 .../CXX/codeview-template-type.cpp} | 0 .../CXX/codeview-unnamed.cpp} | 0 .../CXX/codeview-var-templates.cpp} | 0 .../debug-info-coff.cpp => DebugInfo/CXX/coff.cpp} | 0 .../CXX/composite-cc.cpp} | 0 .../CXX/composite-triviality-fwd-decl.cpp} | 0 .../CXX/composite-triviality.cpp} | 0 .../debug-info-context.cpp => DebugInfo/CXX/context.cpp} | 0 .../CXX}/cp-blocks-linetables.cpp | 0 .../CXX/ctor-homing-flag.cpp} | 0 .../debug-info-ctor.cpp => DebugInfo/CXX/ctor.cpp} | 0 .../debug-info-ctor2.cpp => DebugInfo/CXX/ctor2.cpp} | 0 .../debug-info-cxx0x.cpp => DebugInfo/CXX/cxx0x.cpp} | 0 .../debug-info-cxx1y.cpp => DebugInfo/CXX/cxx1y.cpp} | 0 clang/test/{CodeGenCXX => DebugInfo/CXX}/debug-info.cpp | 0 .../CXX/decl-nested.cpp} | 0 .../CXX}/defaulted-template-alias.cpp | 0 .../debug-info-deleted.cpp => DebugInfo/CXX/deleted.cpp} | 0 .../CXX}/dependent-template-alias.cpp | 0 .../CXX/destroy-helper.cpp} | 0 .../CXX/destructor.cpp} | 0 .../CXX/determinism.cpp} | 0 clang/test/{CodeGenCXX => DebugInfo/CXX}/difile_entry.cpp | 0 .../CXX/dllimport-base-class.cpp} | 0 .../CXX/dtor-implicit-args.cpp} | 0 .../CXX/dup-fwd-decl.cpp} | 0 .../CXX/enum-class.cpp} | 0 .../CXX/enum-i128.cpp} | 0 .../CXX/enum-metadata-collision.cpp} | 0 .../debug-info-enum.cpp => DebugInfo/CXX/enum.cpp} | 0 .../CXX/explicit-cast.cpp} | 0 .../CXX/explicit-this.cpp} | 0 .../CXX/export_symbols.cpp} | 0 .../CXX}/fdebug-info-for-profiling.cpp | 0 .../CXX/field-access.cpp} | 0 .../CXX/fn-template.cpp} | 0 .../debug-info-friend.cpp => DebugInfo/CXX/friend.cpp} | 0 .../CXX/function-context.cpp} | 2 +- .../debug-info-fwd-ref.cpp => DebugInfo/CXX/fwd-ref.cpp} | 0 .../CXX/fwd-template-param.cpp} | 0 .../CXX/gline-tables-only-codeview.cpp} | 0 .../CXX/gline-tables-only.cpp} | 0 .../CXX/global-ctor-dtor.cpp} | 0 .../debug-info-global.cpp => DebugInfo/CXX/global.cpp} | 0 .../test/{CodeGenCXX => DebugInfo/CXX}/globalinit-loc.cpp | 0 .../CXX/globalinit.cpp} | 0 .../CXX/hotpatch-aarch64.cpp} | 0 .../CXX/hotpatch-arm.cpp} | 0 .../CXX/hotpatch.cpp} | 0 .../CXX/incomplete-types.cpp} | 0 .../CXX/indirect-field-decl.cpp} | 0 .../CXX/inheriting-constructor.cpp} | 0 .../CXX}/inline-dllexport-member.cpp | 0 .../debug-info-inlined.cpp => DebugInfo/CXX/inlined.cpp} | 0 .../CXX/lambda-expressions.cpp} | 2 +- .../CXX/lambda-this.cpp} | 0 .../debug-info-lambda.cpp => DebugInfo/CXX/lambda.cpp} | 0 .../CXX/large-constant.cpp} | 0 .../CXX/limited-ctor.cpp} | 0 .../debug-info-limited.cpp => DebugInfo/CXX/limited.cpp} | 0 .../CXX/line-if-2.cpp} | 0 .../debug-info-line-if.cpp => DebugInfo/CXX/line-if.cpp} | 0 .../debug-info-line.cpp => DebugInfo/CXX/line.cpp} | 0 .../{CodeGenCXX => DebugInfo/CXX}/linetable-cleanup.cpp | 0 clang/test/{CodeGenCXX => DebugInfo/CXX}/linetable-eh.cpp | 0 .../{CodeGenCXX => DebugInfo/CXX}/linetable-fnbegin.cpp | 0 .../CXX}/linetable-virtual-variadic.cpp | 0 .../debug-info-loops.cpp => DebugInfo/CXX/loops.cpp} | 0 .../test/{CodeGenCXX => DebugInfo/CXX}/lpad-linetable.cpp | 0 .../CXX/member-call.cpp} | 0 .../debug-info-member.cpp => DebugInfo/CXX/member.cpp} | 0 .../CXX/method-nodebug.cpp} | 0 .../CXX/method-spec.cpp} | 0 .../debug-info-method.cpp => DebugInfo/CXX/method.cpp} | 0 .../debug-info-method2.cpp => DebugInfo/CXX/method2.cpp} | 0 .../CXX/microsoft-abi-member-pointers.cpp} | 0 .../debug-info-ms-abi.cpp => DebugInfo/CXX/ms-abi.cpp} | 0 .../CXX/ms-anonymous-tag.cpp} | 0 .../CXX/ms-bitfields.cpp} | 0 .../CXX/ms-dtor-thunks.cpp} | 0 .../CXX/ms-novtable.cpp} | 0 .../CXX/ms-ptr-to-member.cpp} | 0 .../CXX/ms-vbase.cpp} | 0 .../CXX/namespace.cpp} | 0 .../CXX/nested-exprs.cpp} | 0 .../debug-info-nodebug.cpp => DebugInfo/CXX/nodebug.cpp} | 0 .../CXX/noreturn.cpp} | 0 .../debug-info-nrvo.cpp => DebugInfo/CXX/nrvo.cpp} | 0 .../debug-info-nullptr.cpp => DebugInfo/CXX/nullptr.cpp} | 0 .../CXX/object-pointer.cpp} | 0 .../debug-info-objname.cpp => DebugInfo/CXX/objname.cpp} | 0 .../CXX/prefix-map-lambda.cpp} | 0 .../CXX/programming-language.cpp} | 0 .../CXX/ptr-to-member-function.cpp} | 0 .../CXX/ptr-to-ptr.cpp} | 0 .../CXX/qualifiers.cpp} | 0 .../CXX/range-for-var-names.cpp} | 0 .../CXX/rvalue-ref.cpp} | 0 .../debug-info-scope.cpp => DebugInfo/CXX/scope.cpp} | 0 .../CXX/scoped-class.cpp} | 0 .../CXX/scoped-enums.cpp} | 0 .../CXX/simple-template-names.cpp} | 8 ++++---- .../CXX}/standalone-debug-attribute.cpp | 0 .../CXX/static-fns.cpp} | 0 .../CXX/static-member.cpp} | 0 .../CXX/struct-align.cpp} | 0 .../CXX/structured-binding-bitfield.cpp} | 0 .../CXX/structured-binding.cpp} | 0 .../test/{CodeGenCXX => DebugInfo/CXX}/template-alias.cpp | 0 .../CXX/template-align.cpp} | 0 .../CXX/template-array.cpp} | 0 .../CXX/template-deduction-guide.cpp} | 0 .../CXX/template-explicit-specialization.cpp} | 0 .../CXX/template-fwd.cpp} | 0 .../CXX/template-limit.cpp} | 0 .../CXX/template-member.cpp} | 0 .../CXX/template-parameter.cpp} | 0 .../CXX/template-partial-specialization.cpp} | 0 .../CXX/template-quals.cpp} | 0 .../CXX/template-recursive.cpp} | 0 .../CXX/template.cpp} | 0 .../debug-info-this.cpp => DebugInfo/CXX/this.cpp} | 0 .../CXX/thunk-msabi.cpp} | 0 .../debug-info-thunk.cpp => DebugInfo/CXX/thunk.cpp} | 0 .../CXX/trivial_abi.cpp} | 0 .../CXX}/ubsan-check-debuglocs.cpp | 0 .../CXX/union-template.cpp} | 0 .../debug-info-union.cpp => DebugInfo/CXX/union.cpp} | 0 .../CXX/use-after-free.cpp} | 0 .../debug-info-uuid.cpp => DebugInfo/CXX/uuid.cpp} | 0 .../CXX/var-template-partial-spec.cpp} | 0 .../CXX/var-template-partial.cpp} | 0 .../debug-info-varargs.cpp => DebugInfo/CXX/varargs.cpp} | 0 .../CXX}/variadic-template-alias.cpp | 0 .../CXX/verbose-trap.cpp} | 2 +- .../debug-info-vla.cpp => DebugInfo/CXX/vla.cpp} | 0 .../CXX}/vtable-holder-self-reference.cpp | 0 .../CXX/vtable-inheritance-diamond.cpp} | 0 .../CXX/vtable-inheritance-multiple.cpp} | 0 .../CXX/vtable-inheritance-simple-main.cpp} | 0 .../CXX/vtable-inheritance-simple.cpp} | 0 .../CXX/vtable-inheritance-virtual.cpp} | 0 .../CXX/vtable-optzn.cpp} | 0 .../vtable-debug-info.cpp => DebugInfo/CXX/vtable.cpp} | 0 .../debug-info-wchar.cpp => DebugInfo/CXX/wchar.cpp} | 0 .../CXX/windows-dtor.cpp} | 0 .../CXX/zero-length-arrays.cpp} | 0 185 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 clang/test/CodeGenCXX/debug-info-class-limited.test rename clang/test/CodeGenCXX/{debug-info-lambda-this.cpp => lambda-this-2.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/2006-11-20-GlobalSymbols.cpp (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/2007-01-02-UnboundedArray.cpp (100%) rename clang/test/{CodeGenCXX/2009-03-17-dbg.cpp => DebugInfo/CXX/2009-03-17.cpp} (100%) rename clang/test/{CodeGenCXX/2009-06-16-DebugInfoCrash.cpp => DebugInfo/CXX/2009-06-16-Crash.cpp} (100%) rename clang/test/{CodeGenCXX/2010-05-10-Var-DbgInfo.cpp => DebugInfo/CXX/2010-05-10-Var.cpp} (100%) rename clang/test/{CodeGenCXX/2010-05-12-PtrToMember-Dbg.cpp => DebugInfo/CXX/2010-05-12-PtrToMember.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/2010-06-21-LocalVarDbg.cpp (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/2010-07-23-DeclLoc.cpp (100%) rename clang/test/{CodeGenCXX/Inputs/debug-info-class-limited.cpp => DebugInfo/CXX/Inputs/class-limited.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/PR20038.cpp (100%) rename clang/test/{CodeGenCXX/debug-info-access.cpp => DebugInfo/CXX/access.cpp} (100%) rename clang/test/{CodeGenCXX/aix-static-init-debug-info.cpp => DebugInfo/CXX/aix-static-init.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-alias.cpp => DebugInfo/CXX/alias.cpp} (100%) rename clang/test/{CodeGenCXX/dbg-info-all-calls-described.cpp => DebugInfo/CXX/all-calls-described.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-anon-namespace.cpp => DebugInfo/CXX/anon-namespace.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-anon-union-vars.cpp => DebugInfo/CXX/anon-union-vars.cpp} (95%) rename clang/test/{CodeGenCXX/debug-info-artificial-arg.cpp => DebugInfo/CXX/artificial-arg.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-atexit-stub.cpp => DebugInfo/CXX/atexit-stub.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-auto-return.cpp => DebugInfo/CXX/auto-return.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-block-invocation-linkage-name.cpp => DebugInfo/CXX/block-invocation-linkage-name.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-blocks.cpp => DebugInfo/CXX/blocks.cpp} (100%) rename clang/test/{CodeGenCXX/bpf-debug-structors.cpp => DebugInfo/CXX/bpf-structors.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-byval.cpp => DebugInfo/CXX/byval.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-calling-conventions.cpp => DebugInfo/CXX/calling-conventions.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-char16.cpp => DebugInfo/CXX/char16.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-class-limited-plugin.test => DebugInfo/CXX/class-limited-plugin.test} (62%) create mode 100644 clang/test/DebugInfo/CXX/class-limited.test rename clang/test/{CodeGenCXX/debug-info-class-nolimit.cpp => DebugInfo/CXX/class-nolimit.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-class-optzns.cpp => DebugInfo/CXX/class-optzns.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-class.cpp => DebugInfo/CXX/class.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-codeview-display-name.cpp => DebugInfo/CXX/codeview-display-name.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-codeview-heapallocsite.cpp => DebugInfo/CXX/codeview-heapallocsite.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-codeview-injected-class.cpp => DebugInfo/CXX/codeview-injected-class.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-codeview-nested-types.cpp => DebugInfo/CXX/codeview-nested-types.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-codeview-nodebug.cpp => DebugInfo/CXX/codeview-nodebug.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-codeview-template-literal.cpp => DebugInfo/CXX/codeview-template-literal.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-codeview-template-type.cpp => DebugInfo/CXX/codeview-template-type.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-codeview-unnamed.cpp => DebugInfo/CXX/codeview-unnamed.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-codeview-var-templates.cpp => DebugInfo/CXX/codeview-var-templates.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-coff.cpp => DebugInfo/CXX/coff.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-composite-cc.cpp => DebugInfo/CXX/composite-cc.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-composite-triviality-fwd-decl.cpp => DebugInfo/CXX/composite-triviality-fwd-decl.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-composite-triviality.cpp => DebugInfo/CXX/composite-triviality.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-context.cpp => DebugInfo/CXX/context.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/cp-blocks-linetables.cpp (100%) rename clang/test/{CodeGenCXX/debug-info-ctor-homing-flag.cpp => DebugInfo/CXX/ctor-homing-flag.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-ctor.cpp => DebugInfo/CXX/ctor.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-ctor2.cpp => DebugInfo/CXX/ctor2.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-cxx0x.cpp => DebugInfo/CXX/cxx0x.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-cxx1y.cpp => DebugInfo/CXX/cxx1y.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/debug-info.cpp (100%) rename clang/test/{CodeGenCXX/debug-info-decl-nested.cpp => DebugInfo/CXX/decl-nested.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/defaulted-template-alias.cpp (100%) rename clang/test/{CodeGenCXX/debug-info-deleted.cpp => DebugInfo/CXX/deleted.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/dependent-template-alias.cpp (100%) rename clang/test/{CodeGenCXX/debug-info-destroy-helper.cpp => DebugInfo/CXX/destroy-helper.cpp} (100%) rename clang/test/{CodeGenCXX/destructor-debug-info.cpp => DebugInfo/CXX/destructor.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-determinism.cpp => DebugInfo/CXX/determinism.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/difile_entry.cpp (100%) rename clang/test/{CodeGenCXX/debug-info-dllimport-base-class.cpp => DebugInfo/CXX/dllimport-base-class.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-dtor-implicit-args.cpp => DebugInfo/CXX/dtor-implicit-args.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-dup-fwd-decl.cpp => DebugInfo/CXX/dup-fwd-decl.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-enum-class.cpp => DebugInfo/CXX/enum-class.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-enum-i128.cpp => DebugInfo/CXX/enum-i128.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-enum-metadata-collision.cpp => DebugInfo/CXX/enum-metadata-collision.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-enum.cpp => DebugInfo/CXX/enum.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-explicit-cast.cpp => DebugInfo/CXX/explicit-cast.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-explicit-this.cpp => DebugInfo/CXX/explicit-this.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-export_symbols.cpp => DebugInfo/CXX/export_symbols.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/fdebug-info-for-profiling.cpp (100%) rename clang/test/{CodeGenCXX/field-access-debug-info.cpp => DebugInfo/CXX/field-access.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-fn-template.cpp => DebugInfo/CXX/fn-template.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-friend.cpp => DebugInfo/CXX/friend.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-function-context.cpp => DebugInfo/CXX/function-context.cpp} (95%) rename clang/test/{CodeGenCXX/debug-info-fwd-ref.cpp => DebugInfo/CXX/fwd-ref.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-fwd-template-param.cpp => DebugInfo/CXX/fwd-template-param.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-gline-tables-only-codeview.cpp => DebugInfo/CXX/gline-tables-only-codeview.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-gline-tables-only.cpp => DebugInfo/CXX/gline-tables-only.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-global-ctor-dtor.cpp => DebugInfo/CXX/global-ctor-dtor.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-global.cpp => DebugInfo/CXX/global.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/globalinit-loc.cpp (100%) rename clang/test/{CodeGenCXX/debug-info-globalinit.cpp => DebugInfo/CXX/globalinit.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-hotpatch-aarch64.cpp => DebugInfo/CXX/hotpatch-aarch64.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-hotpatch-arm.cpp => DebugInfo/CXX/hotpatch-arm.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-hotpatch.cpp => DebugInfo/CXX/hotpatch.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-incomplete-types.cpp => DebugInfo/CXX/incomplete-types.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-indirect-field-decl.cpp => DebugInfo/CXX/indirect-field-decl.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-inheriting-constructor.cpp => DebugInfo/CXX/inheriting-constructor.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/inline-dllexport-member.cpp (100%) rename clang/test/{CodeGenCXX/debug-info-inlined.cpp => DebugInfo/CXX/inlined.cpp} (100%) rename clang/test/{CodeGenCXX/debug-lambda-expressions.cpp => DebugInfo/CXX/lambda-expressions.cpp} (98%) rename clang/test/{CodeGenCXX/debug-lambda-this.cpp => DebugInfo/CXX/lambda-this.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-lambda.cpp => DebugInfo/CXX/lambda.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-large-constant.cpp => DebugInfo/CXX/large-constant.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-limited-ctor.cpp => DebugInfo/CXX/limited-ctor.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-limited.cpp => DebugInfo/CXX/limited.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-line-if-2.cpp => DebugInfo/CXX/line-if-2.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-line-if.cpp => DebugInfo/CXX/line-if.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-line.cpp => DebugInfo/CXX/line.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/linetable-cleanup.cpp (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/linetable-eh.cpp (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/linetable-fnbegin.cpp (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/linetable-virtual-variadic.cpp (100%) rename clang/test/{CodeGenCXX/debug-info-loops.cpp => DebugInfo/CXX/loops.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/lpad-linetable.cpp (100%) rename clang/test/{CodeGenCXX/debug-info-member-call.cpp => DebugInfo/CXX/member-call.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-member.cpp => DebugInfo/CXX/member.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-method-nodebug.cpp => DebugInfo/CXX/method-nodebug.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-method-spec.cpp => DebugInfo/CXX/method-spec.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-method.cpp => DebugInfo/CXX/method.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-method2.cpp => DebugInfo/CXX/method2.cpp} (100%) rename clang/test/{CodeGenCXX/microsoft-abi-member-pointers-debug-info.cpp => DebugInfo/CXX/microsoft-abi-member-pointers.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-ms-abi.cpp => DebugInfo/CXX/ms-abi.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-ms-anonymous-tag.cpp => DebugInfo/CXX/ms-anonymous-tag.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-ms-bitfields.cpp => DebugInfo/CXX/ms-bitfields.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-ms-dtor-thunks.cpp => DebugInfo/CXX/ms-dtor-thunks.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-ms-novtable.cpp => DebugInfo/CXX/ms-novtable.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-ms-ptr-to-member.cpp => DebugInfo/CXX/ms-ptr-to-member.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-ms-vbase.cpp => DebugInfo/CXX/ms-vbase.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-namespace.cpp => DebugInfo/CXX/namespace.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-nested-exprs.cpp => DebugInfo/CXX/nested-exprs.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-nodebug.cpp => DebugInfo/CXX/nodebug.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-noreturn.cpp => DebugInfo/CXX/noreturn.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-nrvo.cpp => DebugInfo/CXX/nrvo.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-nullptr.cpp => DebugInfo/CXX/nullptr.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-object-pointer.cpp => DebugInfo/CXX/object-pointer.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-objname.cpp => DebugInfo/CXX/objname.cpp} (100%) rename clang/test/{CodeGenCXX/debug-prefix-map-lambda.cpp => DebugInfo/CXX/prefix-map-lambda.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-programming-language.cpp => DebugInfo/CXX/programming-language.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-ptr-to-member-function.cpp => DebugInfo/CXX/ptr-to-member-function.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-ptr-to-ptr.cpp => DebugInfo/CXX/ptr-to-ptr.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-qualifiers.cpp => DebugInfo/CXX/qualifiers.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-range-for-var-names.cpp => DebugInfo/CXX/range-for-var-names.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-rvalue-ref.cpp => DebugInfo/CXX/rvalue-ref.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-scope.cpp => DebugInfo/CXX/scope.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-scoped-class.cpp => DebugInfo/CXX/scoped-class.cpp} (100%) rename clang/test/{CodeGenCXX/scoped-enums-debug-info.cpp => DebugInfo/CXX/scoped-enums.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-simple-template-names.cpp => DebugInfo/CXX/simple-template-names.cpp} (92%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/standalone-debug-attribute.cpp (100%) rename clang/test/{CodeGenCXX/debug-info-static-fns.cpp => DebugInfo/CXX/static-fns.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-static-member.cpp => DebugInfo/CXX/static-member.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-struct-align.cpp => DebugInfo/CXX/struct-align.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-structured-binding-bitfield.cpp => DebugInfo/CXX/structured-binding-bitfield.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-structured-binding.cpp => DebugInfo/CXX/structured-binding.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/template-alias.cpp (100%) rename clang/test/{CodeGenCXX/debug-info-template-align.cpp => DebugInfo/CXX/template-align.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-template-array.cpp => DebugInfo/CXX/template-array.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-template-deduction-guide.cpp => DebugInfo/CXX/template-deduction-guide.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-template-explicit-specialization.cpp => DebugInfo/CXX/template-explicit-specialization.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-template-fwd.cpp => DebugInfo/CXX/template-fwd.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-template-limit.cpp => DebugInfo/CXX/template-limit.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-template-member.cpp => DebugInfo/CXX/template-member.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-template-parameter.cpp => DebugInfo/CXX/template-parameter.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-template-partial-specialization.cpp => DebugInfo/CXX/template-partial-specialization.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-template-quals.cpp => DebugInfo/CXX/template-quals.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-template-recursive.cpp => DebugInfo/CXX/template-recursive.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-template.cpp => DebugInfo/CXX/template.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-this.cpp => DebugInfo/CXX/this.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-thunk-msabi.cpp => DebugInfo/CXX/thunk-msabi.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-thunk.cpp => DebugInfo/CXX/thunk.cpp} (100%) rename clang/test/{CodeGenCXX/trivial_abi_debuginfo.cpp => DebugInfo/CXX/trivial_abi.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/ubsan-check-debuglocs.cpp (100%) rename clang/test/{CodeGenCXX/debug-info-union-template.cpp => DebugInfo/CXX/union-template.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-union.cpp => DebugInfo/CXX/union.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-use-after-free.cpp => DebugInfo/CXX/use-after-free.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-uuid.cpp => DebugInfo/CXX/uuid.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-var-template-partial-spec.cpp => DebugInfo/CXX/var-template-partial-spec.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-var-template-partial.cpp => DebugInfo/CXX/var-template-partial.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-varargs.cpp => DebugInfo/CXX/varargs.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/variadic-template-alias.cpp (100%) rename clang/test/{CodeGenCXX/debug-info-verbose-trap.cpp => DebugInfo/CXX/verbose-trap.cpp} (96%) rename clang/test/{CodeGenCXX/debug-info-vla.cpp => DebugInfo/CXX/vla.cpp} (100%) rename clang/test/{CodeGenCXX => DebugInfo/CXX}/vtable-holder-self-reference.cpp (100%) rename clang/test/{CodeGenCXX/vtable-debug-info-inheritance-diamond.cpp => DebugInfo/CXX/vtable-inheritance-diamond.cpp} (100%) rename clang/test/{CodeGenCXX/vtable-debug-info-inheritance-multiple.cpp => DebugInfo/CXX/vtable-inheritance-multiple.cpp} (100%) rename clang/test/{CodeGenCXX/vtable-debug-info-inheritance-simple-main.cpp => DebugInfo/CXX/vtable-inheritance-simple-main.cpp} (100%) rename clang/test/{CodeGenCXX/vtable-debug-info-inheritance-simple.cpp => DebugInfo/CXX/vtable-inheritance-simple.cpp} (100%) rename clang/test/{CodeGenCXX/vtable-debug-info-inheritance-virtual.cpp => DebugInfo/CXX/vtable-inheritance-virtual.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-vtable-optzn.cpp => DebugInfo/CXX/vtable-optzn.cpp} (100%) rename clang/test/{CodeGenCXX/vtable-debug-info.cpp => DebugInfo/CXX/vtable.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-wchar.cpp => DebugInfo/CXX/wchar.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-windows-dtor.cpp => DebugInfo/CXX/windows-dtor.cpp} (100%) rename clang/test/{CodeGenCXX/debug-info-zero-length-arrays.cpp => DebugInfo/CXX/zero-length-arrays.cpp} (100%) diff --git a/clang/test/CodeGenCXX/debug-info-class-limited.test b/clang/test/CodeGenCXX/debug-info-class-limited.test deleted file mode 100644 index c2e332866f9fa..0000000000000 --- a/clang/test/CodeGenCXX/debug-info-class-limited.test +++ /dev/null @@ -1 +0,0 @@ -RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %S/Inputs/debug-info-class-limited.cpp -o - | FileCheck %S/Inputs/debug-info-class-limited.cpp diff --git a/clang/test/CodeGenCXX/debug-info-lambda-this.cpp b/clang/test/CodeGenCXX/lambda-this-2.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-lambda-this.cpp rename to clang/test/CodeGenCXX/lambda-this-2.cpp diff --git a/clang/test/CodeGenCXX/2006-11-20-GlobalSymbols.cpp b/clang/test/DebugInfo/CXX/2006-11-20-GlobalSymbols.cpp similarity index 100% rename from clang/test/CodeGenCXX/2006-11-20-GlobalSymbols.cpp rename to clang/test/DebugInfo/CXX/2006-11-20-GlobalSymbols.cpp diff --git a/clang/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp b/clang/test/DebugInfo/CXX/2007-01-02-UnboundedArray.cpp similarity index 100% rename from clang/test/CodeGenCXX/2007-01-02-UnboundedArray.cpp rename to clang/test/DebugInfo/CXX/2007-01-02-UnboundedArray.cpp diff --git a/clang/test/CodeGenCXX/2009-03-17-dbg.cpp b/clang/test/DebugInfo/CXX/2009-03-17.cpp similarity index 100% rename from clang/test/CodeGenCXX/2009-03-17-dbg.cpp rename to clang/test/DebugInfo/CXX/2009-03-17.cpp diff --git a/clang/test/CodeGenCXX/2009-06-16-DebugInfoCrash.cpp b/clang/test/DebugInfo/CXX/2009-06-16-Crash.cpp similarity index 100% rename from clang/test/CodeGenCXX/2009-06-16-DebugInfoCrash.cpp rename to clang/test/DebugInfo/CXX/2009-06-16-Crash.cpp diff --git a/clang/test/CodeGenCXX/2010-05-10-Var-DbgInfo.cpp b/clang/test/DebugInfo/CXX/2010-05-10-Var.cpp similarity index 100% rename from clang/test/CodeGenCXX/2010-05-10-Var-DbgInfo.cpp rename to clang/test/DebugInfo/CXX/2010-05-10-Var.cpp diff --git a/clang/test/CodeGenCXX/2010-05-12-PtrToMember-Dbg.cpp b/clang/test/DebugInfo/CXX/2010-05-12-PtrToMember.cpp similarity index 100% rename from clang/test/CodeGenCXX/2010-05-12-PtrToMember-Dbg.cpp rename to clang/test/DebugInfo/CXX/2010-05-12-PtrToMember.cpp diff --git a/clang/test/CodeGenCXX/2010-06-21-LocalVarDbg.cpp b/clang/test/DebugInfo/CXX/2010-06-21-LocalVarDbg.cpp similarity index 100% rename from clang/test/CodeGenCXX/2010-06-21-LocalVarDbg.cpp rename to clang/test/DebugInfo/CXX/2010-06-21-LocalVarDbg.cpp diff --git a/clang/test/CodeGenCXX/2010-07-23-DeclLoc.cpp b/clang/test/DebugInfo/CXX/2010-07-23-DeclLoc.cpp similarity index 100% rename from clang/test/CodeGenCXX/2010-07-23-DeclLoc.cpp rename to clang/test/DebugInfo/CXX/2010-07-23-DeclLoc.cpp diff --git a/clang/test/CodeGenCXX/Inputs/debug-info-class-limited.cpp b/clang/test/DebugInfo/CXX/Inputs/class-limited.cpp similarity index 100% rename from clang/test/CodeGenCXX/Inputs/debug-info-class-limited.cpp rename to clang/test/DebugInfo/CXX/Inputs/class-limited.cpp diff --git a/clang/test/CodeGenCXX/PR20038.cpp b/clang/test/DebugInfo/CXX/PR20038.cpp similarity index 100% rename from clang/test/CodeGenCXX/PR20038.cpp rename to clang/test/DebugInfo/CXX/PR20038.cpp diff --git a/clang/test/CodeGenCXX/debug-info-access.cpp b/clang/test/DebugInfo/CXX/access.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-access.cpp rename to clang/test/DebugInfo/CXX/access.cpp diff --git a/clang/test/CodeGenCXX/aix-static-init-debug-info.cpp b/clang/test/DebugInfo/CXX/aix-static-init.cpp similarity index 100% rename from clang/test/CodeGenCXX/aix-static-init-debug-info.cpp rename to clang/test/DebugInfo/CXX/aix-static-init.cpp diff --git a/clang/test/CodeGenCXX/debug-info-alias.cpp b/clang/test/DebugInfo/CXX/alias.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-alias.cpp rename to clang/test/DebugInfo/CXX/alias.cpp diff --git a/clang/test/CodeGenCXX/dbg-info-all-calls-described.cpp b/clang/test/DebugInfo/CXX/all-calls-described.cpp similarity index 100% rename from clang/test/CodeGenCXX/dbg-info-all-calls-described.cpp rename to clang/test/DebugInfo/CXX/all-calls-described.cpp diff --git a/clang/test/CodeGenCXX/debug-info-anon-namespace.cpp b/clang/test/DebugInfo/CXX/anon-namespace.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-anon-namespace.cpp rename to clang/test/DebugInfo/CXX/anon-namespace.cpp diff --git a/clang/test/CodeGenCXX/debug-info-anon-union-vars.cpp b/clang/test/DebugInfo/CXX/anon-union-vars.cpp similarity index 95% rename from clang/test/CodeGenCXX/debug-info-anon-union-vars.cpp rename to clang/test/DebugInfo/CXX/anon-union-vars.cpp index 61b3c7c0526c8..3aca4e199ab8d 100644 --- a/clang/test/CodeGenCXX/debug-info-anon-union-vars.cpp +++ b/clang/test/DebugInfo/CXX/anon-union-vars.cpp @@ -46,7 +46,7 @@ void instantiate(int x) { // CHECK: !DIGlobalVariable(name: "c",{{.*}} file: [[FILE:.*]], line: 6,{{.*}} isLocal: true, isDefinition: true // CHECK: !DIGlobalVariable(name: "d",{{.*}} file: [[FILE]], line: 6,{{.*}} isLocal: true, isDefinition: true -// CHECK: [[FILE]] = !DIFile(filename: "{{.*}}debug-info-anon-union-vars.cpp", +// CHECK: [[FILE]] = !DIFile(filename: "{{.*}}anon-union-vars.cpp", // CHECK: !DIGlobalVariable(name: "a",{{.*}} file: [[FILE]], line: 6,{{.*}} isLocal: true, isDefinition: true // CHECK: !DIGlobalVariable(name: "b",{{.*}} file: [[FILE]], line: 6,{{.*}} isLocal: true, isDefinition: true // CHECK: !DIGlobalVariable(name: "result", {{.*}} isLocal: false, isDefinition: true diff --git a/clang/test/CodeGenCXX/debug-info-artificial-arg.cpp b/clang/test/DebugInfo/CXX/artificial-arg.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-artificial-arg.cpp rename to clang/test/DebugInfo/CXX/artificial-arg.cpp diff --git a/clang/test/CodeGenCXX/debug-info-atexit-stub.cpp b/clang/test/DebugInfo/CXX/atexit-stub.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-atexit-stub.cpp rename to clang/test/DebugInfo/CXX/atexit-stub.cpp diff --git a/clang/test/CodeGenCXX/debug-info-auto-return.cpp b/clang/test/DebugInfo/CXX/auto-return.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-auto-return.cpp rename to clang/test/DebugInfo/CXX/auto-return.cpp diff --git a/clang/test/CodeGenCXX/debug-info-block-invocation-linkage-name.cpp b/clang/test/DebugInfo/CXX/block-invocation-linkage-name.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-block-invocation-linkage-name.cpp rename to clang/test/DebugInfo/CXX/block-invocation-linkage-name.cpp diff --git a/clang/test/CodeGenCXX/debug-info-blocks.cpp b/clang/test/DebugInfo/CXX/blocks.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-blocks.cpp rename to clang/test/DebugInfo/CXX/blocks.cpp diff --git a/clang/test/CodeGenCXX/bpf-debug-structors.cpp b/clang/test/DebugInfo/CXX/bpf-structors.cpp similarity index 100% rename from clang/test/CodeGenCXX/bpf-debug-structors.cpp rename to clang/test/DebugInfo/CXX/bpf-structors.cpp diff --git a/clang/test/CodeGenCXX/debug-info-byval.cpp b/clang/test/DebugInfo/CXX/byval.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-byval.cpp rename to clang/test/DebugInfo/CXX/byval.cpp diff --git a/clang/test/CodeGenCXX/debug-info-calling-conventions.cpp b/clang/test/DebugInfo/CXX/calling-conventions.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-calling-conventions.cpp rename to clang/test/DebugInfo/CXX/calling-conventions.cpp diff --git a/clang/test/CodeGenCXX/debug-info-char16.cpp b/clang/test/DebugInfo/CXX/char16.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-char16.cpp rename to clang/test/DebugInfo/CXX/char16.cpp diff --git a/clang/test/CodeGenCXX/debug-info-class-limited-plugin.test b/clang/test/DebugInfo/CXX/class-limited-plugin.test similarity index 62% rename from clang/test/CodeGenCXX/debug-info-class-limited-plugin.test rename to clang/test/DebugInfo/CXX/class-limited-plugin.test index 17248d5743dac..1a2cc223a3829 100644 --- a/clang/test/CodeGenCXX/debug-info-class-limited-plugin.test +++ b/clang/test/DebugInfo/CXX/class-limited-plugin.test @@ -1,2 +1,2 @@ -RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -o - -load %llvmshlibdir/PrintFunctionNames%pluginext -add-plugin print-fns %S/Inputs/debug-info-class-limited.cpp 2>&1 | FileCheck %S/Inputs/debug-info-class-limited.cpp +RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -o - -load %llvmshlibdir/PrintFunctionNames%pluginext -add-plugin print-fns %S/Inputs/class-limited.cpp 2>&1 | FileCheck %S/Inputs/class-limited.cpp REQUIRES: plugins, examples diff --git a/clang/test/DebugInfo/CXX/class-limited.test b/clang/test/DebugInfo/CXX/class-limited.test new file mode 100644 index 0000000000000..b1279d9855bf7 --- /dev/null +++ b/clang/test/DebugInfo/CXX/class-limited.test @@ -0,0 +1 @@ +RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %S/Inputs/class-limited.cpp -o - | FileCheck %S/Inputs/class-limited.cpp diff --git a/clang/test/CodeGenCXX/debug-info-class-nolimit.cpp b/clang/test/DebugInfo/CXX/class-nolimit.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-class-nolimit.cpp rename to clang/test/DebugInfo/CXX/class-nolimit.cpp diff --git a/clang/test/CodeGenCXX/debug-info-class-optzns.cpp b/clang/test/DebugInfo/CXX/class-optzns.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-class-optzns.cpp rename to clang/test/DebugInfo/CXX/class-optzns.cpp diff --git a/clang/test/CodeGenCXX/debug-info-class.cpp b/clang/test/DebugInfo/CXX/class.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-class.cpp rename to clang/test/DebugInfo/CXX/class.cpp diff --git a/clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp b/clang/test/DebugInfo/CXX/codeview-display-name.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp rename to clang/test/DebugInfo/CXX/codeview-display-name.cpp diff --git a/clang/test/CodeGenCXX/debug-info-codeview-heapallocsite.cpp b/clang/test/DebugInfo/CXX/codeview-heapallocsite.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-codeview-heapallocsite.cpp rename to clang/test/DebugInfo/CXX/codeview-heapallocsite.cpp diff --git a/clang/test/CodeGenCXX/debug-info-codeview-injected-class.cpp b/clang/test/DebugInfo/CXX/codeview-injected-class.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-codeview-injected-class.cpp rename to clang/test/DebugInfo/CXX/codeview-injected-class.cpp diff --git a/clang/test/CodeGenCXX/debug-info-codeview-nested-types.cpp b/clang/test/DebugInfo/CXX/codeview-nested-types.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-codeview-nested-types.cpp rename to clang/test/DebugInfo/CXX/codeview-nested-types.cpp diff --git a/clang/test/CodeGenCXX/debug-info-codeview-nodebug.cpp b/clang/test/DebugInfo/CXX/codeview-nodebug.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-codeview-nodebug.cpp rename to clang/test/DebugInfo/CXX/codeview-nodebug.cpp diff --git a/clang/test/CodeGenCXX/debug-info-codeview-template-literal.cpp b/clang/test/DebugInfo/CXX/codeview-template-literal.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-codeview-template-literal.cpp rename to clang/test/DebugInfo/CXX/codeview-template-literal.cpp diff --git a/clang/test/CodeGenCXX/debug-info-codeview-template-type.cpp b/clang/test/DebugInfo/CXX/codeview-template-type.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-codeview-template-type.cpp rename to clang/test/DebugInfo/CXX/codeview-template-type.cpp diff --git a/clang/test/CodeGenCXX/debug-info-codeview-unnamed.cpp b/clang/test/DebugInfo/CXX/codeview-unnamed.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-codeview-unnamed.cpp rename to clang/test/DebugInfo/CXX/codeview-unnamed.cpp diff --git a/clang/test/CodeGenCXX/debug-info-codeview-var-templates.cpp b/clang/test/DebugInfo/CXX/codeview-var-templates.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-codeview-var-templates.cpp rename to clang/test/DebugInfo/CXX/codeview-var-templates.cpp diff --git a/clang/test/CodeGenCXX/debug-info-coff.cpp b/clang/test/DebugInfo/CXX/coff.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-coff.cpp rename to clang/test/DebugInfo/CXX/coff.cpp diff --git a/clang/test/CodeGenCXX/debug-info-composite-cc.cpp b/clang/test/DebugInfo/CXX/composite-cc.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-composite-cc.cpp rename to clang/test/DebugInfo/CXX/composite-cc.cpp diff --git a/clang/test/CodeGenCXX/debug-info-composite-triviality-fwd-decl.cpp b/clang/test/DebugInfo/CXX/composite-triviality-fwd-decl.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-composite-triviality-fwd-decl.cpp rename to clang/test/DebugInfo/CXX/composite-triviality-fwd-decl.cpp diff --git a/clang/test/CodeGenCXX/debug-info-composite-triviality.cpp b/clang/test/DebugInfo/CXX/composite-triviality.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-composite-triviality.cpp rename to clang/test/DebugInfo/CXX/composite-triviality.cpp diff --git a/clang/test/CodeGenCXX/debug-info-context.cpp b/clang/test/DebugInfo/CXX/context.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-context.cpp rename to clang/test/DebugInfo/CXX/context.cpp diff --git a/clang/test/CodeGenCXX/cp-blocks-linetables.cpp b/clang/test/DebugInfo/CXX/cp-blocks-linetables.cpp similarity index 100% rename from clang/test/CodeGenCXX/cp-blocks-linetables.cpp rename to clang/test/DebugInfo/CXX/cp-blocks-linetables.cpp diff --git a/clang/test/CodeGenCXX/debug-info-ctor-homing-flag.cpp b/clang/test/DebugInfo/CXX/ctor-homing-flag.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-ctor-homing-flag.cpp rename to clang/test/DebugInfo/CXX/ctor-homing-flag.cpp diff --git a/clang/test/CodeGenCXX/debug-info-ctor.cpp b/clang/test/DebugInfo/CXX/ctor.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-ctor.cpp rename to clang/test/DebugInfo/CXX/ctor.cpp diff --git a/clang/test/CodeGenCXX/debug-info-ctor2.cpp b/clang/test/DebugInfo/CXX/ctor2.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-ctor2.cpp rename to clang/test/DebugInfo/CXX/ctor2.cpp diff --git a/clang/test/CodeGenCXX/debug-info-cxx0x.cpp b/clang/test/DebugInfo/CXX/cxx0x.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-cxx0x.cpp rename to clang/test/DebugInfo/CXX/cxx0x.cpp diff --git a/clang/test/CodeGenCXX/debug-info-cxx1y.cpp b/clang/test/DebugInfo/CXX/cxx1y.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-cxx1y.cpp rename to clang/test/DebugInfo/CXX/cxx1y.cpp diff --git a/clang/test/CodeGenCXX/debug-info.cpp b/clang/test/DebugInfo/CXX/debug-info.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info.cpp rename to clang/test/DebugInfo/CXX/debug-info.cpp diff --git a/clang/test/CodeGenCXX/debug-info-decl-nested.cpp b/clang/test/DebugInfo/CXX/decl-nested.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-decl-nested.cpp rename to clang/test/DebugInfo/CXX/decl-nested.cpp diff --git a/clang/test/CodeGenCXX/defaulted-template-alias.cpp b/clang/test/DebugInfo/CXX/defaulted-template-alias.cpp similarity index 100% rename from clang/test/CodeGenCXX/defaulted-template-alias.cpp rename to clang/test/DebugInfo/CXX/defaulted-template-alias.cpp diff --git a/clang/test/CodeGenCXX/debug-info-deleted.cpp b/clang/test/DebugInfo/CXX/deleted.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-deleted.cpp rename to clang/test/DebugInfo/CXX/deleted.cpp diff --git a/clang/test/CodeGenCXX/dependent-template-alias.cpp b/clang/test/DebugInfo/CXX/dependent-template-alias.cpp similarity index 100% rename from clang/test/CodeGenCXX/dependent-template-alias.cpp rename to clang/test/DebugInfo/CXX/dependent-template-alias.cpp diff --git a/clang/test/CodeGenCXX/debug-info-destroy-helper.cpp b/clang/test/DebugInfo/CXX/destroy-helper.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-destroy-helper.cpp rename to clang/test/DebugInfo/CXX/destroy-helper.cpp diff --git a/clang/test/CodeGenCXX/destructor-debug-info.cpp b/clang/test/DebugInfo/CXX/destructor.cpp similarity index 100% rename from clang/test/CodeGenCXX/destructor-debug-info.cpp rename to clang/test/DebugInfo/CXX/destructor.cpp diff --git a/clang/test/CodeGenCXX/debug-info-determinism.cpp b/clang/test/DebugInfo/CXX/determinism.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-determinism.cpp rename to clang/test/DebugInfo/CXX/determinism.cpp diff --git a/clang/test/CodeGenCXX/difile_entry.cpp b/clang/test/DebugInfo/CXX/difile_entry.cpp similarity index 100% rename from clang/test/CodeGenCXX/difile_entry.cpp rename to clang/test/DebugInfo/CXX/difile_entry.cpp diff --git a/clang/test/CodeGenCXX/debug-info-dllimport-base-class.cpp b/clang/test/DebugInfo/CXX/dllimport-base-class.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-dllimport-base-class.cpp rename to clang/test/DebugInfo/CXX/dllimport-base-class.cpp diff --git a/clang/test/CodeGenCXX/debug-info-dtor-implicit-args.cpp b/clang/test/DebugInfo/CXX/dtor-implicit-args.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-dtor-implicit-args.cpp rename to clang/test/DebugInfo/CXX/dtor-implicit-args.cpp diff --git a/clang/test/CodeGenCXX/debug-info-dup-fwd-decl.cpp b/clang/test/DebugInfo/CXX/dup-fwd-decl.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-dup-fwd-decl.cpp rename to clang/test/DebugInfo/CXX/dup-fwd-decl.cpp diff --git a/clang/test/CodeGenCXX/debug-info-enum-class.cpp b/clang/test/DebugInfo/CXX/enum-class.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-enum-class.cpp rename to clang/test/DebugInfo/CXX/enum-class.cpp diff --git a/clang/test/CodeGenCXX/debug-info-enum-i128.cpp b/clang/test/DebugInfo/CXX/enum-i128.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-enum-i128.cpp rename to clang/test/DebugInfo/CXX/enum-i128.cpp diff --git a/clang/test/CodeGenCXX/debug-info-enum-metadata-collision.cpp b/clang/test/DebugInfo/CXX/enum-metadata-collision.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-enum-metadata-collision.cpp rename to clang/test/DebugInfo/CXX/enum-metadata-collision.cpp diff --git a/clang/test/CodeGenCXX/debug-info-enum.cpp b/clang/test/DebugInfo/CXX/enum.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-enum.cpp rename to clang/test/DebugInfo/CXX/enum.cpp diff --git a/clang/test/CodeGenCXX/debug-info-explicit-cast.cpp b/clang/test/DebugInfo/CXX/explicit-cast.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-explicit-cast.cpp rename to clang/test/DebugInfo/CXX/explicit-cast.cpp diff --git a/clang/test/CodeGenCXX/debug-info-explicit-this.cpp b/clang/test/DebugInfo/CXX/explicit-this.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-explicit-this.cpp rename to clang/test/DebugInfo/CXX/explicit-this.cpp diff --git a/clang/test/CodeGenCXX/debug-info-export_symbols.cpp b/clang/test/DebugInfo/CXX/export_symbols.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-export_symbols.cpp rename to clang/test/DebugInfo/CXX/export_symbols.cpp diff --git a/clang/test/CodeGenCXX/fdebug-info-for-profiling.cpp b/clang/test/DebugInfo/CXX/fdebug-info-for-profiling.cpp similarity index 100% rename from clang/test/CodeGenCXX/fdebug-info-for-profiling.cpp rename to clang/test/DebugInfo/CXX/fdebug-info-for-profiling.cpp diff --git a/clang/test/CodeGenCXX/field-access-debug-info.cpp b/clang/test/DebugInfo/CXX/field-access.cpp similarity index 100% rename from clang/test/CodeGenCXX/field-access-debug-info.cpp rename to clang/test/DebugInfo/CXX/field-access.cpp diff --git a/clang/test/CodeGenCXX/debug-info-fn-template.cpp b/clang/test/DebugInfo/CXX/fn-template.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-fn-template.cpp rename to clang/test/DebugInfo/CXX/fn-template.cpp diff --git a/clang/test/CodeGenCXX/debug-info-friend.cpp b/clang/test/DebugInfo/CXX/friend.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-friend.cpp rename to clang/test/DebugInfo/CXX/friend.cpp diff --git a/clang/test/CodeGenCXX/debug-info-function-context.cpp b/clang/test/DebugInfo/CXX/function-context.cpp similarity index 95% rename from clang/test/CodeGenCXX/debug-info-function-context.cpp rename to clang/test/DebugInfo/CXX/function-context.cpp index 29c87b6ec0055..da5fa5a79a723 100644 --- a/clang/test/CodeGenCXX/debug-info-function-context.cpp +++ b/clang/test/DebugInfo/CXX/function-context.cpp @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-pc-linux-gnu %s -fdebug-compilation-dir=%S \ -// RUN: -dwarf-version=5 -main-file-name debug-info-function-context.cpp -o - | FileCheck %s +// RUN: -dwarf-version=5 -main-file-name function-context.cpp -o - | FileCheck %s struct C { void member_function(); diff --git a/clang/test/CodeGenCXX/debug-info-fwd-ref.cpp b/clang/test/DebugInfo/CXX/fwd-ref.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-fwd-ref.cpp rename to clang/test/DebugInfo/CXX/fwd-ref.cpp diff --git a/clang/test/CodeGenCXX/debug-info-fwd-template-param.cpp b/clang/test/DebugInfo/CXX/fwd-template-param.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-fwd-template-param.cpp rename to clang/test/DebugInfo/CXX/fwd-template-param.cpp diff --git a/clang/test/CodeGenCXX/debug-info-gline-tables-only-codeview.cpp b/clang/test/DebugInfo/CXX/gline-tables-only-codeview.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-gline-tables-only-codeview.cpp rename to clang/test/DebugInfo/CXX/gline-tables-only-codeview.cpp diff --git a/clang/test/CodeGenCXX/debug-info-gline-tables-only.cpp b/clang/test/DebugInfo/CXX/gline-tables-only.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-gline-tables-only.cpp rename to clang/test/DebugInfo/CXX/gline-tables-only.cpp diff --git a/clang/test/CodeGenCXX/debug-info-global-ctor-dtor.cpp b/clang/test/DebugInfo/CXX/global-ctor-dtor.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-global-ctor-dtor.cpp rename to clang/test/DebugInfo/CXX/global-ctor-dtor.cpp diff --git a/clang/test/CodeGenCXX/debug-info-global.cpp b/clang/test/DebugInfo/CXX/global.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-global.cpp rename to clang/test/DebugInfo/CXX/global.cpp diff --git a/clang/test/CodeGenCXX/globalinit-loc.cpp b/clang/test/DebugInfo/CXX/globalinit-loc.cpp similarity index 100% rename from clang/test/CodeGenCXX/globalinit-loc.cpp rename to clang/test/DebugInfo/CXX/globalinit-loc.cpp diff --git a/clang/test/CodeGenCXX/debug-info-globalinit.cpp b/clang/test/DebugInfo/CXX/globalinit.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-globalinit.cpp rename to clang/test/DebugInfo/CXX/globalinit.cpp diff --git a/clang/test/CodeGenCXX/debug-info-hotpatch-aarch64.cpp b/clang/test/DebugInfo/CXX/hotpatch-aarch64.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-hotpatch-aarch64.cpp rename to clang/test/DebugInfo/CXX/hotpatch-aarch64.cpp diff --git a/clang/test/CodeGenCXX/debug-info-hotpatch-arm.cpp b/clang/test/DebugInfo/CXX/hotpatch-arm.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-hotpatch-arm.cpp rename to clang/test/DebugInfo/CXX/hotpatch-arm.cpp diff --git a/clang/test/CodeGenCXX/debug-info-hotpatch.cpp b/clang/test/DebugInfo/CXX/hotpatch.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-hotpatch.cpp rename to clang/test/DebugInfo/CXX/hotpatch.cpp diff --git a/clang/test/CodeGenCXX/debug-info-incomplete-types.cpp b/clang/test/DebugInfo/CXX/incomplete-types.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-incomplete-types.cpp rename to clang/test/DebugInfo/CXX/incomplete-types.cpp diff --git a/clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp b/clang/test/DebugInfo/CXX/indirect-field-decl.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp rename to clang/test/DebugInfo/CXX/indirect-field-decl.cpp diff --git a/clang/test/CodeGenCXX/debug-info-inheriting-constructor.cpp b/clang/test/DebugInfo/CXX/inheriting-constructor.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-inheriting-constructor.cpp rename to clang/test/DebugInfo/CXX/inheriting-constructor.cpp diff --git a/clang/test/CodeGenCXX/inline-dllexport-member.cpp b/clang/test/DebugInfo/CXX/inline-dllexport-member.cpp similarity index 100% rename from clang/test/CodeGenCXX/inline-dllexport-member.cpp rename to clang/test/DebugInfo/CXX/inline-dllexport-member.cpp diff --git a/clang/test/CodeGenCXX/debug-info-inlined.cpp b/clang/test/DebugInfo/CXX/inlined.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-inlined.cpp rename to clang/test/DebugInfo/CXX/inlined.cpp diff --git a/clang/test/CodeGenCXX/debug-lambda-expressions.cpp b/clang/test/DebugInfo/CXX/lambda-expressions.cpp similarity index 98% rename from clang/test/CodeGenCXX/debug-lambda-expressions.cpp rename to clang/test/DebugInfo/CXX/lambda-expressions.cpp index 324c0926fb9f2..1604b908ab8bf 100644 --- a/clang/test/CodeGenCXX/debug-lambda-expressions.cpp +++ b/clang/test/DebugInfo/CXX/lambda-expressions.cpp @@ -21,7 +21,7 @@ int d(int x) { D y[10]; return [x,y] { return y[x].x; }(); } // CHECK-SAME: line: [[VAR_LINE:[0-9]+]] // CHECK-SAME: type: ![[VAR_T:[0-9]+]] -// CHECK: [[FILE:.*]] = !DIFile(filename: "{{.*}}debug-lambda-expressions.cpp", +// CHECK: [[FILE:.*]] = !DIFile(filename: "{{.*}}lambda-expressions.cpp", // CVAR: // CHECK: !DIGlobalVariable(name: "cvar" diff --git a/clang/test/CodeGenCXX/debug-lambda-this.cpp b/clang/test/DebugInfo/CXX/lambda-this.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-lambda-this.cpp rename to clang/test/DebugInfo/CXX/lambda-this.cpp diff --git a/clang/test/CodeGenCXX/debug-info-lambda.cpp b/clang/test/DebugInfo/CXX/lambda.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-lambda.cpp rename to clang/test/DebugInfo/CXX/lambda.cpp diff --git a/clang/test/CodeGenCXX/debug-info-large-constant.cpp b/clang/test/DebugInfo/CXX/large-constant.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-large-constant.cpp rename to clang/test/DebugInfo/CXX/large-constant.cpp diff --git a/clang/test/CodeGenCXX/debug-info-limited-ctor.cpp b/clang/test/DebugInfo/CXX/limited-ctor.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-limited-ctor.cpp rename to clang/test/DebugInfo/CXX/limited-ctor.cpp diff --git a/clang/test/CodeGenCXX/debug-info-limited.cpp b/clang/test/DebugInfo/CXX/limited.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-limited.cpp rename to clang/test/DebugInfo/CXX/limited.cpp diff --git a/clang/test/CodeGenCXX/debug-info-line-if-2.cpp b/clang/test/DebugInfo/CXX/line-if-2.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-line-if-2.cpp rename to clang/test/DebugInfo/CXX/line-if-2.cpp diff --git a/clang/test/CodeGenCXX/debug-info-line-if.cpp b/clang/test/DebugInfo/CXX/line-if.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-line-if.cpp rename to clang/test/DebugInfo/CXX/line-if.cpp diff --git a/clang/test/CodeGenCXX/debug-info-line.cpp b/clang/test/DebugInfo/CXX/line.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-line.cpp rename to clang/test/DebugInfo/CXX/line.cpp diff --git a/clang/test/CodeGenCXX/linetable-cleanup.cpp b/clang/test/DebugInfo/CXX/linetable-cleanup.cpp similarity index 100% rename from clang/test/CodeGenCXX/linetable-cleanup.cpp rename to clang/test/DebugInfo/CXX/linetable-cleanup.cpp diff --git a/clang/test/CodeGenCXX/linetable-eh.cpp b/clang/test/DebugInfo/CXX/linetable-eh.cpp similarity index 100% rename from clang/test/CodeGenCXX/linetable-eh.cpp rename to clang/test/DebugInfo/CXX/linetable-eh.cpp diff --git a/clang/test/CodeGenCXX/linetable-fnbegin.cpp b/clang/test/DebugInfo/CXX/linetable-fnbegin.cpp similarity index 100% rename from clang/test/CodeGenCXX/linetable-fnbegin.cpp rename to clang/test/DebugInfo/CXX/linetable-fnbegin.cpp diff --git a/clang/test/CodeGenCXX/linetable-virtual-variadic.cpp b/clang/test/DebugInfo/CXX/linetable-virtual-variadic.cpp similarity index 100% rename from clang/test/CodeGenCXX/linetable-virtual-variadic.cpp rename to clang/test/DebugInfo/CXX/linetable-virtual-variadic.cpp diff --git a/clang/test/CodeGenCXX/debug-info-loops.cpp b/clang/test/DebugInfo/CXX/loops.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-loops.cpp rename to clang/test/DebugInfo/CXX/loops.cpp diff --git a/clang/test/CodeGenCXX/lpad-linetable.cpp b/clang/test/DebugInfo/CXX/lpad-linetable.cpp similarity index 100% rename from clang/test/CodeGenCXX/lpad-linetable.cpp rename to clang/test/DebugInfo/CXX/lpad-linetable.cpp diff --git a/clang/test/CodeGenCXX/debug-info-member-call.cpp b/clang/test/DebugInfo/CXX/member-call.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-member-call.cpp rename to clang/test/DebugInfo/CXX/member-call.cpp diff --git a/clang/test/CodeGenCXX/debug-info-member.cpp b/clang/test/DebugInfo/CXX/member.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-member.cpp rename to clang/test/DebugInfo/CXX/member.cpp diff --git a/clang/test/CodeGenCXX/debug-info-method-nodebug.cpp b/clang/test/DebugInfo/CXX/method-nodebug.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-method-nodebug.cpp rename to clang/test/DebugInfo/CXX/method-nodebug.cpp diff --git a/clang/test/CodeGenCXX/debug-info-method-spec.cpp b/clang/test/DebugInfo/CXX/method-spec.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-method-spec.cpp rename to clang/test/DebugInfo/CXX/method-spec.cpp diff --git a/clang/test/CodeGenCXX/debug-info-method.cpp b/clang/test/DebugInfo/CXX/method.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-method.cpp rename to clang/test/DebugInfo/CXX/method.cpp diff --git a/clang/test/CodeGenCXX/debug-info-method2.cpp b/clang/test/DebugInfo/CXX/method2.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-method2.cpp rename to clang/test/DebugInfo/CXX/method2.cpp diff --git a/clang/test/CodeGenCXX/microsoft-abi-member-pointers-debug-info.cpp b/clang/test/DebugInfo/CXX/microsoft-abi-member-pointers.cpp similarity index 100% rename from clang/test/CodeGenCXX/microsoft-abi-member-pointers-debug-info.cpp rename to clang/test/DebugInfo/CXX/microsoft-abi-member-pointers.cpp diff --git a/clang/test/CodeGenCXX/debug-info-ms-abi.cpp b/clang/test/DebugInfo/CXX/ms-abi.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-ms-abi.cpp rename to clang/test/DebugInfo/CXX/ms-abi.cpp diff --git a/clang/test/CodeGenCXX/debug-info-ms-anonymous-tag.cpp b/clang/test/DebugInfo/CXX/ms-anonymous-tag.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-ms-anonymous-tag.cpp rename to clang/test/DebugInfo/CXX/ms-anonymous-tag.cpp diff --git a/clang/test/CodeGenCXX/debug-info-ms-bitfields.cpp b/clang/test/DebugInfo/CXX/ms-bitfields.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-ms-bitfields.cpp rename to clang/test/DebugInfo/CXX/ms-bitfields.cpp diff --git a/clang/test/CodeGenCXX/debug-info-ms-dtor-thunks.cpp b/clang/test/DebugInfo/CXX/ms-dtor-thunks.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-ms-dtor-thunks.cpp rename to clang/test/DebugInfo/CXX/ms-dtor-thunks.cpp diff --git a/clang/test/CodeGenCXX/debug-info-ms-novtable.cpp b/clang/test/DebugInfo/CXX/ms-novtable.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-ms-novtable.cpp rename to clang/test/DebugInfo/CXX/ms-novtable.cpp diff --git a/clang/test/CodeGenCXX/debug-info-ms-ptr-to-member.cpp b/clang/test/DebugInfo/CXX/ms-ptr-to-member.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-ms-ptr-to-member.cpp rename to clang/test/DebugInfo/CXX/ms-ptr-to-member.cpp diff --git a/clang/test/CodeGenCXX/debug-info-ms-vbase.cpp b/clang/test/DebugInfo/CXX/ms-vbase.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-ms-vbase.cpp rename to clang/test/DebugInfo/CXX/ms-vbase.cpp diff --git a/clang/test/CodeGenCXX/debug-info-namespace.cpp b/clang/test/DebugInfo/CXX/namespace.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-namespace.cpp rename to clang/test/DebugInfo/CXX/namespace.cpp diff --git a/clang/test/CodeGenCXX/debug-info-nested-exprs.cpp b/clang/test/DebugInfo/CXX/nested-exprs.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-nested-exprs.cpp rename to clang/test/DebugInfo/CXX/nested-exprs.cpp diff --git a/clang/test/CodeGenCXX/debug-info-nodebug.cpp b/clang/test/DebugInfo/CXX/nodebug.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-nodebug.cpp rename to clang/test/DebugInfo/CXX/nodebug.cpp diff --git a/clang/test/CodeGenCXX/debug-info-noreturn.cpp b/clang/test/DebugInfo/CXX/noreturn.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-noreturn.cpp rename to clang/test/DebugInfo/CXX/noreturn.cpp diff --git a/clang/test/CodeGenCXX/debug-info-nrvo.cpp b/clang/test/DebugInfo/CXX/nrvo.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-nrvo.cpp rename to clang/test/DebugInfo/CXX/nrvo.cpp diff --git a/clang/test/CodeGenCXX/debug-info-nullptr.cpp b/clang/test/DebugInfo/CXX/nullptr.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-nullptr.cpp rename to clang/test/DebugInfo/CXX/nullptr.cpp diff --git a/clang/test/CodeGenCXX/debug-info-object-pointer.cpp b/clang/test/DebugInfo/CXX/object-pointer.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-object-pointer.cpp rename to clang/test/DebugInfo/CXX/object-pointer.cpp diff --git a/clang/test/CodeGenCXX/debug-info-objname.cpp b/clang/test/DebugInfo/CXX/objname.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-objname.cpp rename to clang/test/DebugInfo/CXX/objname.cpp diff --git a/clang/test/CodeGenCXX/debug-prefix-map-lambda.cpp b/clang/test/DebugInfo/CXX/prefix-map-lambda.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-prefix-map-lambda.cpp rename to clang/test/DebugInfo/CXX/prefix-map-lambda.cpp diff --git a/clang/test/CodeGenCXX/debug-info-programming-language.cpp b/clang/test/DebugInfo/CXX/programming-language.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-programming-language.cpp rename to clang/test/DebugInfo/CXX/programming-language.cpp diff --git a/clang/test/CodeGenCXX/debug-info-ptr-to-member-function.cpp b/clang/test/DebugInfo/CXX/ptr-to-member-function.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-ptr-to-member-function.cpp rename to clang/test/DebugInfo/CXX/ptr-to-member-function.cpp diff --git a/clang/test/CodeGenCXX/debug-info-ptr-to-ptr.cpp b/clang/test/DebugInfo/CXX/ptr-to-ptr.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-ptr-to-ptr.cpp rename to clang/test/DebugInfo/CXX/ptr-to-ptr.cpp diff --git a/clang/test/CodeGenCXX/debug-info-qualifiers.cpp b/clang/test/DebugInfo/CXX/qualifiers.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-qualifiers.cpp rename to clang/test/DebugInfo/CXX/qualifiers.cpp diff --git a/clang/test/CodeGenCXX/debug-info-range-for-var-names.cpp b/clang/test/DebugInfo/CXX/range-for-var-names.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-range-for-var-names.cpp rename to clang/test/DebugInfo/CXX/range-for-var-names.cpp diff --git a/clang/test/CodeGenCXX/debug-info-rvalue-ref.cpp b/clang/test/DebugInfo/CXX/rvalue-ref.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-rvalue-ref.cpp rename to clang/test/DebugInfo/CXX/rvalue-ref.cpp diff --git a/clang/test/CodeGenCXX/debug-info-scope.cpp b/clang/test/DebugInfo/CXX/scope.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-scope.cpp rename to clang/test/DebugInfo/CXX/scope.cpp diff --git a/clang/test/CodeGenCXX/debug-info-scoped-class.cpp b/clang/test/DebugInfo/CXX/scoped-class.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-scoped-class.cpp rename to clang/test/DebugInfo/CXX/scoped-class.cpp diff --git a/clang/test/CodeGenCXX/scoped-enums-debug-info.cpp b/clang/test/DebugInfo/CXX/scoped-enums.cpp similarity index 100% rename from clang/test/CodeGenCXX/scoped-enums-debug-info.cpp rename to clang/test/DebugInfo/CXX/scoped-enums.cpp diff --git a/clang/test/CodeGenCXX/debug-info-simple-template-names.cpp b/clang/test/DebugInfo/CXX/simple-template-names.cpp similarity index 92% rename from clang/test/CodeGenCXX/debug-info-simple-template-names.cpp rename to clang/test/DebugInfo/CXX/simple-template-names.cpp index 98faa0fc6f0bb..5a5d706e81972 100644 --- a/clang/test/CodeGenCXX/debug-info-simple-template-names.cpp +++ b/clang/test/DebugInfo/CXX/simple-template-names.cpp @@ -70,18 +70,18 @@ void f() { // anything other than another unnamed class/struct. auto Lambda = [] {}; f1(); - // CHECK: !DISubprogram(name: "f1<(lambda at {{.*}}debug-info-simple-template-names.cpp:[[# @LINE - 2]]:17)>", + // CHECK: !DISubprogram(name: "f1<(lambda at {{.*}}simple-template-names.cpp:[[# @LINE - 2]]:17)>", f1>>(); // CHECK: !DISubprogram(name: "f1 > >", struct { } unnamed_struct; f1(); - // CHECK: !DISubprogram(name: "f1<(unnamed struct at {{.*}}debug-info-simple-template-names.cpp:[[# @LINE - 3]]:3)>", + // CHECK: !DISubprogram(name: "f1<(unnamed struct at {{.*}}simple-template-names.cpp:[[# @LINE - 3]]:3)>", f1(); - // CHECK: !DISubprogram(name: "f1", + // CHECK: !DISubprogram(name: "f1", enum {} unnamed_enum; f1(); - // CHECK: !DISubprogram(name: "f1<(unnamed enum at {{.*}}debug-info-simple-template-names.cpp:[[# @LINE - 2]]:3)>", + // CHECK: !DISubprogram(name: "f1<(unnamed enum at {{.*}}simple-template-names.cpp:[[# @LINE - 2]]:3)>", // Declarations can't readily be reversed as the value in the DWARF only // contains the address of the value - we'd have to do symbol lookup to find diff --git a/clang/test/CodeGenCXX/standalone-debug-attribute.cpp b/clang/test/DebugInfo/CXX/standalone-debug-attribute.cpp similarity index 100% rename from clang/test/CodeGenCXX/standalone-debug-attribute.cpp rename to clang/test/DebugInfo/CXX/standalone-debug-attribute.cpp diff --git a/clang/test/CodeGenCXX/debug-info-static-fns.cpp b/clang/test/DebugInfo/CXX/static-fns.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-static-fns.cpp rename to clang/test/DebugInfo/CXX/static-fns.cpp diff --git a/clang/test/CodeGenCXX/debug-info-static-member.cpp b/clang/test/DebugInfo/CXX/static-member.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-static-member.cpp rename to clang/test/DebugInfo/CXX/static-member.cpp diff --git a/clang/test/CodeGenCXX/debug-info-struct-align.cpp b/clang/test/DebugInfo/CXX/struct-align.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-struct-align.cpp rename to clang/test/DebugInfo/CXX/struct-align.cpp diff --git a/clang/test/CodeGenCXX/debug-info-structured-binding-bitfield.cpp b/clang/test/DebugInfo/CXX/structured-binding-bitfield.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-structured-binding-bitfield.cpp rename to clang/test/DebugInfo/CXX/structured-binding-bitfield.cpp diff --git a/clang/test/CodeGenCXX/debug-info-structured-binding.cpp b/clang/test/DebugInfo/CXX/structured-binding.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-structured-binding.cpp rename to clang/test/DebugInfo/CXX/structured-binding.cpp diff --git a/clang/test/CodeGenCXX/template-alias.cpp b/clang/test/DebugInfo/CXX/template-alias.cpp similarity index 100% rename from clang/test/CodeGenCXX/template-alias.cpp rename to clang/test/DebugInfo/CXX/template-alias.cpp diff --git a/clang/test/CodeGenCXX/debug-info-template-align.cpp b/clang/test/DebugInfo/CXX/template-align.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-template-align.cpp rename to clang/test/DebugInfo/CXX/template-align.cpp diff --git a/clang/test/CodeGenCXX/debug-info-template-array.cpp b/clang/test/DebugInfo/CXX/template-array.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-template-array.cpp rename to clang/test/DebugInfo/CXX/template-array.cpp diff --git a/clang/test/CodeGenCXX/debug-info-template-deduction-guide.cpp b/clang/test/DebugInfo/CXX/template-deduction-guide.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-template-deduction-guide.cpp rename to clang/test/DebugInfo/CXX/template-deduction-guide.cpp diff --git a/clang/test/CodeGenCXX/debug-info-template-explicit-specialization.cpp b/clang/test/DebugInfo/CXX/template-explicit-specialization.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-template-explicit-specialization.cpp rename to clang/test/DebugInfo/CXX/template-explicit-specialization.cpp diff --git a/clang/test/CodeGenCXX/debug-info-template-fwd.cpp b/clang/test/DebugInfo/CXX/template-fwd.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-template-fwd.cpp rename to clang/test/DebugInfo/CXX/template-fwd.cpp diff --git a/clang/test/CodeGenCXX/debug-info-template-limit.cpp b/clang/test/DebugInfo/CXX/template-limit.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-template-limit.cpp rename to clang/test/DebugInfo/CXX/template-limit.cpp diff --git a/clang/test/CodeGenCXX/debug-info-template-member.cpp b/clang/test/DebugInfo/CXX/template-member.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-template-member.cpp rename to clang/test/DebugInfo/CXX/template-member.cpp diff --git a/clang/test/CodeGenCXX/debug-info-template-parameter.cpp b/clang/test/DebugInfo/CXX/template-parameter.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-template-parameter.cpp rename to clang/test/DebugInfo/CXX/template-parameter.cpp diff --git a/clang/test/CodeGenCXX/debug-info-template-partial-specialization.cpp b/clang/test/DebugInfo/CXX/template-partial-specialization.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-template-partial-specialization.cpp rename to clang/test/DebugInfo/CXX/template-partial-specialization.cpp diff --git a/clang/test/CodeGenCXX/debug-info-template-quals.cpp b/clang/test/DebugInfo/CXX/template-quals.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-template-quals.cpp rename to clang/test/DebugInfo/CXX/template-quals.cpp diff --git a/clang/test/CodeGenCXX/debug-info-template-recursive.cpp b/clang/test/DebugInfo/CXX/template-recursive.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-template-recursive.cpp rename to clang/test/DebugInfo/CXX/template-recursive.cpp diff --git a/clang/test/CodeGenCXX/debug-info-template.cpp b/clang/test/DebugInfo/CXX/template.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-template.cpp rename to clang/test/DebugInfo/CXX/template.cpp diff --git a/clang/test/CodeGenCXX/debug-info-this.cpp b/clang/test/DebugInfo/CXX/this.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-this.cpp rename to clang/test/DebugInfo/CXX/this.cpp diff --git a/clang/test/CodeGenCXX/debug-info-thunk-msabi.cpp b/clang/test/DebugInfo/CXX/thunk-msabi.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-thunk-msabi.cpp rename to clang/test/DebugInfo/CXX/thunk-msabi.cpp diff --git a/clang/test/CodeGenCXX/debug-info-thunk.cpp b/clang/test/DebugInfo/CXX/thunk.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-thunk.cpp rename to clang/test/DebugInfo/CXX/thunk.cpp diff --git a/clang/test/CodeGenCXX/trivial_abi_debuginfo.cpp b/clang/test/DebugInfo/CXX/trivial_abi.cpp similarity index 100% rename from clang/test/CodeGenCXX/trivial_abi_debuginfo.cpp rename to clang/test/DebugInfo/CXX/trivial_abi.cpp diff --git a/clang/test/CodeGenCXX/ubsan-check-debuglocs.cpp b/clang/test/DebugInfo/CXX/ubsan-check-debuglocs.cpp similarity index 100% rename from clang/test/CodeGenCXX/ubsan-check-debuglocs.cpp rename to clang/test/DebugInfo/CXX/ubsan-check-debuglocs.cpp diff --git a/clang/test/CodeGenCXX/debug-info-union-template.cpp b/clang/test/DebugInfo/CXX/union-template.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-union-template.cpp rename to clang/test/DebugInfo/CXX/union-template.cpp diff --git a/clang/test/CodeGenCXX/debug-info-union.cpp b/clang/test/DebugInfo/CXX/union.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-union.cpp rename to clang/test/DebugInfo/CXX/union.cpp diff --git a/clang/test/CodeGenCXX/debug-info-use-after-free.cpp b/clang/test/DebugInfo/CXX/use-after-free.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-use-after-free.cpp rename to clang/test/DebugInfo/CXX/use-after-free.cpp diff --git a/clang/test/CodeGenCXX/debug-info-uuid.cpp b/clang/test/DebugInfo/CXX/uuid.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-uuid.cpp rename to clang/test/DebugInfo/CXX/uuid.cpp diff --git a/clang/test/CodeGenCXX/debug-info-var-template-partial-spec.cpp b/clang/test/DebugInfo/CXX/var-template-partial-spec.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-var-template-partial-spec.cpp rename to clang/test/DebugInfo/CXX/var-template-partial-spec.cpp diff --git a/clang/test/CodeGenCXX/debug-info-var-template-partial.cpp b/clang/test/DebugInfo/CXX/var-template-partial.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-var-template-partial.cpp rename to clang/test/DebugInfo/CXX/var-template-partial.cpp diff --git a/clang/test/CodeGenCXX/debug-info-varargs.cpp b/clang/test/DebugInfo/CXX/varargs.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-varargs.cpp rename to clang/test/DebugInfo/CXX/varargs.cpp diff --git a/clang/test/CodeGenCXX/variadic-template-alias.cpp b/clang/test/DebugInfo/CXX/variadic-template-alias.cpp similarity index 100% rename from clang/test/CodeGenCXX/variadic-template-alias.cpp rename to clang/test/DebugInfo/CXX/variadic-template-alias.cpp diff --git a/clang/test/CodeGenCXX/debug-info-verbose-trap.cpp b/clang/test/DebugInfo/CXX/verbose-trap.cpp similarity index 96% rename from clang/test/CodeGenCXX/debug-info-verbose-trap.cpp rename to clang/test/DebugInfo/CXX/verbose-trap.cpp index f492698ccab83..4a88df934ff7c 100644 --- a/clang/test/CodeGenCXX/debug-info-verbose-trap.cpp +++ b/clang/test/DebugInfo/CXX/verbose-trap.cpp @@ -17,7 +17,7 @@ // CHECK: attributes #[[ATTR1]] = { cold {{.*}}} -// CHECK: ![[FILESCOPE:.*]] = !DIFile(filename: "{{.*}}debug-info-verbose-trap.cpp" +// CHECK: ![[FILESCOPE:.*]] = !DIFile(filename: "{{.*}}verbose-trap.cpp" char const constCat[] = "category2"; char const constMsg[] = "hello"; diff --git a/clang/test/CodeGenCXX/debug-info-vla.cpp b/clang/test/DebugInfo/CXX/vla.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-vla.cpp rename to clang/test/DebugInfo/CXX/vla.cpp diff --git a/clang/test/CodeGenCXX/vtable-holder-self-reference.cpp b/clang/test/DebugInfo/CXX/vtable-holder-self-reference.cpp similarity index 100% rename from clang/test/CodeGenCXX/vtable-holder-self-reference.cpp rename to clang/test/DebugInfo/CXX/vtable-holder-self-reference.cpp diff --git a/clang/test/CodeGenCXX/vtable-debug-info-inheritance-diamond.cpp b/clang/test/DebugInfo/CXX/vtable-inheritance-diamond.cpp similarity index 100% rename from clang/test/CodeGenCXX/vtable-debug-info-inheritance-diamond.cpp rename to clang/test/DebugInfo/CXX/vtable-inheritance-diamond.cpp diff --git a/clang/test/CodeGenCXX/vtable-debug-info-inheritance-multiple.cpp b/clang/test/DebugInfo/CXX/vtable-inheritance-multiple.cpp similarity index 100% rename from clang/test/CodeGenCXX/vtable-debug-info-inheritance-multiple.cpp rename to clang/test/DebugInfo/CXX/vtable-inheritance-multiple.cpp diff --git a/clang/test/CodeGenCXX/vtable-debug-info-inheritance-simple-main.cpp b/clang/test/DebugInfo/CXX/vtable-inheritance-simple-main.cpp similarity index 100% rename from clang/test/CodeGenCXX/vtable-debug-info-inheritance-simple-main.cpp rename to clang/test/DebugInfo/CXX/vtable-inheritance-simple-main.cpp diff --git a/clang/test/CodeGenCXX/vtable-debug-info-inheritance-simple.cpp b/clang/test/DebugInfo/CXX/vtable-inheritance-simple.cpp similarity index 100% rename from clang/test/CodeGenCXX/vtable-debug-info-inheritance-simple.cpp rename to clang/test/DebugInfo/CXX/vtable-inheritance-simple.cpp diff --git a/clang/test/CodeGenCXX/vtable-debug-info-inheritance-virtual.cpp b/clang/test/DebugInfo/CXX/vtable-inheritance-virtual.cpp similarity index 100% rename from clang/test/CodeGenCXX/vtable-debug-info-inheritance-virtual.cpp rename to clang/test/DebugInfo/CXX/vtable-inheritance-virtual.cpp diff --git a/clang/test/CodeGenCXX/debug-info-vtable-optzn.cpp b/clang/test/DebugInfo/CXX/vtable-optzn.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-vtable-optzn.cpp rename to clang/test/DebugInfo/CXX/vtable-optzn.cpp diff --git a/clang/test/CodeGenCXX/vtable-debug-info.cpp b/clang/test/DebugInfo/CXX/vtable.cpp similarity index 100% rename from clang/test/CodeGenCXX/vtable-debug-info.cpp rename to clang/test/DebugInfo/CXX/vtable.cpp diff --git a/clang/test/CodeGenCXX/debug-info-wchar.cpp b/clang/test/DebugInfo/CXX/wchar.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-wchar.cpp rename to clang/test/DebugInfo/CXX/wchar.cpp diff --git a/clang/test/CodeGenCXX/debug-info-windows-dtor.cpp b/clang/test/DebugInfo/CXX/windows-dtor.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-windows-dtor.cpp rename to clang/test/DebugInfo/CXX/windows-dtor.cpp diff --git a/clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp b/clang/test/DebugInfo/CXX/zero-length-arrays.cpp similarity index 100% rename from clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp rename to clang/test/DebugInfo/CXX/zero-length-arrays.cpp From cadce572c34ca0c94edfd3e5d1ec9b6211cdf444 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Thu, 21 Aug 2025 22:09:34 +0100 Subject: [PATCH 3/5] [clang][DebugInfo][test] Move debug-info tests from CodeGenObjC to DebugInfo directory (#154781) This patch works towards consolidating all Clang debug-info into the `clang/test/DebugInfo` directory (https://discourse.llvm.org/t/clang-test-location-of-clang-debug-info-tests/87958). Here we move only the `clang/test/CodeGenObjC` tests. The list of files i came up with is: 1. searched for anything with `*debug-info*` in the filename 2. searched for occurrences of `debug-info-kind` in the tests (cherry picked from commit 8fa55a023ba1f14c3c16eb434c6af431fe5c3847) --- .../ObjC/2009-01-21-invalid.m} | 0 .../2010-02-09-DbgSelf.m => DebugInfo/ObjC/2010-02-09-Self.m} | 0 .../ObjC/2010-02-15-MethodStart.m} | 0 .../ObjC/2010-02-23-Inheritance.m} | 0 .../{CodeGenObjC => DebugInfo/ObjC}/arc-linetable-autorelease.m | 0 clang/test/{CodeGenObjC => DebugInfo/ObjC}/arc-linetable.m | 0 .../block-byref-debuginfo.m => DebugInfo/ObjC/block-byref.m} | 0 .../debug-info-block-helper.m => DebugInfo/ObjC/block-helper.m} | 0 .../debug-info-block-line.m => DebugInfo/ObjC/block-line.m} | 0 .../debug-info-block-type.m => DebugInfo/ObjC/block-type.m} | 0 .../blocks-ivar-debug.m => DebugInfo/ObjC/blocks-ivar.m} | 0 .../{CodeGenObjC/debug-info-blocks.m => DebugInfo/ObjC/blocks.m} | 0 clang/test/{CodeGenObjC => DebugInfo/ObjC}/catch-lexical-block.m | 0 .../debug-info-category.m => DebugInfo/ObjC/category.m} | 0 .../ObjC/class-extension.m} | 0 .../ObjC/class-extension2.m} | 0 .../ObjC/class-extension3.m} | 0 .../debug-info-crash-2.m => DebugInfo/ObjC/crash-2.m} | 0 .../{CodeGenObjC/debug-info-crash.m => DebugInfo/ObjC/crash.m} | 0 .../ObjC/default-synth-ivar.m} | 0 .../debug-info-direct-method.m => DebugInfo/ObjC/direct-method.m} | 0 .../debug-info-fwddecl.m => DebugInfo/ObjC/fwddecl.m} | 0 .../debug-info-getter-name.m => DebugInfo/ObjC/getter-name.m} | 0 .../ObjC/id-with-protocol.m} | 0 .../test/{CodeGenObjC/debug-info-impl.m => DebugInfo/ObjC/impl.m} | 0 .../debug-info-instancetype.m => DebugInfo/ObjC/instancetype.m} | 0 .../ObjC/ivars-extension.m} | 0 .../ObjC/ivars-indirect.m} | 0 .../debug-info-ivars-private.m => DebugInfo/ObjC/ivars-private.m} | 0 .../{CodeGenObjC/debug-info-ivars.m => DebugInfo/ObjC/ivars.m} | 0 .../test/{CodeGenObjC => DebugInfo/ObjC}/layout-bitfield-crash.m | 0 .../ObjC/lifetime-crash.m} | 0 .../debug-info-linkagename.m => DebugInfo/ObjC/linkagename.m} | 0 .../debug-info-nested-blocks.m => DebugInfo/ObjC/nested-blocks.m} | 0 .../debug-info-nodebug.m => DebugInfo/ObjC/nodebug.m} | 0 .../ObjC}/nontrivial-c-struct-exception.m | 0 clang/test/{CodeGenObjC => DebugInfo/ObjC}/objc-fixed-enum.m | 0 .../ObjC/objc-property-dwarf5.m} | 0 .../objc2-weak-ivar-debug.m => DebugInfo/ObjC/objc2-weak-ivar.m} | 0 .../debuginfo-properties.m => DebugInfo/ObjC/properties.m} | 0 .../{CodeGenObjC/property-dbg.m => DebugInfo/ObjC/property-2.m} | 0 .../ObjC/property-accessors.m} | 0 .../ObjC/property-class-extension.m} | 0 .../ObjC/property-class-instance-same-name.m} | 0 .../debug-property-synth.m => DebugInfo/ObjC/property-synth.m} | 0 .../debug-info-property.m => DebugInfo/ObjC/property.m} | 0 .../debug-info-property2.m => DebugInfo/ObjC/property2.m} | 0 .../debug-info-property3.m => DebugInfo/ObjC/property3.m} | 0 .../debug-info-property4.m => DebugInfo/ObjC/property4.m} | 0 .../debug-info-property5.m => DebugInfo/ObjC/property5.m} | 0 .../debug-info-pubtypes.m => DebugInfo/ObjC/pubtypes.m} | 0 .../debug-info-selector.m => DebugInfo/ObjC/selector.m} | 0 .../test/{CodeGenObjC/debug-info-self.m => DebugInfo/ObjC/self.m} | 0 .../debug-info-static-var.m => DebugInfo/ObjC/static-var.m} | 0 .../debug-info-synthesis.m => DebugInfo/ObjC/synthesis.m} | 0 .../test/{CodeGenObjC => DebugInfo/ObjC}/ubsan-check-debuglocs.m | 0 .../ObjC/variadic-method.m} | 0 57 files changed, 0 insertions(+), 0 deletions(-) rename clang/test/{CodeGenObjC/2009-01-21-invalid-debug-info.m => DebugInfo/ObjC/2009-01-21-invalid.m} (100%) rename clang/test/{CodeGenObjC/2010-02-09-DbgSelf.m => DebugInfo/ObjC/2010-02-09-Self.m} (100%) rename clang/test/{CodeGenObjC/2010-02-15-Dbg-MethodStart.m => DebugInfo/ObjC/2010-02-15-MethodStart.m} (100%) rename clang/test/{CodeGenObjC/2010-02-23-DbgInheritance.m => DebugInfo/ObjC/2010-02-23-Inheritance.m} (100%) rename clang/test/{CodeGenObjC => DebugInfo/ObjC}/arc-linetable-autorelease.m (100%) rename clang/test/{CodeGenObjC => DebugInfo/ObjC}/arc-linetable.m (100%) rename clang/test/{CodeGenObjC/block-byref-debuginfo.m => DebugInfo/ObjC/block-byref.m} (100%) rename clang/test/{CodeGenObjC/debug-info-block-helper.m => DebugInfo/ObjC/block-helper.m} (100%) rename clang/test/{CodeGenObjC/debug-info-block-line.m => DebugInfo/ObjC/block-line.m} (100%) rename clang/test/{CodeGenObjC/debug-info-block-type.m => DebugInfo/ObjC/block-type.m} (100%) rename clang/test/{CodeGenObjC/blocks-ivar-debug.m => DebugInfo/ObjC/blocks-ivar.m} (100%) rename clang/test/{CodeGenObjC/debug-info-blocks.m => DebugInfo/ObjC/blocks.m} (100%) rename clang/test/{CodeGenObjC => DebugInfo/ObjC}/catch-lexical-block.m (100%) rename clang/test/{CodeGenObjC/debug-info-category.m => DebugInfo/ObjC/category.m} (100%) rename clang/test/{CodeGenObjC/debug-info-class-extension.m => DebugInfo/ObjC/class-extension.m} (100%) rename clang/test/{CodeGenObjC/debug-info-class-extension2.m => DebugInfo/ObjC/class-extension2.m} (100%) rename clang/test/{CodeGenObjC/debug-info-class-extension3.m => DebugInfo/ObjC/class-extension3.m} (100%) rename clang/test/{CodeGenObjC/debug-info-crash-2.m => DebugInfo/ObjC/crash-2.m} (100%) rename clang/test/{CodeGenObjC/debug-info-crash.m => DebugInfo/ObjC/crash.m} (100%) rename clang/test/{CodeGenObjC/debug-info-default-synth-ivar.m => DebugInfo/ObjC/default-synth-ivar.m} (100%) rename clang/test/{CodeGenObjC/debug-info-direct-method.m => DebugInfo/ObjC/direct-method.m} (100%) rename clang/test/{CodeGenObjC/debug-info-fwddecl.m => DebugInfo/ObjC/fwddecl.m} (100%) rename clang/test/{CodeGenObjC/debug-info-getter-name.m => DebugInfo/ObjC/getter-name.m} (100%) rename clang/test/{CodeGenObjC/debug-info-id-with-protocol.m => DebugInfo/ObjC/id-with-protocol.m} (100%) rename clang/test/{CodeGenObjC/debug-info-impl.m => DebugInfo/ObjC/impl.m} (100%) rename clang/test/{CodeGenObjC/debug-info-instancetype.m => DebugInfo/ObjC/instancetype.m} (100%) rename clang/test/{CodeGenObjC/debug-info-ivars-extension.m => DebugInfo/ObjC/ivars-extension.m} (100%) rename clang/test/{CodeGenObjC/debug-info-ivars-indirect.m => DebugInfo/ObjC/ivars-indirect.m} (100%) rename clang/test/{CodeGenObjC/debug-info-ivars-private.m => DebugInfo/ObjC/ivars-private.m} (100%) rename clang/test/{CodeGenObjC/debug-info-ivars.m => DebugInfo/ObjC/ivars.m} (100%) rename clang/test/{CodeGenObjC => DebugInfo/ObjC}/layout-bitfield-crash.m (100%) rename clang/test/{CodeGenObjC/debug-info-lifetime-crash.m => DebugInfo/ObjC/lifetime-crash.m} (100%) rename clang/test/{CodeGenObjC/debug-info-linkagename.m => DebugInfo/ObjC/linkagename.m} (100%) rename clang/test/{CodeGenObjC/debug-info-nested-blocks.m => DebugInfo/ObjC/nested-blocks.m} (100%) rename clang/test/{CodeGenObjC/debug-info-nodebug.m => DebugInfo/ObjC/nodebug.m} (100%) rename clang/test/{CodeGenObjC => DebugInfo/ObjC}/nontrivial-c-struct-exception.m (100%) rename clang/test/{CodeGenObjC => DebugInfo/ObjC}/objc-fixed-enum.m (100%) rename clang/test/{CodeGenObjC/debug-info-objc-property-dwarf5.m => DebugInfo/ObjC/objc-property-dwarf5.m} (100%) rename clang/test/{CodeGenObjC/objc2-weak-ivar-debug.m => DebugInfo/ObjC/objc2-weak-ivar.m} (100%) rename clang/test/{CodeGenObjC/debuginfo-properties.m => DebugInfo/ObjC/properties.m} (100%) rename clang/test/{CodeGenObjC/property-dbg.m => DebugInfo/ObjC/property-2.m} (100%) rename clang/test/{CodeGenObjC/debug-info-property-accessors.m => DebugInfo/ObjC/property-accessors.m} (100%) rename clang/test/{CodeGenObjC/debug-info-property-class-extension.m => DebugInfo/ObjC/property-class-extension.m} (100%) rename clang/test/{CodeGenObjC/debug-info-property-class-instance-same-name.m => DebugInfo/ObjC/property-class-instance-same-name.m} (100%) rename clang/test/{CodeGenObjC/debug-property-synth.m => DebugInfo/ObjC/property-synth.m} (100%) rename clang/test/{CodeGenObjC/debug-info-property.m => DebugInfo/ObjC/property.m} (100%) rename clang/test/{CodeGenObjC/debug-info-property2.m => DebugInfo/ObjC/property2.m} (100%) rename clang/test/{CodeGenObjC/debug-info-property3.m => DebugInfo/ObjC/property3.m} (100%) rename clang/test/{CodeGenObjC/debug-info-property4.m => DebugInfo/ObjC/property4.m} (100%) rename clang/test/{CodeGenObjC/debug-info-property5.m => DebugInfo/ObjC/property5.m} (100%) rename clang/test/{CodeGenObjC/debug-info-pubtypes.m => DebugInfo/ObjC/pubtypes.m} (100%) rename clang/test/{CodeGenObjC/debug-info-selector.m => DebugInfo/ObjC/selector.m} (100%) rename clang/test/{CodeGenObjC/debug-info-self.m => DebugInfo/ObjC/self.m} (100%) rename clang/test/{CodeGenObjC/debug-info-static-var.m => DebugInfo/ObjC/static-var.m} (100%) rename clang/test/{CodeGenObjC/debug-info-synthesis.m => DebugInfo/ObjC/synthesis.m} (100%) rename clang/test/{CodeGenObjC => DebugInfo/ObjC}/ubsan-check-debuglocs.m (100%) rename clang/test/{CodeGenObjC/debug-info-variadic-method.m => DebugInfo/ObjC/variadic-method.m} (100%) diff --git a/clang/test/CodeGenObjC/2009-01-21-invalid-debug-info.m b/clang/test/DebugInfo/ObjC/2009-01-21-invalid.m similarity index 100% rename from clang/test/CodeGenObjC/2009-01-21-invalid-debug-info.m rename to clang/test/DebugInfo/ObjC/2009-01-21-invalid.m diff --git a/clang/test/CodeGenObjC/2010-02-09-DbgSelf.m b/clang/test/DebugInfo/ObjC/2010-02-09-Self.m similarity index 100% rename from clang/test/CodeGenObjC/2010-02-09-DbgSelf.m rename to clang/test/DebugInfo/ObjC/2010-02-09-Self.m diff --git a/clang/test/CodeGenObjC/2010-02-15-Dbg-MethodStart.m b/clang/test/DebugInfo/ObjC/2010-02-15-MethodStart.m similarity index 100% rename from clang/test/CodeGenObjC/2010-02-15-Dbg-MethodStart.m rename to clang/test/DebugInfo/ObjC/2010-02-15-MethodStart.m diff --git a/clang/test/CodeGenObjC/2010-02-23-DbgInheritance.m b/clang/test/DebugInfo/ObjC/2010-02-23-Inheritance.m similarity index 100% rename from clang/test/CodeGenObjC/2010-02-23-DbgInheritance.m rename to clang/test/DebugInfo/ObjC/2010-02-23-Inheritance.m diff --git a/clang/test/CodeGenObjC/arc-linetable-autorelease.m b/clang/test/DebugInfo/ObjC/arc-linetable-autorelease.m similarity index 100% rename from clang/test/CodeGenObjC/arc-linetable-autorelease.m rename to clang/test/DebugInfo/ObjC/arc-linetable-autorelease.m diff --git a/clang/test/CodeGenObjC/arc-linetable.m b/clang/test/DebugInfo/ObjC/arc-linetable.m similarity index 100% rename from clang/test/CodeGenObjC/arc-linetable.m rename to clang/test/DebugInfo/ObjC/arc-linetable.m diff --git a/clang/test/CodeGenObjC/block-byref-debuginfo.m b/clang/test/DebugInfo/ObjC/block-byref.m similarity index 100% rename from clang/test/CodeGenObjC/block-byref-debuginfo.m rename to clang/test/DebugInfo/ObjC/block-byref.m diff --git a/clang/test/CodeGenObjC/debug-info-block-helper.m b/clang/test/DebugInfo/ObjC/block-helper.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-block-helper.m rename to clang/test/DebugInfo/ObjC/block-helper.m diff --git a/clang/test/CodeGenObjC/debug-info-block-line.m b/clang/test/DebugInfo/ObjC/block-line.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-block-line.m rename to clang/test/DebugInfo/ObjC/block-line.m diff --git a/clang/test/CodeGenObjC/debug-info-block-type.m b/clang/test/DebugInfo/ObjC/block-type.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-block-type.m rename to clang/test/DebugInfo/ObjC/block-type.m diff --git a/clang/test/CodeGenObjC/blocks-ivar-debug.m b/clang/test/DebugInfo/ObjC/blocks-ivar.m similarity index 100% rename from clang/test/CodeGenObjC/blocks-ivar-debug.m rename to clang/test/DebugInfo/ObjC/blocks-ivar.m diff --git a/clang/test/CodeGenObjC/debug-info-blocks.m b/clang/test/DebugInfo/ObjC/blocks.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-blocks.m rename to clang/test/DebugInfo/ObjC/blocks.m diff --git a/clang/test/CodeGenObjC/catch-lexical-block.m b/clang/test/DebugInfo/ObjC/catch-lexical-block.m similarity index 100% rename from clang/test/CodeGenObjC/catch-lexical-block.m rename to clang/test/DebugInfo/ObjC/catch-lexical-block.m diff --git a/clang/test/CodeGenObjC/debug-info-category.m b/clang/test/DebugInfo/ObjC/category.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-category.m rename to clang/test/DebugInfo/ObjC/category.m diff --git a/clang/test/CodeGenObjC/debug-info-class-extension.m b/clang/test/DebugInfo/ObjC/class-extension.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-class-extension.m rename to clang/test/DebugInfo/ObjC/class-extension.m diff --git a/clang/test/CodeGenObjC/debug-info-class-extension2.m b/clang/test/DebugInfo/ObjC/class-extension2.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-class-extension2.m rename to clang/test/DebugInfo/ObjC/class-extension2.m diff --git a/clang/test/CodeGenObjC/debug-info-class-extension3.m b/clang/test/DebugInfo/ObjC/class-extension3.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-class-extension3.m rename to clang/test/DebugInfo/ObjC/class-extension3.m diff --git a/clang/test/CodeGenObjC/debug-info-crash-2.m b/clang/test/DebugInfo/ObjC/crash-2.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-crash-2.m rename to clang/test/DebugInfo/ObjC/crash-2.m diff --git a/clang/test/CodeGenObjC/debug-info-crash.m b/clang/test/DebugInfo/ObjC/crash.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-crash.m rename to clang/test/DebugInfo/ObjC/crash.m diff --git a/clang/test/CodeGenObjC/debug-info-default-synth-ivar.m b/clang/test/DebugInfo/ObjC/default-synth-ivar.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-default-synth-ivar.m rename to clang/test/DebugInfo/ObjC/default-synth-ivar.m diff --git a/clang/test/CodeGenObjC/debug-info-direct-method.m b/clang/test/DebugInfo/ObjC/direct-method.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-direct-method.m rename to clang/test/DebugInfo/ObjC/direct-method.m diff --git a/clang/test/CodeGenObjC/debug-info-fwddecl.m b/clang/test/DebugInfo/ObjC/fwddecl.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-fwddecl.m rename to clang/test/DebugInfo/ObjC/fwddecl.m diff --git a/clang/test/CodeGenObjC/debug-info-getter-name.m b/clang/test/DebugInfo/ObjC/getter-name.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-getter-name.m rename to clang/test/DebugInfo/ObjC/getter-name.m diff --git a/clang/test/CodeGenObjC/debug-info-id-with-protocol.m b/clang/test/DebugInfo/ObjC/id-with-protocol.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-id-with-protocol.m rename to clang/test/DebugInfo/ObjC/id-with-protocol.m diff --git a/clang/test/CodeGenObjC/debug-info-impl.m b/clang/test/DebugInfo/ObjC/impl.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-impl.m rename to clang/test/DebugInfo/ObjC/impl.m diff --git a/clang/test/CodeGenObjC/debug-info-instancetype.m b/clang/test/DebugInfo/ObjC/instancetype.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-instancetype.m rename to clang/test/DebugInfo/ObjC/instancetype.m diff --git a/clang/test/CodeGenObjC/debug-info-ivars-extension.m b/clang/test/DebugInfo/ObjC/ivars-extension.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-ivars-extension.m rename to clang/test/DebugInfo/ObjC/ivars-extension.m diff --git a/clang/test/CodeGenObjC/debug-info-ivars-indirect.m b/clang/test/DebugInfo/ObjC/ivars-indirect.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-ivars-indirect.m rename to clang/test/DebugInfo/ObjC/ivars-indirect.m diff --git a/clang/test/CodeGenObjC/debug-info-ivars-private.m b/clang/test/DebugInfo/ObjC/ivars-private.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-ivars-private.m rename to clang/test/DebugInfo/ObjC/ivars-private.m diff --git a/clang/test/CodeGenObjC/debug-info-ivars.m b/clang/test/DebugInfo/ObjC/ivars.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-ivars.m rename to clang/test/DebugInfo/ObjC/ivars.m diff --git a/clang/test/CodeGenObjC/layout-bitfield-crash.m b/clang/test/DebugInfo/ObjC/layout-bitfield-crash.m similarity index 100% rename from clang/test/CodeGenObjC/layout-bitfield-crash.m rename to clang/test/DebugInfo/ObjC/layout-bitfield-crash.m diff --git a/clang/test/CodeGenObjC/debug-info-lifetime-crash.m b/clang/test/DebugInfo/ObjC/lifetime-crash.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-lifetime-crash.m rename to clang/test/DebugInfo/ObjC/lifetime-crash.m diff --git a/clang/test/CodeGenObjC/debug-info-linkagename.m b/clang/test/DebugInfo/ObjC/linkagename.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-linkagename.m rename to clang/test/DebugInfo/ObjC/linkagename.m diff --git a/clang/test/CodeGenObjC/debug-info-nested-blocks.m b/clang/test/DebugInfo/ObjC/nested-blocks.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-nested-blocks.m rename to clang/test/DebugInfo/ObjC/nested-blocks.m diff --git a/clang/test/CodeGenObjC/debug-info-nodebug.m b/clang/test/DebugInfo/ObjC/nodebug.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-nodebug.m rename to clang/test/DebugInfo/ObjC/nodebug.m diff --git a/clang/test/CodeGenObjC/nontrivial-c-struct-exception.m b/clang/test/DebugInfo/ObjC/nontrivial-c-struct-exception.m similarity index 100% rename from clang/test/CodeGenObjC/nontrivial-c-struct-exception.m rename to clang/test/DebugInfo/ObjC/nontrivial-c-struct-exception.m diff --git a/clang/test/CodeGenObjC/objc-fixed-enum.m b/clang/test/DebugInfo/ObjC/objc-fixed-enum.m similarity index 100% rename from clang/test/CodeGenObjC/objc-fixed-enum.m rename to clang/test/DebugInfo/ObjC/objc-fixed-enum.m diff --git a/clang/test/CodeGenObjC/debug-info-objc-property-dwarf5.m b/clang/test/DebugInfo/ObjC/objc-property-dwarf5.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-objc-property-dwarf5.m rename to clang/test/DebugInfo/ObjC/objc-property-dwarf5.m diff --git a/clang/test/CodeGenObjC/objc2-weak-ivar-debug.m b/clang/test/DebugInfo/ObjC/objc2-weak-ivar.m similarity index 100% rename from clang/test/CodeGenObjC/objc2-weak-ivar-debug.m rename to clang/test/DebugInfo/ObjC/objc2-weak-ivar.m diff --git a/clang/test/CodeGenObjC/debuginfo-properties.m b/clang/test/DebugInfo/ObjC/properties.m similarity index 100% rename from clang/test/CodeGenObjC/debuginfo-properties.m rename to clang/test/DebugInfo/ObjC/properties.m diff --git a/clang/test/CodeGenObjC/property-dbg.m b/clang/test/DebugInfo/ObjC/property-2.m similarity index 100% rename from clang/test/CodeGenObjC/property-dbg.m rename to clang/test/DebugInfo/ObjC/property-2.m diff --git a/clang/test/CodeGenObjC/debug-info-property-accessors.m b/clang/test/DebugInfo/ObjC/property-accessors.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-property-accessors.m rename to clang/test/DebugInfo/ObjC/property-accessors.m diff --git a/clang/test/CodeGenObjC/debug-info-property-class-extension.m b/clang/test/DebugInfo/ObjC/property-class-extension.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-property-class-extension.m rename to clang/test/DebugInfo/ObjC/property-class-extension.m diff --git a/clang/test/CodeGenObjC/debug-info-property-class-instance-same-name.m b/clang/test/DebugInfo/ObjC/property-class-instance-same-name.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-property-class-instance-same-name.m rename to clang/test/DebugInfo/ObjC/property-class-instance-same-name.m diff --git a/clang/test/CodeGenObjC/debug-property-synth.m b/clang/test/DebugInfo/ObjC/property-synth.m similarity index 100% rename from clang/test/CodeGenObjC/debug-property-synth.m rename to clang/test/DebugInfo/ObjC/property-synth.m diff --git a/clang/test/CodeGenObjC/debug-info-property.m b/clang/test/DebugInfo/ObjC/property.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-property.m rename to clang/test/DebugInfo/ObjC/property.m diff --git a/clang/test/CodeGenObjC/debug-info-property2.m b/clang/test/DebugInfo/ObjC/property2.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-property2.m rename to clang/test/DebugInfo/ObjC/property2.m diff --git a/clang/test/CodeGenObjC/debug-info-property3.m b/clang/test/DebugInfo/ObjC/property3.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-property3.m rename to clang/test/DebugInfo/ObjC/property3.m diff --git a/clang/test/CodeGenObjC/debug-info-property4.m b/clang/test/DebugInfo/ObjC/property4.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-property4.m rename to clang/test/DebugInfo/ObjC/property4.m diff --git a/clang/test/CodeGenObjC/debug-info-property5.m b/clang/test/DebugInfo/ObjC/property5.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-property5.m rename to clang/test/DebugInfo/ObjC/property5.m diff --git a/clang/test/CodeGenObjC/debug-info-pubtypes.m b/clang/test/DebugInfo/ObjC/pubtypes.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-pubtypes.m rename to clang/test/DebugInfo/ObjC/pubtypes.m diff --git a/clang/test/CodeGenObjC/debug-info-selector.m b/clang/test/DebugInfo/ObjC/selector.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-selector.m rename to clang/test/DebugInfo/ObjC/selector.m diff --git a/clang/test/CodeGenObjC/debug-info-self.m b/clang/test/DebugInfo/ObjC/self.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-self.m rename to clang/test/DebugInfo/ObjC/self.m diff --git a/clang/test/CodeGenObjC/debug-info-static-var.m b/clang/test/DebugInfo/ObjC/static-var.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-static-var.m rename to clang/test/DebugInfo/ObjC/static-var.m diff --git a/clang/test/CodeGenObjC/debug-info-synthesis.m b/clang/test/DebugInfo/ObjC/synthesis.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-synthesis.m rename to clang/test/DebugInfo/ObjC/synthesis.m diff --git a/clang/test/CodeGenObjC/ubsan-check-debuglocs.m b/clang/test/DebugInfo/ObjC/ubsan-check-debuglocs.m similarity index 100% rename from clang/test/CodeGenObjC/ubsan-check-debuglocs.m rename to clang/test/DebugInfo/ObjC/ubsan-check-debuglocs.m diff --git a/clang/test/CodeGenObjC/debug-info-variadic-method.m b/clang/test/DebugInfo/ObjC/variadic-method.m similarity index 100% rename from clang/test/CodeGenObjC/debug-info-variadic-method.m rename to clang/test/DebugInfo/ObjC/variadic-method.m From 235b1bc469d9feab5915b1983a97074453a0e8b7 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Tue, 26 Aug 2025 10:35:29 +0200 Subject: [PATCH 4/5] [clang][DebugInfo][test] Move debug-info tests from CodeGenObjCXX to DebugInfo directory (#154912) This patch works towards consolidating all Clang debug-info into the `clang/test/DebugInfo` directory (https://discourse.llvm.org/t/clang-test-location-of-clang-debug-info-tests/87958). Here we move only the `clang/test/CodeGenObjCXX` tests. The list of files i came up with is: 1. searched for anything with `*debug-info*` in the filename 2. searched for occurrences of `debug-info-kind` in the tests (cherry picked from commit bac8c8784c848f1dd7ddf44a9a463e6c15c6e594) --- .../ObjCXX/block-capture-this.mm} | 0 .../debug-info-cyclic.mm => DebugInfo/ObjCXX/cyclic.mm} | 0 clang/test/{CodeGenObjCXX => DebugInfo/ObjCXX}/debug-info.mm | 0 .../debug-info-line.mm => DebugInfo/ObjCXX/line.mm} | 0 .../test/{CodeGenObjCXX => DebugInfo/ObjCXX}/nested-ehlocation.mm | 0 .../ObjCXX}/pr14474-gline-tables-only.mm | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename clang/test/{CodeGenObjCXX/debug-info-block-capture-this.mm => DebugInfo/ObjCXX/block-capture-this.mm} (100%) rename clang/test/{CodeGenObjCXX/debug-info-cyclic.mm => DebugInfo/ObjCXX/cyclic.mm} (100%) rename clang/test/{CodeGenObjCXX => DebugInfo/ObjCXX}/debug-info.mm (100%) rename clang/test/{CodeGenObjCXX/debug-info-line.mm => DebugInfo/ObjCXX/line.mm} (100%) rename clang/test/{CodeGenObjCXX => DebugInfo/ObjCXX}/nested-ehlocation.mm (100%) rename clang/test/{CodeGenObjCXX => DebugInfo/ObjCXX}/pr14474-gline-tables-only.mm (100%) diff --git a/clang/test/CodeGenObjCXX/debug-info-block-capture-this.mm b/clang/test/DebugInfo/ObjCXX/block-capture-this.mm similarity index 100% rename from clang/test/CodeGenObjCXX/debug-info-block-capture-this.mm rename to clang/test/DebugInfo/ObjCXX/block-capture-this.mm diff --git a/clang/test/CodeGenObjCXX/debug-info-cyclic.mm b/clang/test/DebugInfo/ObjCXX/cyclic.mm similarity index 100% rename from clang/test/CodeGenObjCXX/debug-info-cyclic.mm rename to clang/test/DebugInfo/ObjCXX/cyclic.mm diff --git a/clang/test/CodeGenObjCXX/debug-info.mm b/clang/test/DebugInfo/ObjCXX/debug-info.mm similarity index 100% rename from clang/test/CodeGenObjCXX/debug-info.mm rename to clang/test/DebugInfo/ObjCXX/debug-info.mm diff --git a/clang/test/CodeGenObjCXX/debug-info-line.mm b/clang/test/DebugInfo/ObjCXX/line.mm similarity index 100% rename from clang/test/CodeGenObjCXX/debug-info-line.mm rename to clang/test/DebugInfo/ObjCXX/line.mm diff --git a/clang/test/CodeGenObjCXX/nested-ehlocation.mm b/clang/test/DebugInfo/ObjCXX/nested-ehlocation.mm similarity index 100% rename from clang/test/CodeGenObjCXX/nested-ehlocation.mm rename to clang/test/DebugInfo/ObjCXX/nested-ehlocation.mm diff --git a/clang/test/CodeGenObjCXX/pr14474-gline-tables-only.mm b/clang/test/DebugInfo/ObjCXX/pr14474-gline-tables-only.mm similarity index 100% rename from clang/test/CodeGenObjCXX/pr14474-gline-tables-only.mm rename to clang/test/DebugInfo/ObjCXX/pr14474-gline-tables-only.mm From c208eff86a99033938e9a6845ad9e91c90ba8638 Mon Sep 17 00:00:00 2001 From: David Tenty Date: Fri, 22 Aug 2025 11:53:05 -0400 Subject: [PATCH 5/5] [clang][DebugInfo] Disable objective-C tests on AIX and z/OS (#154951) These tests don't work due to limitations in backend support, so it's better to mark them uniformly unsupported on AIX and z/OS. (cherry picked from commit f9bd1876c96d815c9fdece2a990ed712561250ec) --- clang/test/DebugInfo/ObjC/lit.local.cfg | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 clang/test/DebugInfo/ObjC/lit.local.cfg diff --git a/clang/test/DebugInfo/ObjC/lit.local.cfg b/clang/test/DebugInfo/ObjC/lit.local.cfg new file mode 100644 index 0000000000000..b48f68b01581d --- /dev/null +++ b/clang/test/DebugInfo/ObjC/lit.local.cfg @@ -0,0 +1,5 @@ +# objective-C is not supported on AIX and zOS +unsupported_platforms = [ "system-aix", "system-zos" ] + +if any(up in config.available_features for up in unsupported_platforms): + config.unsupported = True