Debian Codegraph @

clang-tools-extra/test/clang-tidy/checkers/bugprone/Inputs/signal-handler/stdcpp.h

raw
1 //===--- Header for test bugprone-signal-handler.cpp ------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8
9 #define SIGINT 1
10 #define SIG_IGN std::_sig_ign
11 #define SIG_DFL std::_sig_dfl
12
13 namespace std {
14
15 void _sig_ign(int);
16 void _sig_dfl(int);
17
18 typedef void (*sighandler_t)(int);
19 sighandler_t signal(int, sighandler_t);
20
21 void abort();
22 void _Exit(int);
23 void quick_exit(int);
24
25 void other_call();
26
27 struct SysStruct {
28 void operator<<(int);
29 };
30
31 } // namespace std
32
33 namespace system_other {
34
35 typedef void (*sighandler_t)(int);
36 sighandler_t signal(int, sighandler_t);
37
38 } // namespace system_other