add cmake config option to enable clang-tidy with preferred options

This commit is contained in:
Axel Kohlmeyer
2021-05-16 16:10:33 -04:00
parent 32838fd4b8
commit cfb3efb50f
4 changed files with 52 additions and 21 deletions

View File

@ -638,7 +638,7 @@ int utils::expand_args(const char *file, int line, int narg, char **arg, int mod
char *utils::strdup(const std::string &text)
{
char *tmp = new char[text.size() + 1];
strcpy(tmp, text.c_str());
strcpy(tmp, text.c_str()); // NOLINT
return tmp;
}