Author: Fangrui Song Date: 2021-02-01T22:51:29-08:00 New Revision: af6be9a7bb0fca891ec60138608902cd37b9f84f
URL: https://github.com/llvm/llvm-project/commit/af6be9a7bb0fca891ec60138608902cd37b9f84f DIFF: https://github.com/llvm/llvm-project/commit/af6be9a7bb0fca891ec60138608902cd37b9f84f.diff LOG: [test] Fix unused FileCheck prefixes in clang-tidy and one llvm/test/Reduce test Added: Modified: clang-tools-extra/test/clang-tidy/checkers/modernize-loop-convert-reverse.cpp llvm/test/Reduce/remove-function-bodies-used-in-globals.ll Removed: ################################################################################ diff --git a/clang-tools-extra/test/clang-tidy/checkers/modernize-loop-convert-reverse.cpp b/clang-tools-extra/test/clang-tidy/checkers/modernize-loop-convert-reverse.cpp index 63da130e74c6..c82c29173604 100644 --- a/clang-tools-extra/test/clang-tidy/checkers/modernize-loop-convert-reverse.cpp +++ b/clang-tools-extra/test/clang-tidy/checkers/modernize-loop-convert-reverse.cpp @@ -30,6 +30,13 @@ // RUN: | FileCheck %s -check-prefix=CHECK-HEADER-NO-FUNC \ // RUN: -implicit-check-not="{{warning|error}}:" +/// Suppress FileCheck --allow-unused-prefixes=false diagnostics. +// CHECK-MESSAGES-RANGES: {{^}} +// CHECK-MESSAGES-CUSTOM: {{^}} +// CHECK-MESSAGES-CUSTOM-SYS: {{^}} +// CHECK-MESSAGES-CUSTOM-NO-SYS: {{^}} +// CHECK-MESSAGES-CUSTOM-NO-HEADER: {{^}} + // CHECK-HEADER-NO-FUNC: warning: modernize-loop-convert: 'MakeReverseRangeHeader' is set but 'MakeReverseRangeFunction' is not, disabling reverse loop transformation // Make sure appropiate headers are included diff --git a/llvm/test/Reduce/remove-function-bodies-used-in-globals.ll b/llvm/test/Reduce/remove-function-bodies-used-in-globals.ll index 6e441c231287..0832456b6bf0 100644 --- a/llvm/test/Reduce/remove-function-bodies-used-in-globals.ll +++ b/llvm/test/Reduce/remove-function-bodies-used-in-globals.ll @@ -1,5 +1,5 @@ -; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t -; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s +; RUN: llvm-reduce --test FileCheck --test-arg --check-prefix=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t +; RUN: FileCheck --check-prefix=CHECK-FINAL %s < %t ; We cannot change the @alias to undef, because it would result in invalid IR ; (Aliasee should be either GlobalValue or ConstantExpr). _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits