Commit 658d307
Disable some clang conversion warnings in
* Disable clang conversion warnings when compiling with -Wconversion
cppfront and cpp2util.h use signed integer types for indices and container sizes so disable signed-to-unsigned conversion warnings.
cppfront also uses implicit conversions from string literal to bool for:
`assert(!"message")`
so disable those warnings too.
* Update regression tests caused by line number changes in `cpp2util.h`
* Removed dependency on `!"string literal"`
* Address `.size()` narrowing warnings
Using the answer we recommend for everyone else, so model the right behavior here
---------
Co-authored-by: Herb Sutter <herb.sutter@gmail.com>cpp2util.h and cppfront itself (#1212)1 parent c618ed5 commit 658d307
File tree
25 files changed
+89
-69
lines changed- include
- regression-tests/test-results
- apple-clang-15-c++2b
- clang-15-c++20
- gcc-13-c++2b
- gcc-14-c++2b
- msvc-2022-c++20
- msvc-2022-c++latest
- source
25 files changed
+89
-69
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
305 | 311 | | |
306 | 312 | | |
307 | 313 | | |
| |||
2833 | 2839 | | |
2834 | 2840 | | |
2835 | 2841 | | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
2836 | 2845 | | |
| 2846 | + | |
| 2847 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments