[PATCH] D43424: [clang-doc] Implement a (simple) Markdown generator
Leonard Chan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 9 16:56:33 PDT 2018
leonardchan accepted this revision.
leonardchan added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang-tools-extra/clang-doc/MDGenerator.cpp:79
+
+void writeHeader(const Twine &Text, int Num, raw_ostream &OS) {
+ OS << std::string(Num, '#') + " " + Text << "\n";
----------------
nit: make `Num` unsigned since the `std::string` fill ctor takes an unsigned value
https://reviews.llvm.org/D43424
More information about the cfe-commits
mailing list