DiegoAstiazaran added inline comments.

================
Comment at: clang-tools-extra/clang-doc/HTMLGenerator.cpp:91
+struct HTMLFile {
+  llvm::SmallString<16> DoctypeDecl{"<!DOCTYPE html>"};
+  std::vector<std::unique_ptr<HTMLNode>> Children; // List of child nodes
----------------
jakehehrlich wrote:
> Does this ever change? If not this should be a global constexpr constant 
> char* inside of an anon-namespace.
> 
> e.g.
> 
> namespace {
>   constexpr const char* kDoctypeDecl = "...";
> }
In HTML5 it's always `<!DOCTYPE html>` so I've already changed it in the latest 
patch.


================
Comment at: clang-tools-extra/clang-doc/HTMLGenerator.cpp:170
+    OS << " " << A.getKey() << "=\"" << A.getValue() << "\"";
+  OS << (SelfClosing ? "/>" : ">");
+  if (!InlineChildren)
----------------
jakehehrlich wrote:
> You can exit here if its self closing right?
Yes, fixed in the latest patch update.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63857/new/

https://reviews.llvm.org/D63857



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to