[PATCH] D92409: [AST][NFC] Silence GCC warning about multiline comments

Thomas Preud'homme via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 7 02:56:13 PST 2021


thopre added a comment.

In D92409#2481300 <https://reviews.llvm.org/D92409#2481300>, @rjmccall wrote:

> People can't actually just copy/paste from the comment anyway because of the comment characters on the line, and I don't think anyone will misunderstand the example if the backslash is missing.  It's silly that GCC has a problem with this, but since it does, let's just work around the problem and drop the backslash rather than having one comment block in the header use a different style.

They can from the online documentation (https://clang.llvm.org/doxygen/classclang_1_1OMPDeclareReductionDecl.html#details) but since other approaches are unfortunately not working this is probably the best approach indeed.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D92409



More information about the cfe-commits mailing list