omtcyfz added a comment.

And actually it makes much more sense for C than for C++. In C++ you just do 
`s/struct/class/g`, insert `public:` and you're golden.

P.S. It actually breaks code. I haven't looked into that, but

  bar::Foo foo = { &x, 17, 1.29, 0 }; // CHECK: bar::Foo foo = { 1.29, 0, 17, 
&x };

only works while it is in the same TU.

+ @alexfh on `clang-tidy` discussion.


Repository:
  rL LLVM

https://reviews.llvm.org/D23279



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to