Commit 68a5ecf
committed
[-Wunsafe-buffer-usage] Check safe assignment patterns
Check safe assignment patterns. This uses the infrastructure that is
already available for count-attributed arguments, and checks for each
assigned pointer in the group that the RHS has enough elements.
rdar://161608493
(cherry picked from commit cb7dcc9)1 parent 4a93e41 commit 68a5ecf
File tree
5 files changed
+325
-7
lines changed- clang
- include/clang
- Analysis/Analyses
- Basic
- lib
- Analysis
- Sema
- test/SemaCXX
5 files changed
+325
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
189 | 194 | | |
190 | 195 | | |
191 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14130 | 14130 | | |
14131 | 14131 | | |
14132 | 14132 | | |
| 14133 | + | |
| 14134 | + | |
| 14135 | + | |
14133 | 14136 | | |
14134 | 14137 | | |
14135 | 14138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5857 | 5857 | | |
5858 | 5858 | | |
5859 | 5859 | | |
| 5860 | + | |
| 5861 | + | |
| 5862 | + | |
| 5863 | + | |
| 5864 | + | |
| 5865 | + | |
| 5866 | + | |
| 5867 | + | |
| 5868 | + | |
| 5869 | + | |
| 5870 | + | |
| 5871 | + | |
| 5872 | + | |
| 5873 | + | |
| 5874 | + | |
| 5875 | + | |
| 5876 | + | |
| 5877 | + | |
| 5878 | + | |
| 5879 | + | |
| 5880 | + | |
| 5881 | + | |
| 5882 | + | |
| 5883 | + | |
| 5884 | + | |
| 5885 | + | |
| 5886 | + | |
| 5887 | + | |
| 5888 | + | |
| 5889 | + | |
| 5890 | + | |
| 5891 | + | |
| 5892 | + | |
| 5893 | + | |
| 5894 | + | |
| 5895 | + | |
| 5896 | + | |
| 5897 | + | |
| 5898 | + | |
| 5899 | + | |
| 5900 | + | |
| 5901 | + | |
| 5902 | + | |
| 5903 | + | |
| 5904 | + | |
| 5905 | + | |
| 5906 | + | |
| 5907 | + | |
| 5908 | + | |
| 5909 | + | |
| 5910 | + | |
| 5911 | + | |
| 5912 | + | |
| 5913 | + | |
5860 | 5914 | | |
5861 | 5915 | | |
5862 | 5916 | | |
| |||
5868 | 5922 | | |
5869 | 5923 | | |
5870 | 5924 | | |
5871 | | - | |
5872 | | - | |
| 5925 | + | |
5873 | 5926 | | |
5874 | 5927 | | |
5875 | 5928 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2685 | 2685 | | |
2686 | 2686 | | |
2687 | 2687 | | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
2688 | 2695 | | |
2689 | 2696 | | |
2690 | 2697 | | |
| |||
0 commit comments