[clang-tidy] Add modernize-printf-to-std-print check
[platform/upstream/llvm.git] / clang-tools-extra / test / clang-tidy / checkers / Inputs / Headers / inttypes.h
1 //===--- inttypes.h - Stub header for tests ---------------------*- 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 #ifndef _INTTYPES_H_
10 #define _INTTYPES_H_
11
12 typedef __INTMAX_TYPE__  intmax_t;
13 typedef __INT64_TYPE__ int64_t;
14 typedef __INT32_TYPE__ int32_t;
15 typedef __INT16_TYPE__ int16_t;
16 typedef __INT8_TYPE__ int8_t;
17
18 typedef __UINTMAX_TYPE__ uintmax_t;
19 typedef __UINT64_TYPE__ uint64_t;
20 typedef __UINT32_TYPE__ uint32_t;
21 typedef __UINT16_TYPE__ uint16_t;
22 typedef __UINT8_TYPE__ uint8_t;
23
24 #define PRIdMAX "lld"
25 #define PRId64 "lld"
26 #define PRId32 "d"
27 #define PRId16 "hd"
28 #define PRId8  "hhd"
29
30 #define PRIiMAX "lli"
31 #define PRIi64 "lli"
32 #define PRIi32 "i"
33 #define PRIi16 "hi"
34 #define PRIi8  "hhi"
35
36 #define PRIiFAST64 "lli"
37 #define PRIiFAST32 "i"
38 #define PRIiFAST16 "hi"
39 #define PRIiFAST8  "hhi"
40
41 #define PRIiLEAST64 "lli"
42 #define PRIiLEAST32 "i"
43 #define PRIiLEAST16 "hi"
44 #define PRIiLEAST8  "hhi"
45
46 #define PRIuMAX "llu"
47 #define PRIu64 "llu"
48 #define PRIu32 "u"
49 #define PRIu16 "hu"
50 #define PRIu8  "hhu"
51
52 #define PRIuFAST64 "llu"
53 #define PRIuFAST32 "u"
54 #define PRIuFAST16 "hu"
55 #define PRIuFAST8  "hhu"
56
57 #define PRIuLEAST64 "llu"
58 #define PRIuLEAST32 "u"
59 #define PRIuLEAST16 "hu"
60 #define PRIuLEAST8  "hhu"
61
62 #endif // _INTTYPES_H_