Jeroen added inline comments.
================
Comment at: clang/test/SemaCXX/warn-reorder-ctor-initialization.cpp:171
+ // code can't do this.
+ Bar(int x) : c(x), /*foo*/ a(2), b(3) {} // expected-warning {{field 'c'
will be initialized after field 'a'}}
+ // CHECK-NOT: fix-it:"{{.*}}":{[[@LINE-1]]
----------------
What would be the behavior for `:c(x), b(3), a(2)`?
Does that get fixed in 1 go, or should this be done in 2 steps?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87244/new/
https://reviews.llvm.org/D87244
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits