You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f84f646
Browse filesBrowse the repository at this point in the historyBrowse files
Cover both cast styles for std::byte pointer scaling
Replace the Record example with two int-pointer cases matching test9, using C-style casts and reinterpret_cast respectively. Regenerate expected results for both existing false positives.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
| test.cpp:50:19:50:19 | p | This pointer might have type $@ (size 8), but this pointer arithmetic is done with type int * (size 4). | test.cpp:45:11:45:11 | test.cpp:45:11:45:11 | double |
2
2
| test.cpp:94:18:94:18 | x | This pointer might have type $@ (size 4), but this pointer arithmetic is done with type short * (size 2). | test.cpp:88:21:88:21 | test.cpp:88:21:88:21 | int |
3
3
| test.cpp:130:27:130:29 | arr | This pointer might have type $@ (size 4), but this pointer arithmetic is done with type short * (size 2). | test.cpp:128:16:128:18 | test.cpp:128:16:128:18 | int |
4
-
| test.cpp:161:36:161:42 | storage | This pointer might have type $@ (size 1), but this pointer arithmetic is done with type Record * (size 4). | test.cpp:158:27:158:33 | test.cpp:158:27:158:33 | byte |
4
+
| test.cpp:160:24:160:24 | p | This pointer might have type $@ (size 1), but this pointer arithmetic is done with type int * (size 4). | test.cpp:155:14:155:14 | test.cpp:155:14:155:14 | byte |
5
+
| test.cpp:169:39:169:39 | p | This pointer might have type $@ (size 1), but this pointer arithmetic is done with type int * (size 4). | test.cpp:164:14:164:14 | test.cpp:164:14:164:14 | byte |
0 commit comments