[clang-tools-extra] [clang-tidy] Add new performance-use-starts-ends-with check (PR #72385)

Nicolas van Kempen via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 22 06:38:04 PST 2023


nicovank wrote:

Updates. I've been running into issues when the begin location of the entire expression is a macro. The prefix removal, which should include the macro text, is not working as I expect it to. If you know of any checks that have similar logic I can take a look and copy. I just disabled it if `ComparisonExpr->getBeginLoc().isMacroID()`. This is what the original check also did so I imagine they had a similar issue.

https://github.com/llvm/llvm-project/pull/72385


More information about the cfe-commits mailing list