NoQ marked an inline comment as done.
NoQ added inline comments.

================
Comment at: 
clang-tools-extra/clang-tidy/readability/NamespaceCommentCheck.cpp:110-111
+      Lexer::getSourceText(TextRange, Sources, getLangOpts())
+          .rtrim('{') // Drop the { itself.
+          .rtrim();   // Drop any whitespace before it.
   bool IsNested = NestedNamespaceName.contains(':');
----------------
alexfh wrote:
> This all seems rather hacky. I believe, this will fail miserably when there 
> are comments before the `{`. Can you leave a FIXME to rewrite this logic in 
> terms of tokens instead?
I wonder why did people have to do this in the first place. Like, isn't such 
information supposed to be available in the AST?


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

https://reviews.llvm.org/D59977



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

Reply via email to