[flang-commits] [flang] [llvm] [flang] [flang-rt] Implement AT edit descriptor for Fortran 202X with appropriate handling and tests (PR #189157)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Mon Apr 6 09:28:20 PDT 2026


================
@@ -921,6 +921,13 @@ template <typename CHAR>
 RT_API_ATTRS bool EditCharacterOutput(IoStatementState &io,
     const DataEdit &edit, const CHAR *x, std::size_t length) {
   int len{static_cast<int>(length)};
+  if (edit.descriptor == 'A' && edit.variation == 'T') {
+    // AT edit descriptor: trim trailing blanks (F202X TRIM semantics)
----------------
eugeneepshteyn wrote:

See https://github.com/llvm/llvm-project/pull/190627

https://github.com/llvm/llvm-project/pull/189157


More information about the flang-commits mailing list