Detect comparison between string and empty string_literals.
Fixes #64547
Differential D158346
[clang-tidy] readability-container-size-empty - detect missing usage of .empty() on string_literals felix642 on Aug 19 2023, 12:13 PM. Authored by Tokens
Details Detect comparison between string and empty string_literals. Fixes #64547
Diff Detail
Event TimelineComment Actions
Comment Actions Hi @PiotrZSL, thank you for the feedback. I have addressed most of your comments, but I'm not sure to understand what you mean by "Commit/Change description should be updated". Would you be able to clarify that for me?
|
Probably best would be to write matcher like this:
and use it instead of hasDescendant