Commit f327405
authored
[BoundsSafety] Rename experimental C++ and Objective-C flags and make them CC1 only (#10668)
The existing `-fbounds-attributes-cxx-experimental` and
`-fbounds-attributes-objc-experimental` flags were previously exposed as driver and
CC1 flags. However, given that these modes are highly experimental we
don't want to encourage their use so these flags have no been made CC1
only flags. The functionality is still available from the driver by
doing `-Xclang <flag name>`.
This patch also does a rename of the flags to be prefixed with
`experimental-` which upstream prefers.
1. `-fbounds-attributes-cxx-experimental` -> `-fexperimental-bounds-safety-cxx`
2. `-fbounds-attributes-objc-experimental` ->
`-fexperimental-bounds-safety-objc`.
This patch also renames "bounds attributes" to "bounds safety" for
things associated with these flags (e.g.
`LangOptions::BoundsSafetyCXXExperimental`). "bounds attributes" is the
legacy name that we need to slowly purge from the codebase and this is
one small step towards that goal.
rdar://149423268
(cherry picked from commit cf995c3)
This is a cherry-pick of #10635 .
Conflicts:
clang/test/BoundsSafety-legacy-checks/AST/SystemHeaders/builtin-function-main.c
clang/test/BoundsSafety/AST/builtin-memcpy-count-annotation.c
clang/test/BoundsSafety/AST/system-merge-dynamic-bound-attr.c
clang/test/BoundsSafety/AST/typedef-function-attrs-late-parsed-call.c
clang/test/BoundsSafety/AST/unify-auto.cpp
clang/test/BoundsSafety/CodeGen/compound-literal-counted_by-O2.c
clang/test/BoundsSafety/CodeGen/compound-literal-sized_by-O2.c
clang/test/BoundsSafety/CodeGen/ended_by_locals.c
clang/test/BoundsSafety/CodeGen/init-global-indexable-with-null.c
clang/test/BoundsSafety/CodeGen/terminated-by-to-indexable-loop-O2.c
clang/test/BoundsSafety/Sema/dynamic-count-ptr-null.c
clang/test/BoundsSafety/Sema/static-bound-ptr-init.c
clang/utils/bounds_safety_fixup_codegen_tests.sh1 parent cef328c commit f327405
File tree
747 files changed
+949
-953
lines changed- clang
- include/clang
- Basic
- Driver
- lib
- Driver/ToolChains
- Frontend
- test
- BoundsSafety-legacy-checks
- AST
- SystemHeaders
- CodeGen
- alloc-sized-calloc
- runtime-checks
- Sema
- BoundsSafety
- AST
- SystemHeaders
- alloc-sized-calloc
- Analysis
- CodeGen
- alloc-sized-calloc
- auto-init
- runtime-checks
- ubsan
- Driver
- Frontend
- Sema
- SystemHeaders
- non-bounds-safety-attrs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
747 files changed
+949
-953
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
381 | | - | |
| 380 | + | |
| 381 | + | |
382 | 382 | | |
383 | | - | |
| 383 | + | |
384 | 384 | | |
385 | | - | |
386 | | - | |
| 385 | + | |
| 386 | + | |
387 | 387 | | |
388 | | - | |
| 388 | + | |
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1487 | 1487 | | |
1488 | 1488 | | |
1489 | 1489 | | |
1490 | | - | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
1494 | 1494 | | |
1495 | 1495 | | |
1496 | 1496 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
540 | | - | |
| 539 | + | |
| 540 | + | |
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1971 | 1971 | | |
1972 | 1972 | | |
1973 | 1973 | | |
1974 | | - | |
1975 | | - | |
1976 | | - | |
1977 | | - | |
1978 | | - | |
1979 | | - | |
1980 | | - | |
1981 | | - | |
1982 | | - | |
1983 | | - | |
1984 | | - | |
1985 | | - | |
1986 | | - | |
1987 | | - | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
1988 | 1988 | | |
1989 | 1989 | | |
1990 | 1990 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7546 | 7546 | | |
7547 | 7547 | | |
7548 | 7548 | | |
7549 | | - | |
7550 | | - | |
7551 | | - | |
7552 | | - | |
7553 | | - | |
7554 | | - | |
7555 | | - | |
7556 | | - | |
7557 | | - | |
7558 | | - | |
7559 | | - | |
7560 | | - | |
7561 | 7549 | | |
7562 | 7550 | | |
7563 | 7551 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4429 | 4429 | | |
4430 | 4430 | | |
4431 | 4431 | | |
4432 | | - | |
| 4432 | + | |
4433 | 4433 | | |
4434 | 4434 | | |
4435 | | - | |
| 4435 | + | |
4436 | 4436 | | |
4437 | 4437 | | |
4438 | 4438 | | |
| |||
4459 | 4459 | | |
4460 | 4460 | | |
4461 | 4461 | | |
4462 | | - | |
4463 | | - | |
| 4462 | + | |
| 4463 | + | |
4464 | 4464 | | |
4465 | | - | |
4466 | | - | |
| 4465 | + | |
| 4466 | + | |
4467 | 4467 | | |
4468 | 4468 | | |
4469 | 4469 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments