[libc-commits] [PATCH] D144679: [libc] Clarify printf percent conversion behavior.

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Feb 24 10:20:21 PST 2023


michaelrj marked 2 inline comments as done.
michaelrj added inline comments.


================
Comment at: libc/src/stdio/printf_core/parser.cpp:112
+      // says that "If a conversion specification is invalid, the behavior is
+      // undefined." Based on that I define that any conversion specification
+      // ending in '%' shall display as '%' regardless of any valid or invalid
----------------
sivachandra wrote:
> lntue wrote:
> > Probably we should have a section in the main doc page about `implementation-defined behaviors and rationale`, with links to the implementations and tests.
> Address this before landing: Please use "we" instead of "I".
> 
> Can be done as a follow up step: +1 for adding a doc page titled "Implementation Defined Behavior".
I agree that we should have a page on implementation defined behavior and will do that in another patch.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144679/new/

https://reviews.llvm.org/D144679



More information about the libc-commits mailing list