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>
Support for defining tests that verify that compilation fails when it
should fail.
Fixes: b/234882063
Change-Id: If2dbf14a7bae63cc286bcc72a3dcc16c089eb891
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/42240
Reviewed-by: Keir Mierle <keir@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>