Displaying 4 results from an estimated 4 matches for "myohtertype".
2017 Jan 09
3
[cfe-dev] Modernizing LLVM Coding Style Guide and enforcing Clang-tidy
...rote:
>> +1 Exactly this.
>> I don't think C programmer will not understand using. The "=" makes it much
>> simpler to read, even if it is the first time you see it, which is not the
>> case of typedef.
>>
>> typedef MyType::NestedType (*fptr)(const MyOhterType&);
>> or
>> using fptr = MyType::NestedType (*)(const MyOhterType&);
>
I would prefer to please keep using typedefs at least for function
pointers. I find either of
typedef MyType::NestedType (*fptr)(const MyOhterType&);
or
typedef int fptr(const int&);
void f(f...
2017 Jan 10
2
[cfe-dev] Modernizing LLVM Coding Style Guide and enforcing Clang-tidy
...hink C programmer will not understand using. The "=" makes it
>> much
>> >> simpler to read, even if it is the first time you see it, which is not
>> the
>> >> case of typedef.
>> >>
>> >> typedef MyType::NestedType (*fptr)(const MyOhterType&);
>> >> or
>> >> using fptr = MyType::NestedType (*)(const MyOhterType&);
>> >
>>
>> I would prefer to please keep using typedefs at least for function
>> pointers. I find either of
>>
>> typedef MyType::NestedType (*fptr)(con...
2017 Jan 09
2
[cfe-dev] Modernizing LLVM Coding Style Guide and enforcing Clang-tidy
...at can be a matter of taste).
>
> —
> Mehdi
>
+1 Exactly this.
I don't think C programmer will not understand using. The "=" makes it much
simpler to read, even if it is the first time you see it, which is not the
case of typedef.
typedef MyType::NestedType (*fptr)(const MyOhterType&);
or
using fptr = MyType::NestedType (*)(const MyOhterType&);
Typedefs with function pointers are used in couple of places in LLVM and I
find it terible to read.
So it is not about new-ness. Trust me, I would never use typedef if using
was first :)
-------------- next part --------------...
2017 Jan 09
6
[cfe-dev] Modernizing LLVM Coding Style Guide and enforcing Clang-tidy
On Mon, Jan 9, 2017 at 7:25 AM, Piotr Padlewski via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> 2017-01-09 16:15 GMT+01:00 Renato Golin <renato.golin at linaro.org>:
>
>> On 9 January 2017 at 14:17, Piotr Padlewski via cfe-dev
>> <cfe-dev at lists.llvm.org> wrote:
>> > - prefer "using' instead of "typedef"
>> > - use