tra added inline comments.
================ Comment at: clang/test/Driver/openmp-offload-gpu-new.c:117 + +// CHECK-LTO-FEATURES: clang-offload-packager{{.*}}feature={{.*}}ptx ---------------- jhuber6 wrote: > tra wrote: > > This should probably be a bit more specific/verbose. E.g. I'd want to make > > sure that `feature=` is part of the `--image` argument and that ptx belongs > > to it and is not part of some other argument (or even a file name > > extension). > Sure, I was just hesitant to make it super specific since the specific > feature will change depending on the CUDA installation (or lack thereof). I'm all for concise tests as long as they: - express what you want to verify in a way that the reader would be able to understand w/o having to look at the source code. - are reasonably robust and do not produce false positives. `.*` wildcards make it very easy to match things unintentionally. Their use should be carefully restricted. I wish FileCheck would have some sort of nested match check. E.g. ``` ; CHECK : [[CANDIDATE:--option.*?\s+]] ; CHECK: [[SUBMATCH1: match something within [[CANDIDATE]]]] ; CHECK: [[SUBMATCH2: match something within [[SUBMATCH1]]]] ``` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127686/new/ https://reviews.llvm.org/D127686 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits