[flang-commits] [flang] [flang] Reorder messages wrt line number before diff(actual, expect) (PR #186812)

Michael Kruse via flang-commits flang-commits at lists.llvm.org
Mon Mar 16 08:16:44 PDT 2026


================
@@ -15,12 +15,47 @@
 
 from difflib import unified_diff
 
+# When messages are attached together, the source locations to which they
+# refer are not necessarily monotonically increasing. For example
+#   error: foo.f90:10: There is a problem here         # line 10
+#   because: foo.f90:12: This thing is invalid         # line 12 (attached)
+#   error: foo.f90:11: There is another problem here   # line 11
+# There is no way to represent that in the source flle via ERROR annotations,
----------------
Meinersbur wrote:

```suggestion
# There is no way to represent that in the source file via ERROR annotations,
```

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


More information about the flang-commits mailing list