We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7795d9e commit 1cc3d14Copy full SHA for 1cc3d14
mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp
@@ -21,6 +21,7 @@
21
#include "llvm/Support/FormatVariadic.h"
22
#include "llvm/TableGen/Error.h"
23
#include "llvm/TableGen/Record.h"
24
+#include <regex>
25
26
using namespace mlir;
27
using namespace mlir::tblgen;
@@ -1043,7 +1044,7 @@ static std::string makeDocStringForOp(const Operator &op) {
1043
1044
1045
auto desc = op.getDescription().rtrim(" \t").str();
1046
// Replace all """ with \"\"\" to avoid early termination of the literal.
- desc = llvm::join(llvm::split(desc, R"(""")"), R"(\"\"\")");
1047
+ desc = std::regex_replace(desc, std::regex(R"(""")"), R"(\"\"\")");
1048
1049
std::string docString = "\n";
1050
llvm::raw_string_ostream os(docString);
0 commit comments