[all-commits] [llvm/llvm-project] f2b40b: [libc++][format] Fix precision parser conformance.
mordante via All-commits
all-commits at lists.llvm.org
Wed Jan 5 08:41:50 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f2b40ba40004bfb70d90e9787ad8c9ab6d85646b
https://github.com/llvm/llvm-project/commit/f2b40ba40004bfb70d90e9787ad8c9ab6d85646b
Author: Mark de Wever <koraq at xs4all.nl>
Date: 2022-01-05 (Wed, 05 Jan 2022)
Changed paths:
M libcxx/include/__format/parser_std_format_spec.h
M libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string.pass.cpp
M libcxx/test/std/utilities/format/format.functions/format_tests.h
Log Message:
-----------
[libc++][format] Fix precision parser conformance.
@CaseyCarter reported that the tests for the std-format-spec rejects leading
zeroes for precision, which the Standard does not require. The Standard allows
them. Only for precision, not for the width or an arg-id.
Fixes the precision parser and adds some test for the arg-id since they
were missing.
Reviewed By: ldionne, #libc
Differential Revision: https://reviews.llvm.org/D116381
More information about the All-commits
mailing list