[all-commits] [llvm/llvm-project] 113f01: [clang-tidy] Fix minor bug in bugprone-too-small-l...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Sat Mar 18 04:28:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 113f0190dd386d93b42d781b975aa2cca5c88914
      https://github.com/llvm/llvm-project/commit/113f0190dd386d93b42d781b975aa2cca5c88914
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2023-03-18 (Sat, 18 Mar 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/TooSmallLoopVariableCheck.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/too-small-loop-variable.cpp

  Log Message:
  -----------
  [clang-tidy] Fix minor bug in bugprone-too-small-loop-variable

Correct issue when incorrectly matched bitfield loop
variable would still be considered valid and equal to
base type, because check didnt compare size of bitfield.

Fixes issue introduced in: D142587

Reviewed By: carlosgalvezp

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




More information about the All-commits mailing list