[PATCH] D95499: [NFC] Disallow unused prefixes under clang/test/CodeGenCXX
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGcfcc1110d773: [NFC] Disallow unused prefixes under clang/test/CodeGenCXX (authored by mtrofin). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D95499/new/ https://reviews.llvm.org/D95499 Files: clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp clang/test/CodeGenCXX/lit.local.cfg Index: clang/test/CodeGenCXX/lit.local.cfg === --- /dev/null +++ clang/test/CodeGenCXX/lit.local.cfg @@ -0,0 +1,9 @@ +# -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79: +from lit.llvm.subst import ToolSubst + +fc = ToolSubst('FileCheck', unresolved='fatal') +# Insert this first. Then, we'll first update the blank FileCheck command; then, +# the default substitution of FileCheck will replace it to its full path. +config.substitutions.insert(0, (fc.regex, +'FileCheck --allow-unused-prefixes=false')) + Index: clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp === --- clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp +++ clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp @@ -1,19 +1,19 @@ // RUN: %clang_cc1 -fblocks -debug-info-kind=limited -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null -std=c++98 | \ // RUN:grep -E 'DISubprogram|DICompositeType' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ -// RUN:FileCheck %s --check-prefix=CHECK --check-prefix=UNQUAL +// RUN:FileCheck %s --check-prefixes=CHECK,UNQUAL // RUN: %clang_cc1 -fblocks -debug-info-kind=line-tables-only -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null -std=c++98 | \ // RUN:grep 'DISubprogram' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ -// RUN:FileCheck %s --check-prefix=CHECK --check-prefix=QUAL +// RUN:FileCheck %s // RUN: %clang_cc1 -fblocks -debug-info-kind=limited -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null -std=c++11 | \ // RUN:grep -E 'DISubprogram|DICompositeType' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ -// RUN:FileCheck %s --check-prefix=CHECK --check-prefix=UNQUAL +// RUN:FileCheck %s --check-prefixes=CHECK,UNQUAL // RUN: %clang_cc1 -fblocks -debug-info-kind=limited -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null | \ // RUN:grep -E 'DISubprogram|DICompositeType' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ -// RUN:FileCheck %s --check-prefix=CHECK --check-prefix=UNQUAL +// RUN:FileCheck %s --check-prefixes=CHECK,UNQUAL void freefunc() { } // CHECK-DAG: "freefunc" Index: clang/test/CodeGenCXX/lit.local.cfg === --- /dev/null +++ clang/test/CodeGenCXX/lit.local.cfg @@ -0,0 +1,9 @@ +# -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79: +from lit.llvm.subst import ToolSubst + +fc = ToolSubst('FileCheck', unresolved='fatal') +# Insert this first. Then, we'll first update the blank FileCheck command; then, +# the default substitution of FileCheck will replace it to its full path. +config.substitutions.insert(0, (fc.regex, +'FileCheck --allow-unused-prefixes=false')) + Index: clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp === --- clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp +++ clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp @@ -1,19 +1,19 @@ // RUN: %clang_cc1 -fblocks -debug-info-kind=limited -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null -std=c++98 | \ // RUN:grep -E 'DISubprogram|DICompositeType' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ -// RUN:FileCheck %s --check-prefix=CHECK --check-prefix=UNQUAL +// RUN:FileCheck %s --check-prefixes=CHECK,UNQUAL // RUN: %clang_cc1 -fblocks -debug-info-kind=line-tables-only -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null -std=c++98 | \ // RUN:grep 'DISubprogram' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ -// RUN:FileCheck %s --check-prefix=CHECK --check-prefix=QUAL +// RUN:FileCheck %s // RUN: %clang_cc1 -fblocks -debug-info-kind=limited -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null -std=c++11 | \ // RUN:grep -E 'DISubprogram|DICompositeType' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ -// RUN:FileCheck %s --check-prefix=CHECK --check-prefix=UNQUAL +// RUN:FileCheck %s --check-prefixes=CHECK,UNQUAL // RUN: %clang_cc1 -fblocks -debug-info-kind=limited -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null | \
[PATCH] D95499: [NFC] Disallow unused prefixes under clang/test/CodeGenCXX
rnk accepted this revision. rnk added a subscriber: akhuang. rnk added a comment. This revision is now accepted and ready to land. lgtm I believe @akhuang's recent change to this file made it so debug info names are unqualified in all modes. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D95499/new/ https://reviews.llvm.org/D95499 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D95499: [NFC] Disallow unused prefixes under clang/test/CodeGenCXX
mtrofin created this revision. mtrofin added a reviewer: rnk. mtrofin requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. The only test that needed change had 'QUAL' as an unused prefix. The rest of the changes are to simplify the prefix lists. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D95499 Files: clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp clang/test/CodeGenCXX/lit.local.cfg Index: clang/test/CodeGenCXX/lit.local.cfg === --- /dev/null +++ clang/test/CodeGenCXX/lit.local.cfg @@ -0,0 +1,9 @@ +# -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79: +from lit.llvm.subst import ToolSubst + +fc = ToolSubst('FileCheck', unresolved='fatal') +# Insert this first. Then, we'll first update the blank FileCheck command; then, +# the default substitution of FileCheck will replace it to its full path. +config.substitutions.insert(0, (fc.regex, +'FileCheck --allow-unused-prefixes=false')) + Index: clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp === --- clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp +++ clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp @@ -1,19 +1,19 @@ // RUN: %clang_cc1 -fblocks -debug-info-kind=limited -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null -std=c++98 | \ // RUN:grep -E 'DISubprogram|DICompositeType' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ -// RUN:FileCheck %s --check-prefix=CHECK --check-prefix=UNQUAL +// RUN:FileCheck %s --check-prefixes=CHECK,UNQUAL // RUN: %clang_cc1 -fblocks -debug-info-kind=line-tables-only -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null -std=c++98 | \ // RUN:grep 'DISubprogram' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ -// RUN:FileCheck %s --check-prefix=CHECK --check-prefix=QUAL +// RUN:FileCheck %s // RUN: %clang_cc1 -fblocks -debug-info-kind=limited -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null -std=c++11 | \ // RUN:grep -E 'DISubprogram|DICompositeType' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ -// RUN:FileCheck %s --check-prefix=CHECK --check-prefix=UNQUAL +// RUN:FileCheck %s --check-prefixes=CHECK,UNQUAL // RUN: %clang_cc1 -fblocks -debug-info-kind=limited -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null | \ // RUN:grep -E 'DISubprogram|DICompositeType' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ -// RUN:FileCheck %s --check-prefix=CHECK --check-prefix=UNQUAL +// RUN:FileCheck %s --check-prefixes=CHECK,UNQUAL void freefunc() { } // CHECK-DAG: "freefunc" Index: clang/test/CodeGenCXX/lit.local.cfg === --- /dev/null +++ clang/test/CodeGenCXX/lit.local.cfg @@ -0,0 +1,9 @@ +# -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79: +from lit.llvm.subst import ToolSubst + +fc = ToolSubst('FileCheck', unresolved='fatal') +# Insert this first. Then, we'll first update the blank FileCheck command; then, +# the default substitution of FileCheck will replace it to its full path. +config.substitutions.insert(0, (fc.regex, +'FileCheck --allow-unused-prefixes=false')) + Index: clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp === --- clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp +++ clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp @@ -1,19 +1,19 @@ // RUN: %clang_cc1 -fblocks -debug-info-kind=limited -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null -std=c++98 | \ // RUN:grep -E 'DISubprogram|DICompositeType' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ -// RUN:FileCheck %s --check-prefix=CHECK --check-prefix=UNQUAL +// RUN:FileCheck %s --check-prefixes=CHECK,UNQUAL // RUN: %clang_cc1 -fblocks -debug-info-kind=line-tables-only -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null -std=c++98 | \ // RUN:grep 'DISubprogram' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ -// RUN:FileCheck %s --check-prefix=CHECK --check-prefix=QUAL +// RUN:FileCheck %s // RUN: %clang_cc1 -fblocks -debug-info-kind=limited -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null -std=c++11 | \ // RUN:grep -E 'DISubprogram|DICompositeType' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ -// RUN:FileCheck %s --check-prefix=CHECK --check-prefix=UNQUAL +// RUN:FileCheck %s --check-prefixes=CHECK,UNQUAL // RUN: %clang_cc1 -fblocks -debug-info-kind=limited -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -Wno-new-returns-null | \ // RUN: