Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/ClangTidyModule/UseCmstrlenCheck.h
3148 views
1
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
file LICENSE.rst or https://cmake.org/licensing for details. */
3
#pragma once
4
5
#include <clang-tidy/ClangTidyCheck.h>
6
#include <clang/ASTMatchers/ASTMatchFinder.h>
7
8
namespace clang {
9
namespace tidy {
10
namespace cmake {
11
class UseCmstrlenCheck : public ClangTidyCheck
12
{
13
public:
14
UseCmstrlenCheck(StringRef Name, ClangTidyContext* Context);
15
void registerMatchers(ast_matchers::MatchFinder* Finder) override;
16
17
void check(ast_matchers::MatchFinder::MatchResult const& Result) override;
18
};
19
}
20
}
21
}
22
23