================ @@ -566,6 +574,24 @@ ostream& operator<<(ostream& ostream, int i); // CHECK-MESSAGES: :[[@LINE-1]]:10: warning: use a trailing return type for this function [modernize-use-trailing-return-type] // CHECK-FIXES: {{^}}ostream& operator<<(ostream& ostream, int i);{{$}} +// +// WarnOnNonTrailingVoid option +// + +void leadingVoid(); +// CHECK-MESSAGES-WARN-ON-NONTRAILING-VOID: :[[@LINE-1]]:6: warning: use a trailing return type for this function [modernize-use-trailing-return-type] +// CHECK-FIXES-WARN-ON-NONTRAILING-VOID: {{^}}auto leadingVoid() -> void;{{$}} ---------------- vbvictor wrote:
I think it's not an important change for first-time contributors, since the rest of the file still has `{{^}}` and we only bring complexity to the table. We could do the cleanup of the whole file ourselves later https://github.com/llvm/llvm-project/pull/129406 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits