HomePhabricator

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

Authored by baloghadamsoftware on Nov 23 2017, 4:56 AM.

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].

llvm-svn: 318912