[cfe-commits] r140478 - in /cfe/trunk: include/clang/ARCMigrate/ include/clang/AST/ include/clang/Basic/ include/clang/CodeGen/ include/clang/Driver/ include/clang/Frontend/ include/clang/Index/ include/clang/Lex/ include/clang/Parse/ include/cla

Chandler Carruth chandlerc at google.com
Sun Sep 25 17:07:02 PDT 2011


On Sun, Sep 25, 2011 at 5:02 PM, Chandler Carruth <chandlerc at google.com>wrote:

> While this change is OK w/ me (given the discusion on the issue linked) I
> have to wonder:
>
> On Sun, Sep 25, 2011 at 4:23 PM, David Blaikie <dblaikie at gmail.com> wrote:
>
>> Rename Diagnostic to DiagnosticsEngine as per issue 5397
>
>
> Is that really the best naming convention? There is in fact only one
> DiagnosticsEngine instance per diagnostic message. All the per-message state
> is stored in it. Essentially, this name doesn't really compute for me.
>

Actually, on reading this further, I think I misread how it works...

DiagnosticsEngine stores the state for the currently-being-emitted
diagnostic, and Diagnostic is just a thin wrapper around that
currently-being-emitted diagnostic. Given that, this naming scheme seems
less bad, if still a touch confusing...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110925/01064b68/attachment.html>


More information about the cfe-commits mailing list