[PATCH] D29898: [Support] Add format_provider for StringLiteral

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 13 12:54:42 PST 2017


dblaikie added inline comments.


================
Comment at: include/llvm/Support/FormatProviders.h:49-50
     : public std::integral_constant<
-          bool, is_one_of<T, llvm::StringRef, std::string>::value ||
+          bool, is_one_of<T, llvm::StringRef, llvm::StringLiteral,
+                          std::string>::value ||
                     is_cstring<T>::value> {};
----------------
Perhaps this should use "is_convertible" which would match the implementation (well, not quite - the implementation should probably use "StringRef S = V" rather than StringRef S(V))?


https://reviews.llvm.org/D29898





More information about the llvm-commits mailing list