[all-commits] [llvm/llvm-project] 14dfb3: [Clang] -Wunused-but-set-parameter and -Wunused-bu...

Michael Benfield via All-commits all-commits at lists.llvm.org
Mon May 17 11:03:56 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 14dfb3831c425c7f22540a2160424224008c257e
      https://github.com/llvm/llvm-project/commit/14dfb3831c425c7f22540a2160424224008c257e
  Author: Michael Benfield <mbenfield at google.com>
  Date:   2021-05-17 (Mon, 17 May 2021)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/test/CXX/expr/expr.prim/expr.prim.lambda/p12.cpp
    M clang/test/CodeGen/2007-10-30-Volatile.c
    M clang/test/CodeGen/X86/x86_32-xsave.c
    M clang/test/CodeGen/X86/x86_64-xsave.c
    M clang/test/CodeGen/builtins-arm.c
    M clang/test/CodeGen/builtins-riscv.c
    M clang/test/FixIt/fixit.cpp
    M clang/test/Misc/warning-wall.c
    M clang/test/Sema/shift.c
    M clang/test/Sema/vector-gcc-compat.c
    M clang/test/Sema/vector-gcc-compat.cpp
    A clang/test/Sema/warn-unused-but-set-parameters.c
    A clang/test/Sema/warn-unused-but-set-variables.c
    M clang/test/SemaCXX/goto.cpp
    M clang/test/SemaCXX/shift.cpp
    M clang/test/SemaCXX/sizeless-1.cpp
    A clang/test/SemaCXX/warn-unused-but-set-parameters-cpp.cpp
    A clang/test/SemaCXX/warn-unused-but-set-variables-cpp.cpp
    M clang/test/SemaObjC/foreach.m

  Log Message:
  -----------
  [Clang] -Wunused-but-set-parameter and -Wunused-but-set-variable

These are intended to mimic warnings available in gcc.

Reviewed By: aeubanks

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




More information about the All-commits mailing list