commit | 202bffdfd8d206a1f0a486f8f684a6f2feaacf61 | [log] [tgz] |
---|---|---|
author | Greg Pataky <gregpataky@google.com> | Thu Feb 09 01:01:02 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Feb 09 01:01:02 2023 +0000 |
tree | a68d70594771ae3c607f4f93249e908b7e6b526b | |
parent | cbb713112a69582d3823e5d2f92d292c61a0f8f8 [diff] |
pw_tokenizer: Add tests for %% specifier This makes a decision to adhere to the C99 specification that `%` is a specifier only when used exactly as `%%`, without any flag, width, precision, or length modifiers. This was the current implementation since Python 3 has issues with things like `%+%`, but it is worth noting that both clang and gcc do allow any modifiers (and simply ignore them). This can be changed in the future as long as documentation and tests are updated. Bug: b/265307572 Change-Id: I939d2b2cb7b551f564f3a8167906015ff557d208 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/126838 Commit-Queue: Greg Pataky <gregpataky@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.