[llvm] [llvm][unittests] Put human-readable names on TargetParserTests. NFC (PR #80749)

Francesco Petrogalli via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 6 08:53:07 PST 2024


================
@@ -163,6 +163,15 @@ template <typename T> struct ARMCPUTestParams {
     return os;
   }
 
+  static std::string
+  PrintToStringParamName(const testing::TestParamInfo<ARMCPUTestParams<T>>& Info) {
+    std::string Name = Info.param.CPUName.str();
+    for (char &C : Name)
+      if (!std::isalnum(C))
----------------
fpetrogalli wrote:

Worth adding a comment mentioning the requirement from the suite

https://github.com/llvm/llvm-project/pull/80749


More information about the llvm-commits mailing list