Commit 0579404
committed
[NFC][Clang][AST] Use
Also change the constructor and `StringLiteral::Create` to take
an `ArrayRef<SourceLocation>` instead of a pointer and size, so that
it can be directly passed to `llvm::copy`. This also eliminates the need
of a specialized single location constructor and also simplifies
existing calls to `StringLiteral::Create`.llvm::copy instead of memcpy in StringLiteral1 parent 056b52d commit 0579404
File tree
5 files changed
+23
-37
lines changed- clang
- include/clang/AST
- lib
- AST
- Sema
5 files changed
+23
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1834 | 1834 | | |
1835 | 1835 | | |
1836 | 1836 | | |
1837 | | - | |
1838 | | - | |
| 1837 | + | |
1839 | 1838 | | |
1840 | 1839 | | |
1841 | 1840 | | |
| |||
1853 | 1852 | | |
1854 | 1853 | | |
1855 | 1854 | | |
1856 | | - | |
| 1855 | + | |
| 1856 | + | |
1857 | 1857 | | |
1858 | 1858 | | |
1859 | | - | |
1860 | | - | |
1861 | | - | |
1862 | | - | |
1863 | | - | |
1864 | | - | |
1865 | | - | |
1866 | | - | |
1867 | | - | |
| 1859 | + | |
1868 | 1860 | | |
1869 | 1861 | | |
1870 | 1862 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7695 | 7695 | | |
7696 | 7696 | | |
7697 | 7697 | | |
7698 | | - | |
7699 | | - | |
7700 | | - | |
| 7698 | + | |
| 7699 | + | |
| 7700 | + | |
7701 | 7701 | | |
7702 | 7702 | | |
7703 | 7703 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1123 | 1123 | | |
1124 | 1124 | | |
1125 | 1125 | | |
1126 | | - | |
1127 | | - | |
| 1126 | + | |
1128 | 1127 | | |
1129 | 1128 | | |
1130 | 1129 | | |
1131 | 1130 | | |
1132 | 1131 | | |
1133 | | - | |
| 1132 | + | |
1134 | 1133 | | |
1135 | 1134 | | |
1136 | 1135 | | |
| |||
1169 | 1168 | | |
1170 | 1169 | | |
1171 | 1170 | | |
1172 | | - | |
1173 | | - | |
| 1171 | + | |
1174 | 1172 | | |
1175 | 1173 | | |
1176 | | - | |
| 1174 | + | |
1177 | 1175 | | |
1178 | 1176 | | |
1179 | 1177 | | |
| |||
1188 | 1186 | | |
1189 | 1187 | | |
1190 | 1188 | | |
1191 | | - | |
1192 | | - | |
| 1189 | + | |
| 1190 | + | |
1193 | 1191 | | |
1194 | | - | |
| 1192 | + | |
1195 | 1193 | | |
1196 | | - | |
1197 | | - | |
| 1194 | + | |
1198 | 1195 | | |
1199 | 1196 | | |
1200 | 1197 | | |
| |||
4406 | 4403 | | |
4407 | 4404 | | |
4408 | 4405 | | |
4409 | | - | |
| 4406 | + | |
4410 | 4407 | | |
4411 | 4408 | | |
4412 | 4409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2070 | 2070 | | |
2071 | 2071 | | |
2072 | 2072 | | |
2073 | | - | |
2074 | | - | |
2075 | | - | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
2076 | 2076 | | |
2077 | 2077 | | |
2078 | 2078 | | |
| |||
2206 | 2206 | | |
2207 | 2207 | | |
2208 | 2208 | | |
2209 | | - | |
2210 | | - | |
2211 | | - | |
2212 | | - | |
| 2209 | + | |
| 2210 | + | |
2213 | 2211 | | |
2214 | 2212 | | |
2215 | 2213 | | |
| |||
3793 | 3791 | | |
3794 | 3792 | | |
3795 | 3793 | | |
3796 | | - | |
| 3794 | + | |
3797 | 3795 | | |
3798 | 3796 | | |
3799 | 3797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
0 commit comments