[cfe-dev] [llvm-dev] Modernizing LLVM Coding Style Guide and enforcing Clang-tidy

Mehdi Amini via cfe-dev cfe-dev at lists.llvm.org
Mon Jan 9 11:04:00 PST 2017


> On Jan 9, 2017, at 10:29 AM, Renato Golin via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> On 9 January 2017 at 18:20, Reid Kleckner <rnk at google.com> wrote:
>> I object to the first. If you need a new type name, use a typedef. It's time
>> honored and everyone, including C programmers, will know what you're doing.
>> I don't understand why people push the new thing just for the sake of
>> new-ness.
> 
> The text read "prefer", which I think it's fair. I'm opposed to any
> hard rule for the sake of new-ness, consistency, or personal
> preference.
> 
> If we encode all nit-rules as "prefer", then it should be more like a
> guideline than a rule book, which has been our motto for everything
> else.

This is not correct according to the number of “should” and the imperative tone for many aspects of http://llvm.org/docs/CodingStandards.html#source-code-formatting

— 
Mehdi




More information about the cfe-dev mailing list