Commit a27f816
authored
[clang-tidy] Fix crash in C language in readability-non-const-parameter (llvm#100461)
Fix crash that happen when redeclaration got
different number of parameters than definition.
Fixes llvm#1003401 parent 0762db6 commit a27f816
File tree
2 files changed
+15
-1
lines changed- clang-tools-extra
- clang-tidy/readability
- test/clang-tidy/checkers/readability
2 files changed
+15
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
| 165 | + | |
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments