[clang] 668c1ea - [C99] Update paper number tracked for arrays & lvalues; NFC

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 2 09:36:38 PDT 2024


Author: Aaron Ballman
Date: 2024-04-02T12:36:27-04:00
New Revision: 668c1ea4aa7f3907b92116748af087f2bb006a97

URL: https://github.com/llvm/llvm-project/commit/668c1ea4aa7f3907b92116748af087f2bb006a97
DIFF: https://github.com/llvm/llvm-project/commit/668c1ea4aa7f3907b92116748af087f2bb006a97.diff

LOG: [C99] Update paper number tracked for arrays & lvalues; NFC

I finally found the original paper proposing the changes, so this
updates the test name, comments, and status page but is otherwise NFC.

Added: 
    clang/test/C/C99/n835.c

Modified: 
    clang/www/c_status.html

Removed: 
    clang/test/C/C99/array-lvalue.c


################################################################################
diff  --git a/clang/test/C/C99/array-lvalue.c b/clang/test/C/C99/n835.c
similarity index 74%
rename from clang/test/C/C99/array-lvalue.c
rename to clang/test/C/C99/n835.c
index 4e963b4f74fc32..38a974e065724d 100644
--- a/clang/test/C/C99/array-lvalue.c
+++ b/clang/test/C/C99/n835.c
@@ -3,13 +3,10 @@
    expected-no-diagnostics
  */
 
-/* WG14 ???: Yes
+/* WG14 N835: Yes
  * Conversion of array to pointer not limited to lvalues
  *
- * NB: the original paper number is unknown, this was gleaned from the editor's report
- * in the C99 foreword. The C99 rationale document did not shed much light on
- * the situation either, mostly talking about user confusion between lvalue and
- * modifiable lvalue. However, the crux of the change was C89 changing:
+ * NB: The crux of the change was C99 changing:
  *
  * C89 3.2.2.1: Except when it is the operand of ..., an lvalue that has type
  * 'array of type' is converted to an expression that has type 'pointer to

diff  --git a/clang/www/c_status.html b/clang/www/c_status.html
index 43f7a5e7602b38..c6727ae8cadd8d 100644
--- a/clang/www/c_status.html
+++ b/clang/www/c_status.html
@@ -359,7 +359,7 @@ <h2 id="c99">C99 implementation status</h2>
     </tr>
     <tr>
       <td>conversion of array to pointer not limited to lvalues</td>
-      <td>Unknown</td>
+      <td>N835</td>
       <td class="full" align="center">Yes</td>
     </tr>
     <tr>


        


More information about the cfe-commits mailing list