Skip to content

Conversation

@aaronliu0130
Copy link
Member

This PR contains changes from #255 due to a mistake. That won't affect what'll be merged.

  1. Fixes C++20 [[likely]] / [[unlikely]] attribute support #212
  2. else statements that have braces on both sides but have the second-to-last } on a separate line will no longer claim we need braces on both sides
  3. Fix single-line if statements being yelled at to split their lines, something contradictory to the style guide
  4. Fixes relevant tests, including adding the new "TestLintContains" and "TestLintNotContains" methods. (ik the latter may have a grammar error but who cares, this is consistent with the former's name)
  5. Add a todo for "This exception does not apply to multi-keyword statements like if ... else or do ... while."

A chromium sample has been updated to a version that uses C++17 stuff

READMEs of samples have been clarified regarding licensing

Two licenses have also been updated

Skip CI because I amended a typo in the commit message
1. Fixes cpplint#212
2. else statements that have braces on both sides but have the second-to-last } on a separate line will no longer claim we need braces on both sides
3. Fix single-line if statements being yelled at to split their lines, something contradictory to the style guide
4. Fixes relevant tests, including adding the new "TestLintContains" and "TestLintNotContains" methods. (ik the latter may have a grammar error but who cares, this is consistent with the former's name)
5. Add a todo for "This exception does not apply to multi-keyword statements like if ... else or do ... while."
@aaronliu0130 aaronliu0130 marked this pull request as ready for review March 17, 2024 19:24
@aaronliu0130 aaronliu0130 requested review from jayvdb and removed request for jayvdb March 17, 2024 19:24
@aaronliu0130
Copy link
Member Author

@jayvdb My implementation utilizes a feature from 3.8; 3.7 is EOL. Should we replace the 3.7 tests with 3.8 before releasing 1.7? Or should we do an implementation of the essential feature of handling [[(un)likely]] to put in 1.7, and release 1.7.1 with this? Or should we just release 1.7 as is and release 1.8 with this and maybe other stuff?

@aaronliu0130 aaronliu0130 requested review from jayvdb and tkruse March 18, 2024 01:35
@aaronliu0130
Copy link
Member Author

aaronliu0130 commented Mar 31, 2024

Hey @jayvdb, any thoughts? FYI The feature used is := and I can probably port it to an implementation that doesn't use that without much issue, but the code will feel a lot more awkward.

@kpochwala
Copy link

Would love to see this merged, as currently it breaks pipeline with false positives.

@aaronliu0130
Copy link
Member Author

It's not a false positive per se; it fails because it uses a language feature not present in 3.7, an EOL version. Anyways I'll merge this soon.

...to our varname style guide.

Was previously
534a142 but I forgot to pull from my own branch. Darn... Early-onset dementia? *knocks on wood*
@aaronliu0130
Copy link
Member Author

Closing to merge in #277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C++20 [[likely]] / [[unlikely]] attribute support

2 participants