User Details
- User Since
- Jan 2 2020, 8:06 AM (194 w, 3 d)
Apr 28 2022
Jan 20 2022
Jan 12 2022
Add code comment about the choice of hasAnyArgument
Nits
Only filter out basic_string_view when bugprone-stringview-nullptr is enabled
Jan 11 2022
Nit
Rebase on head
Nit
Switching back to original plan of adding support for return statements
Dec 9 2021
Dec 7 2021
Dec 6 2021
Switch to using empty string edits everywhere except equality comparison
Dec 5 2021
Add missing tests for function arguments and fix incorrect warning message for static_cast cases
Dec 1 2021
Delete non-functional test cases (which were previously commented out)
Add missing comment lines
Switch to early return for the filter
Nov 30 2021
Pinging this thread with https://reviews.llvm.org/D113148
Rebase on head
Address nits
Nov 22 2021
Thank you all for the feedback! Would it be ok to proceed with removing the nullptr checking for basic_string_view in bugprone-string-constructor, as Alex indicated?
Rebase on head
Address reviewer comments
Nov 12 2021
Address review comments from Yitzie
Nov 8 2021
Add missing test cases
Add additional tests for sv.empty() cases to ensure parens are removed where appropriate
Rebase on head
Add missing newline
Add AST matcher support and tests for {{}} case where a null pointer is implicitly created
Update test file to use truncated messages
Fix documentation nit
Address nits and update the absl::Cleanup stub to be accurate with the real interface (with associated changes to the AST matcher)
Thanks for the review! I'll apply the same fixes to the string_view diff as well
Nov 5 2021
nits
Remove double brackets for list initialization and use default initialization to avoid most vexing parse
Nov 4 2021
Change static_cast suggested edit to use parens instead of braces
Fix spelling error
Thanks for the additional info, @aaron.ballman! I had not considered the issues with duplicate warnings. I agree that it would be annoying for users. That being the case, the second option ("remove the string_view nullptr checking functionality from bugprone-string-constructor so it only lives in the new check") sounds the most appealing to me, personally.
Remove trailing whitespace
Add trailing newline
Remove unwanted changes
Nov 3 2021
Add missing newline
Remove mistaken changes
Remove mistaken changes
Rebase on head
Update docs to reflect current state
Sep 30 2021
Sep 27 2021
Now with code! Will it run the tests?
Amended commit??
Trying again but with a branch to see if that helps
Test update message, please ignore
Test top-level comment, please ignore
Nov 16 2020
Nov 7 2020
Nov 2 2020
Oct 31 2020
The new tests can be found in this-nonnull.cpp: https://reviews.llvm.org/differential/changeset/?ref=2242268
Oct 12 2020
Apply dereferenceable even if null is a valid address