owenpan added inline comments.
================ Comment at: lib/Format/NamespaceEndCommentsFixer.cpp:128-133 + // Detect "(inline|export)? namespace" in the beginning of a line. + if (NamespaceTok->is(tok::kw_inline) || NamespaceTok->is(tok::kw_export)) NamespaceTok = NamespaceTok->getNextNonComment(); if (!NamespaceTok || NamespaceTok->isNot(tok::kw_namespace)) return nullptr; return NamespaceTok; ---------------- owenpan wrote: > These lines are functionally the same as lines 523-528 in FormatToken.h. > Refactor them? I think this is better: ``` return NamespaceTok->getNamespaceToken(); ``` Repository: rC Clang https://reviews.llvm.org/D51036 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits