[PATCH] D42712: [utils] Add utils/update_cc_test_checks.py
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 12 10:40:22 PST 2018
MaskRay added a comment.
Thanks everyone for review! https://reviews.llvm.org/D42805 has landed (refactoring utils/update* scripts so that this new script can re-use the CHECK line parsing and adding functionality).
should we push forward this one?
`c-index-test` is awesome. Different name mangling is now supported:
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang -emit-llvm -S -Os -DXX %s -o - | FileCheck %s
// RUN: %clang -emit-llvm -S -Os %s -o - | FileCheck %s
struct A {};
struct B {};
using T =
#ifdef XX
A
#else
B
#endif
;
// CHECK-LABEL: _Z3foo1A:
// CHECK: entry:
// CHECK-NEXT: ret void
// CHECK-LABEL: _Z3foo1B:
// CHECK: entry:
// CHECK-NEXT: ret void
T foo(T x) {
return x;
}
OT: It seems I can use `arc diff refactor-update_test_checks` to make this revision dependent on another git branch (`refactor-update_test_checks`).
Repository:
rL LLVM
https://reviews.llvm.org/D42712
More information about the llvm-commits
mailing list