[Mlir-commits] [llvm] [mlir] [MLIR] Make generated markdown doc more consistent (PR #119926)
Mehdi Amini
llvmlistbot at llvm.org
Fri Dec 13 16:13:18 PST 2024
================
@@ -54,12 +54,12 @@ cl::opt<bool> allowHugoSpecificFeatures(
cl::cat(docCat));
void mlir::tblgen::emitSummary(StringRef summary, raw_ostream &os) {
- if (!summary.empty()) {
- StringRef trimmed = summary.trim();
- char first = std::toupper(trimmed.front());
- StringRef rest = trimmed.drop_front();
- os << "\n_" << first << rest << "_\n\n";
- }
+ if (summary.empty())
+ return;
+ StringRef trimmed = summary.trim();
+ char first = std::toupper(trimmed.front());
+ StringRef rest = trimmed.drop_front();
+ os << "\n_" << first << rest << "_\n";
----------------
joker-eph wrote:
Is there anything that changed here or is this NFC (just using early-exit)
https://github.com/llvm/llvm-project/pull/119926
More information about the Mlir-commits
mailing list