MyDeveloperDay marked an inline comment as done. MyDeveloperDay added inline comments.
================ Comment at: clang/docs/tools/dump_format_style.py:175 + val = line.replace(',', '') + pos = val.find(" // ") + if (pos != -1): ---------------- MyDeveloperDay wrote: > mitchell-stellar wrote: > > MyDeveloperDay wrote: > > > mitchell-stellar wrote: > > > > This seems quite flimsy to me, as it depends on an undocumented comment > > > > style. It is true that if the file(s) in question are properly > > > > clang-formatted, then this would probably not fail, but it does not > > > > appear to be a very robust solution. > > > I'd tend to agree, but this whole dump_format_style.py is flimsy.. take a > > > look at this review {D31574} > > > > > > When you added this line, you forgot the third / > > > > > > ```// Different ways to wrap braces after control statements.``` > > > > > > Also, the extra empty line in the LanguageStandard both caused the whole > > > python file to fail with an exception. > > > > > > Do you have a suggestion for something better? (which doesn't leave the > > > Format.h looking too odd) > > I would go back to the `/// c++03: Parse and format as C++03.` style. `///` > > is a Doxygen comment, and I think documentation should be generated solely > > from Doxygen comments, even if it requires a bit of post-processing. (The > > extra `/` needed after `//` in the ticket you mentioned is justified.) > The Doxygen documentation is used for source-level documentation, this is > user-level documentation which the restructured text output .rst is used. > > In the past the ClangFormatStyleOpions.rst has been generated from the > Format.h via this script, we should break that. > > The "In configuation" part is super important because it explains to user > what to put into their .clang-format file. > > We have to either have some form of markup that says `LS_Cpp03 == c++03` in > the documentation *we shouldn't break that* Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D69433/new/ https://reviews.llvm.org/D69433 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits