[flang-commits] [PATCH] D120442: [flang] Do not print format tabs
vdonaldson via Phabricator via flang-commits
flang-commits at lists.llvm.org
Wed Feb 23 16:37:07 PST 2022
vdonaldson created this revision.
vdonaldson added a project: Flang.
Herald added a subscriber: jdoerfert.
vdonaldson requested review of this revision.
As an extension, tabs are accepted in a format, but should be skipped, not printed.
https://reviews.llvm.org/D120442
Files:
flang/runtime/format.h
Index: flang/runtime/format.h
===================================================================
--- flang/runtime/format.h
+++ flang/runtime/format.h
@@ -111,7 +111,9 @@
};
void SkipBlanks() {
- while (offset_ < formatLength_ && format_[offset_] == ' ') {
+ while (offset_ < formatLength_ &&
+ (format_[offset_] == ' ' || format_[offset_] == '\t' ||
+ format_[offset_] == '\v')) {
++offset_;
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120442.410972.patch
Type: text/x-patch
Size: 445 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220224/d8965f70/attachment.bin>
More information about the flang-commits
mailing list