Skip to content

Commit

Permalink
Revert "[clang-tidy] New check to warn when storing dispatch_once_t i…
Browse files Browse the repository at this point in the history
…n non-static, non-global storage"

This reverts commit r373028, because the new test fails on Linux.

llvm-svn: 373032
  • Loading branch information
gribozavr committed Sep 26, 2019
1 parent 3912ecb commit 847f4d3
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 235 deletions.
1 change: 0 additions & 1 deletion clang-tools-extra/clang-tidy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ add_subdirectory(boost)
add_subdirectory(bugprone)
add_subdirectory(cert)
add_subdirectory(cppcoreguidelines)
add_subdirectory(darwin)
add_subdirectory(fuchsia)
add_subdirectory(google)
add_subdirectory(hicpp)
Expand Down
5 changes: 0 additions & 5 deletions clang-tools-extra/clang-tidy/ClangTidyForceLinker.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ extern volatile int CppCoreGuidelinesModuleAnchorSource;
static int LLVM_ATTRIBUTE_UNUSED CppCoreGuidelinesModuleAnchorDestination =
CppCoreGuidelinesModuleAnchorSource;

// This anchor is used to force the linker to link the DarwinModule.
extern volatile int DarwinModuleAnchorSource;
static int LLVM_ATTRIBUTE_UNUSED DarwinModuleAnchorDestination =
DarwinModuleAnchorSource;

// This anchor is used to force the linker to link the FuchsiaModule.
extern volatile int FuchsiaModuleAnchorSource;
static int LLVM_ATTRIBUTE_UNUSED FuchsiaModuleAnchorDestination =
Expand Down
15 changes: 0 additions & 15 deletions clang-tools-extra/clang-tidy/darwin/CMakeLists.txt

This file was deleted.

37 changes: 0 additions & 37 deletions clang-tools-extra/clang-tidy/darwin/DarwinTidyModule.cpp

This file was deleted.

62 changes: 0 additions & 62 deletions clang-tools-extra/clang-tidy/darwin/DispatchOnceNonstaticCheck.cpp

This file was deleted.

35 changes: 0 additions & 35 deletions clang-tools-extra/clang-tidy/darwin/DispatchOnceNonstaticCheck.h

This file was deleted.

1 change: 0 additions & 1 deletion clang-tools-extra/clang-tidy/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ add_clang_library(clangTidyPlugin
clangTidyBugproneModule
clangTidyCERTModule
clangTidyCppCoreGuidelinesModule
clangTidyDarwinModule
clangTidyFuchsiaModule
clangTidyGoogleModule
clangTidyHICPPModule
Expand Down
1 change: 0 additions & 1 deletion clang-tools-extra/clang-tidy/tool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ target_link_libraries(clang-tidy
clangTidyBugproneModule
clangTidyCERTModule
clangTidyCppCoreGuidelinesModule
clangTidyDarwinModule
clangTidyFuchsiaModule
clangTidyGoogleModule
clangTidyHICPPModule
Expand Down
1 change: 0 additions & 1 deletion clang-tools-extra/clangd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ add_clang_library(clangDaemon
clangTidyBugproneModule
clangTidyCERTModule
clangTidyCppCoreGuidelinesModule
clangTidyDarwinModule
clangTidyFuchsiaModule
clangTidyGoogleModule
clangTidyHICPPModule
Expand Down
6 changes: 0 additions & 6 deletions clang-tools-extra/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@ Improvements to clang-tidy
Finds obvious infinite loops (loops where the condition variable is not
changed at all).

- New :doc:`darwin-dispatch-once-nonstatic
<clang-tidy/checks/darwin-dispatch-once-nonstatic>`check.

Finds instances of ``dispatch_once_t`` variables not having static or global
storage.

- New :doc:`linuxkernel-must-use-errs
<clang-tidy/checks/linuxkernel-must-use-errs>` check.

Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion clang-tools-extra/docs/clang-tidy/checks/list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ Clang-Tidy Checks
cppcoreguidelines-pro-type-vararg
cppcoreguidelines-slicing
cppcoreguidelines-special-member-functions
darwin-dispatch-once-nonstatic
fuchsia-default-arguments-calls
fuchsia-default-arguments-declarations
fuchsia-header-anon-namespaces (redirects to google-build-namespaces) <fuchsia-header-anon-namespaces>
Expand Down

This file was deleted.

0 comments on commit 847f4d3

Please sign in to comment.