[all-commits] [llvm/llvm-project] 37b6ba: [clang-tidy] Handle expr with side-effects in read...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Wed May 8 11:11:32 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37b6ba96dea54e7af3772d78c90bfb3fd61140f6
      https://github.com/llvm/llvm-project/commit/37b6ba96dea54e7af3772d78c90bfb3fd61140f6
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/StaticAccessedThroughInstanceCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/readability/static-accessed-through-instance.rst
    M clang-tools-extra/test/clang-tidy/checkers/readability/static-accessed-through-instance.cpp

  Log Message:
  -----------
  [clang-tidy] Handle expr with side-effects in readability-static-accessed-through-instance (#90736)

Improved readability-static-accessed-through-instance check to 
support expressions with side-effects.

Originally calls to overloaded operator were
ignored by check, in fear of possible side-effects.

This change remove that restriction, and enables
fix-its for expressions with side-effect via
--fix-notes.

Closes #75163



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