annotate clang-tools-extra/clang-tidy/android/CloexecInotifyInitCheck.h @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 //===--- CloexecInotifyInitCheck.h - clang-tidy------------------*- C++ -*-===//
anatofuz
parents:
diff changeset
2 //
anatofuz
parents:
diff changeset
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
anatofuz
parents:
diff changeset
4 // See https://llvm.org/LICENSE.txt for license information.
anatofuz
parents:
diff changeset
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
anatofuz
parents:
diff changeset
6 //
anatofuz
parents:
diff changeset
7 //===----------------------------------------------------------------------===//
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ANDROID_CLOEXEC_INOTIFY_INIT_H
anatofuz
parents:
diff changeset
10 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ANDROID_CLOEXEC_INOTIFY_INIT_H
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 #include "CloexecCheck.h"
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 namespace clang {
anatofuz
parents:
diff changeset
15 namespace tidy {
anatofuz
parents:
diff changeset
16 namespace android {
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 /// inotify_init() is better to be replaced by inotify_init1().
anatofuz
parents:
diff changeset
19 ///
anatofuz
parents:
diff changeset
20 /// For the user-facing documentation see:
anatofuz
parents:
diff changeset
21 /// http://clang.llvm.org/extra/clang-tidy/checks/android-cloexec-inotify-init.html
anatofuz
parents:
diff changeset
22 class CloexecInotifyInitCheck : public CloexecCheck {
anatofuz
parents:
diff changeset
23 public:
anatofuz
parents:
diff changeset
24 CloexecInotifyInitCheck(StringRef Name, ClangTidyContext *Context)
anatofuz
parents:
diff changeset
25 : CloexecCheck(Name, Context) {}
anatofuz
parents:
diff changeset
26 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
anatofuz
parents:
diff changeset
27 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
anatofuz
parents:
diff changeset
28 };
anatofuz
parents:
diff changeset
29
anatofuz
parents:
diff changeset
30 } // namespace android
anatofuz
parents:
diff changeset
31 } // namespace tidy
anatofuz
parents:
diff changeset
32 } // namespace clang
anatofuz
parents:
diff changeset
33
anatofuz
parents:
diff changeset
34 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ANDROID_CLOEXEC_INOTIFY_INIT_H