rsmith added inline comments.
================ Comment at: include/clang/Basic/DiagnosticGroups.td:164 +def ExtraSemiStmt : DiagGroup<"extra-semi-stmt">; +def EmptyInitStatement : DiagGroup<"empty-init-stmt">; def ExtraSemi : DiagGroup<"extra-semi", [CXX98CompatExtraSemi, ---------------- I think this should either be folded into `-Wextra-semi-stmt` or should perhaps be a subgroup of it. ================ Comment at: include/clang/Basic/DiagnosticGroups.td:167-168 + CXX11ExtraSemi, + ExtraSemiStmt, + EmptyInitStatement]>; ---------------- I would prefer to keep `-Wextra-semi` and `-Wextra-semi-stmt` separate. `-Wextra-semi` is for those cases that are ill-formed in C++98, whereas your new warning is only about code style / typo detection. ================ Comment at: lib/Parse/ParseStmt.cpp:1600 + llvm::Optional<SourceLocation> EmptyInitStmtSemiLoc; + ---------------- You can just use a `SourceLocation` here; it already has an 'invalid' state. Repository: rC Clang https://reviews.llvm.org/D52695 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits