[all-commits] [llvm/llvm-project] 209565: [clang][sema] Fix -Wunused-function on target_vers...

Jon Roelofs via All-commits all-commits at lists.llvm.org
Fri Feb 9 08:14:21 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2095655f8e2324971f11be61b88ef1644d5796b8
      https://github.com/llvm/llvm-project/commit/2095655f8e2324971f11be61b88ef1644d5796b8
  Author: Jon Roelofs <jonathan_roelofs at apple.com>
  Date:   2024-02-09 (Fri, 09 Feb 2024)

  Changed paths:
    M clang/include/clang/AST/Decl.h
    M clang/lib/AST/Decl.cpp
    M clang/lib/Sema/Sema.cpp
    M clang/test/SemaCXX/warn-unused-filescoped.cpp

  Log Message:
  -----------
  [clang][sema] Fix -Wunused-function on target_version'd file-scope Fn's (#81167)

We should only warn if the default version is the one that is unused.

Fixes: https://github.com/llvm/llvm-project/issues/80227




More information about the All-commits mailing list