Commit 2a1ef74
[libc++][string] Remove potential non-trailing 0-length array
It is a violation of the standard to use 0 length arrays, especially
when not at the end of a structure (not a FAM GNU extension). Compiler
generally accept it, but it's probably better to have a conforming
implementation.
This is a re-application of llvm#105865 which was reverted in 72cfc74
because it broke the data formatters. A LLDB patch has since been
landed that should make this a non-issue.1 parent a40b36f commit 2a1ef74
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
752 | 760 | | |
753 | 761 | | |
754 | 762 | | |
| |||
853 | 861 | | |
854 | 862 | | |
855 | 863 | | |
856 | | - | |
| 864 | + | |
857 | 865 | | |
858 | 866 | | |
859 | 867 | | |
| |||
905 | 913 | | |
906 | 914 | | |
907 | 915 | | |
908 | | - | |
| 916 | + | |
909 | 917 | | |
910 | 918 | | |
911 | 919 | | |
| |||
0 commit comments