xbolva00 updated this revision to Diff 227611. xbolva00 added a comment. Up.
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D69762/new/ https://reviews.llvm.org/D69762 Files: clang/include/clang/Basic/DiagnosticSemaKinds.td Index: clang/include/clang/Basic/DiagnosticSemaKinds.td =================================================================== --- clang/include/clang/Basic/DiagnosticSemaKinds.td +++ clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -576,10 +576,10 @@ "thread-local storage is not supported for the current target">; def warn_maybe_falloff_nonvoid_function : Warning< - "control may reach end of non-void function">, + "not all control paths in this function return a value; non-void function must return a value">, InGroup<ReturnType>; def warn_falloff_nonvoid_function : Warning< - "control reaches end of non-void function">, + "function does not return a value; non-void function must return a value">, InGroup<ReturnType>; def err_maybe_falloff_nonvoid_block : Error< "control may reach end of non-void block">;
Index: clang/include/clang/Basic/DiagnosticSemaKinds.td =================================================================== --- clang/include/clang/Basic/DiagnosticSemaKinds.td +++ clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -576,10 +576,10 @@ "thread-local storage is not supported for the current target">; def warn_maybe_falloff_nonvoid_function : Warning< - "control may reach end of non-void function">, + "not all control paths in this function return a value; non-void function must return a value">, InGroup<ReturnType>; def warn_falloff_nonvoid_function : Warning< - "control reaches end of non-void function">, + "function does not return a value; non-void function must return a value">, InGroup<ReturnType>; def err_maybe_falloff_nonvoid_block : Error< "control may reach end of non-void block">;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits