commit | bdcf2402b8e2909b42621d598c28d0eac1c4007d | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Thu Sep 01 19:08:24 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 01 19:08:24 2022 +0000 |
tree | b698d8fae9b67954fcd351d53d1e407c74061938 | |
parent | b7c7867028a5fcce06f220a5dd5a8e0d7849823d [diff] |
pw_compilation_testing: Relax PW_NC_EXPECT syntax; add tests Allow PW_NC_EXPECT() statements to span multiple lines. The statements must contain only string literals or //-style comments. This prevents clang-format from breaking PW_NC_EXPECT() statements when it reflows string literals. With this change, statements like the following are permitted: PW_NC_EXPECT( // This is a comment "This is a \"very\" long string that didn't " // Comment "fit on one line,\nokay?"); Also added tests for negative compilation test parsing. Change-Id: Ie7ad157c817eaf7f0f576bcd841f00426623b635 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/107678 Reviewed-by: Armando Montanez <amontanez@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: 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/.