[llvm-commits] [PATCH] Make TableGen Inits FoldingSetNodes
David A. Greene
greened at obbligato.org
Mon Jul 11 14:00:01 PDT 2011
John McCall <rjmccall at apple.com> writes:
>> Is there a naming convention here? I've seen Create() used in other
>> places, which is why I used it. :)
>
> The convention, as I see it, is to use 'create' for factory methods that
> return a non-uniqued object and 'get' for factory methods that return
> a uniqued object. Note that I have no idea which category this falls
> into.
This should be documented in CodingStandards.html.
More information about the llvm-commits
mailing list