[all-commits] [llvm/llvm-project] fd015f: [clang-tidy] Fix altera-unroll-loops crash on mult...

Zeyi Xu via All-commits all-commits at lists.llvm.org
Mon Jun 15 03:57:42 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd015fa0da49e4bd05246c6291d56836455e0e42
      https://github.com/llvm/llvm-project/commit/fd015fa0da49e4bd05246c6291d56836455e0e42
  Author: Zeyi Xu <mitchell.xu2 at gmail.com>
  Date:   2026-06-15 (Mon, 15 Jun 2026)

  Changed paths:
    M clang-tools-extra/clang-tidy/altera/UnrollLoopsCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/altera/unroll-loops.cpp

  Log Message:
  -----------
  [clang-tidy] Fix altera-unroll-loops crash on multi-decl for init (#203865)

Avoid calling `DeclStmt::getSingleDecl()` unless the declaration
statement contains a single declaration.

Closes https://github.com/llvm/llvm-project/issues/203856



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