diff options
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/android-cloexec-inotify-init.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/android-cloexec-inotify-init.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/clang-tools-extra/test/clang-tidy/android-cloexec-inotify-init.cpp b/clang-tools-extra/test/clang-tidy/android-cloexec-inotify-init.cpp deleted file mode 100644 index 01eb51e3962..00000000000 --- a/clang-tools-extra/test/clang-tidy/android-cloexec-inotify-init.cpp +++ /dev/null @@ -1,24 +0,0 @@ -// RUN: %check_clang_tidy %s android-cloexec-inotify-init %t - -extern "C" int inotify_init(); - -void f() { - inotify_init(); - // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: prefer inotify_init() to inotify_init1() because inotify_init1() allows IN_CLOEXEC [android-cloexec-inotify-init] - // CHECK-FIXES: inotify_init1(IN_CLOEXEC); -} - -namespace i { -int inotify_init(); -void g() { - inotify_init(); -} -} // namespace i - -class C { -public: - int inotify_init(); - void h() { - inotify_init(); - } -}; |