[all-commits] [llvm/llvm-project] ce94a1: [cmake] Enable -Werror=return-type

Dave Lee via All-commits all-commits at lists.llvm.org
Tue Mar 9 13:51:52 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce94a161651d0edd313d0fa65571eb53d3a34d13
      https://github.com/llvm/llvm-project/commit/ce94a161651d0edd313d0fa65571eb53d3a34d13
  Author: Dave Lee <davelee.com at gmail.com>
  Date:   2021-03-09 (Tue, 09 Mar 2021)

  Changed paths:
    M llvm/cmake/modules/HandleLLVMOptions.cmake

  Log Message:
  -----------
  [cmake] Enable -Werror=return-type

Turn `-Wreturn-type` into an error.

This is currently used by libcxx, libcxxabi, and libunwind, and would be a good default
for all of llvm. I'm not aware of any cases where this shouldn't be an error. This
ensures different build configs, merges, and downstream branches catch issues sooner.

Differential Revision: https://reviews.llvm.org/D98224




More information about the All-commits mailing list