[all-commits] [llvm/llvm-project] a7520d: [Clang-tidy] bugprone-too-small-loop-variable - fa...

Shourya Goel via All-commits all-commits at lists.llvm.org
Fri Feb 9 08:44:16 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a7520d9727d2638047e5c464b2937581f64e2ce5
      https://github.com/llvm/llvm-project/commit/a7520d9727d2638047e5c464b2937581f64e2ce5
  Author: Shourya Goel <shouryagoel10000 at gmail.com>
  Date:   2024-02-09 (Fri, 09 Feb 2024)

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

  Log Message:
  -----------
  [Clang-tidy] bugprone-too-small-loop-variable - false-negative when const variable is used as loop bound (#81183)

Changed LibASTMatcher to give an appropriate warning
when a const loop bound is initialized with a function declaration.

Fixes: #79580




More information about the All-commits mailing list