[all-commits] [llvm/llvm-project] c95189: [clang-tidy] NFCI: remove non-functional matcher f...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Wed Jun 4 00:26:32 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c95189f87751bc40f69746db49c6ddec6d4e641c
      https://github.com/llvm/llvm-project/commit/c95189f87751bc40f69746db49c6ddec6d4e641c
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2025-06-04 (Wed, 04 Jun 2025)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/SizeofExpressionCheck.cpp

  Log Message:
  -----------
  [clang-tidy] NFCI: remove non-functional matcher from SizeofExpressionCheck (#142654)

This matcher would never match anything, because all record types
as-written would be wrapped in an ElaboratedType.

Just fixing that leads to a matcher which has too many false positives
to be useful.

The warning message itself is not great either, it has a hard-coded type
name.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list