From 8d4d57035fd50c36d050585d22b50171c49fc6d9 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Thu, 10 Aug 2017 21:21:15 +0000 Subject: Revert "[clang-tidy] Refactor the code and add a close-on-exec check on memfd_create() in Android module." This reverts commit r310630. The new code broke on Windows and was untested. On Linux, it was selecting the "int" overload of operator<<, which definitely does not print the right thing when fed a "Mode" char. llvm-svn: 310661 --- clang-tools-extra/clang-tidy/android/AndroidTidyModule.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'clang-tools-extra/clang-tidy/android/AndroidTidyModule.cpp') diff --git a/clang-tools-extra/clang-tidy/android/AndroidTidyModule.cpp b/clang-tools-extra/clang-tidy/android/AndroidTidyModule.cpp index 729047ee35e..119f3c0db8b 100644 --- a/clang-tools-extra/clang-tidy/android/AndroidTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/android/AndroidTidyModule.cpp @@ -12,7 +12,6 @@ #include "../ClangTidyModuleRegistry.h" #include "CloexecCreatCheck.h" #include "CloexecFopenCheck.h" -#include "CloexecMemfdCreateCheck.h" #include "CloexecOpenCheck.h" #include "CloexecSocketCheck.h" @@ -28,8 +27,6 @@ public: void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override { CheckFactories.registerCheck("android-cloexec-creat"); CheckFactories.registerCheck("android-cloexec-fopen"); - CheckFactories.registerCheck( - "android-cloexec-memfd-create"); CheckFactories.registerCheck("android-cloexec-open"); CheckFactories.registerCheck("android-cloexec-socket"); } -- cgit v1.2.3