HomePhabricator

[clang-tidy] Add support for operator new[] in check bugprone-misplaced…

Description

[clang-tidy] Add support for operator new[] in check bugprone-misplaced-operator-in-strlen-in-alloc

The check now recognizes error cases like new char[strlen(s + 1)] and suggests
a fix in the format new char[strlen(s) + 1].

Details