[all-commits] [llvm/llvm-project] b8c08f: [clang][Sema] Fix diagnostic message for unused co...

Takuya Shimizu via All-commits all-commits at lists.llvm.org
Wed Jun 14 05:45:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b8c08f7ae86da4723f9e125d5defa5404518d87d
      https://github.com/llvm/llvm-project/commit/b8c08f7ae86da4723f9e125d5defa5404518d87d
  Author: Takuya Shimizu <shimizu2486 at gmail.com>
  Date:   2023-06-14 (Wed, 14 Jun 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/Sema.cpp
    M clang/test/SemaCXX/warn-unused-filescoped.cpp

  Log Message:
  -----------
  [clang][Sema] Fix diagnostic message for unused constant variable templates

BEFORE this patch, unused const-qualified variable templates such as `template <typename T> const double var_t = 0;` were diagnosed as `unused variable 'var_t'`
This patch fixes this message to `unused variable template 'var_t'`

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




More information about the All-commits mailing list