Commit 7dbb1fa
authored
Fix #13735 AST:function name in parantheses (#8183)
https://trac.cppcheck.net/ticket/13735
If the start paranthese is preceeded by a keyword like "return" the
parantheses removal is aborted.
Added no abort removal of parantheses in
simplifyParenthesizedLibraryFunctionsif the preceeding %name% is a
keyword, like "return (modf) ...1 parent 380cf9a commit 7dbb1fa
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3790 | 3790 | | |
3791 | 3791 | | |
3792 | 3792 | | |
3793 | | - | |
| 3793 | + | |
3794 | 3794 | | |
3795 | 3795 | | |
3796 | 3796 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
| |||
2179 | 2180 | | |
2180 | 2181 | | |
2181 | 2182 | | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
2182 | 2195 | | |
2183 | 2196 | | |
2184 | 2197 | | |
| |||
0 commit comments