[PATCH] D126832: [clang][tablegen] adds human documentation to `WarningOption`

Christopher Di Bella via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 2 15:23:47 PDT 2022


cjdb added a comment.

In D126832#3553569 <https://reviews.llvm.org/D126832#3553569>, @aaron.ballman wrote:

> Can you post some examples of the output from this option so we can see what the end results look like more easily?

Right now this doesn't do anything at all, except feed the documentation from tablegen to Clang. It's just taking the text (represented by `...`) from `code Documentation [{...}]`, trimming any surrounding spaces, and putting that into `DIAG_ENTRY`.

e.g.

  code Documentation [{
    Hello, world!
  
    Goodbye, world!
  }]

would be forwarded as `"Hello, world!\n\n  Goodbye, world!"`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126832



More information about the cfe-commits mailing list