[patch] tblgen: Modularize the diagnostic emitter

Tobias Grosser tobias at grosser.es
Tue May 6 00:49:33 PDT 2014


Ping.

On 26/02/2014 13:23, Tobias Grosser wrote:
> Hi,
>
> I would like to commit this patch (mostly mechanical)
>
> [PATCH] tblgen: Modularize the diagnostic emitter
>
> Replace a large monolithic function with per-table functions which all
> nicely fit on my screen. I also added documentation to each function
> that describes what kind of tables are generated and which information
> is contained. Finally, I run clang-format over the moved code.
>
> I spent a significant amount of time to understand this code when
> reasoning about possible extensions to the diagnostic interface to
> support 'remark' diagnostics. This change will definitely help such an
> implementation, but already by itself it will save other people a lot of
> time when trying to understand this functionality.
>
> Even though the patch touches the full function, it is mostly
> mechanical. No functional change intended. The generated tblgen files
> are identical.
> ---
>   utils/TableGen/ClangDiagnosticsEmitter.cpp | 257
> +++++++++++++++++++++--------
>   1 file changed, 185 insertions(+), 72 deletions(-)
>
> As it touches a couple of lines, I would appreciate a quick review.
>
> Cheers,
> Tobias
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-tblgen-Modularize-the-diagnostic-emitter.patch
Type: text/x-patch
Size: 15796 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140506/2d8e643f/attachment.bin>


More information about the cfe-commits mailing list