clang-tidy module: add check for string concatenation

Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
This commit is contained in:
Joe Blaauboer
2022-11-28 13:08:37 -05:00
committed by Kyle Edwards
parent 2d373b64ea
commit e1ec052d53
4 changed files with 218 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
#include <clang-tidy/ClangTidyModuleRegistry.h>
#include "OstringstreamUseCmstrcatCheck.h"
#include "StringConcatenationUseCmstrcatCheck.h"
#include "UseBespokeEnumClassCheck.h"
#include "UseCmstrlenCheck.h"
#include "UseCmsysFstreamCheck.h"
@@ -25,6 +26,8 @@ public:
CheckFactories.registerCheck<OstringstreamUseCmstrcatCheck>(
"cmake-ostringstream-use-cmstrcat");
CheckFactories.registerCheck<UsePragmaOnceCheck>("cmake-use-pragma-once");
CheckFactories.registerCheck<StringConcatenationUseCmstrcatCheck>(
"cmake-string-concatenation-use-cmstrcat");
}
};