-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNonConstCharPtrArgCheck.h
More file actions
35 lines (29 loc) · 1.17 KB
/
Copy pathNonConstCharPtrArgCheck.h
File metadata and controls
35 lines (29 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//===--- NonConstCharPtrArgCheck.h - clang-tidy------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_VALPO_NON_CONST_CHAR_PTR_ARG_H
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_VALPO_NON_CONST_CHAR_PTR_ARG_H
#include "../ClangTidy.h"
namespace clang {
namespace tidy {
namespace valpo {
/// FIXME: Write a short description.
///
/// For the user-facing documentation see:
/// http://clang.llvm.org/extra/clang-tidy/checks/valpo-non-const-char-ptr-arg.html
class NonConstCharPtrArgCheck : public ClangTidyCheck {
public:
NonConstCharPtrArgCheck(StringRef Name, ClangTidyContext *Context)
: ClangTidyCheck(Name, Context) {}
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
};
} // namespace valpo
} // namespace tidy
} // namespace clang
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_VALPO_NON_CONST_CHAR_PTR_ARG_H