[clang-tidy] Fix crash in C language in readability-non-const-parameter (#100461)
authorPiotr Zegar <me@piotrzegar.pl>
Thu, 25 Jul 2024 15:26:01 +0000 (17:26 +0200)
committerTobias Hieta <tobias@hieta.se>
Mon, 19 Aug 2024 07:18:56 +0000 (09:18 +0200)
commitb45f75295e3038ef79dce4ac63fbf95b659eebe5
treebdf718b1f84d2c75a8326b4e0b93c0b0d5944102
parent90f2d48965ca8a27f4b814ada987d169ca6a6f44
[clang-tidy] Fix crash in C language in readability-non-const-parameter (#100461)

Fix crash that happen when redeclaration got
different number of parameters than definition.

Fixes #100340

(cherry picked from commit a27f816fe56af9cc7f4f296ad6c577f6ea64349f)
clang-tools-extra/clang-tidy/readability/NonConstParameterCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/readability/non-const-parameter.c [new file with mode: 0644]