/work/workdir/UnpackedTarball/harfbuzz/src/hb-debug.hh
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright © 2017 Google, Inc. |
3 | | * |
4 | | * This is part of HarfBuzz, a text shaping library. |
5 | | * |
6 | | * Permission is hereby granted, without written agreement and without |
7 | | * license or royalty fees, to use, copy, modify, and distribute this |
8 | | * software and its documentation for any purpose, provided that the |
9 | | * above copyright notice and the following two paragraphs appear in |
10 | | * all copies of this software. |
11 | | * |
12 | | * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR |
13 | | * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES |
14 | | * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN |
15 | | * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
16 | | * DAMAGE. |
17 | | * |
18 | | * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, |
19 | | * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND |
20 | | * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS |
21 | | * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO |
22 | | * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
23 | | * |
24 | | * Google Author(s): Behdad Esfahbod |
25 | | */ |
26 | | |
27 | | #ifndef HB_DEBUG_HH |
28 | | #define HB_DEBUG_HH |
29 | | |
30 | | #include "hb.hh" |
31 | | #include "hb-atomic.hh" |
32 | | #include "hb-algs.hh" |
33 | | |
34 | | |
35 | | #ifndef HB_DEBUG |
36 | 4.12M | #define HB_DEBUG 0 |
37 | | #endif |
38 | | |
39 | | |
40 | | /* |
41 | | * Global runtime options. |
42 | | */ |
43 | | |
44 | | struct hb_options_t |
45 | | { |
46 | | bool unused : 1; /* In-case sign bit is here. */ |
47 | | bool initialized : 1; |
48 | | bool uniscribe_bug_compatible : 1; |
49 | | }; |
50 | | |
51 | | union hb_options_union_t { |
52 | | unsigned i; |
53 | | hb_options_t opts; |
54 | | }; |
55 | | static_assert ((sizeof (hb_atomic_t<unsigned>) >= sizeof (hb_options_union_t)), ""); |
56 | | |
57 | | HB_INTERNAL void |
58 | | _hb_options_init (); |
59 | | |
60 | | extern HB_INTERNAL hb_atomic_t<unsigned> _hb_options; |
61 | | |
62 | | static inline hb_options_t |
63 | | hb_options () |
64 | 102 | { |
65 | | #ifdef HB_NO_GETENV |
66 | | return hb_options_t (); |
67 | | #endif |
68 | | /* Make a local copy, so we can access bitfield threadsafely. */ |
69 | 102 | hb_options_union_t u; |
70 | 102 | u.i = _hb_options; |
71 | | |
72 | 102 | if (unlikely (!u.i)) |
73 | 9 | { |
74 | 9 | _hb_options_init (); |
75 | 9 | u.i = _hb_options; |
76 | 9 | } |
77 | | |
78 | 102 | return u.opts; |
79 | 102 | } Unexecuted instantiation: hb-aat-layout.cc:hb_options() Unexecuted instantiation: hb-aat-map.cc:hb_options() Unexecuted instantiation: hb-blob.cc:hb_options() Unexecuted instantiation: hb-buffer.cc:hb_options() Unexecuted instantiation: hb-common.cc:hb_options() Unexecuted instantiation: hb-draw.cc:hb_options() Unexecuted instantiation: hb-face.cc:hb_options() Unexecuted instantiation: hb-face-builder.cc:hb_options() Unexecuted instantiation: hb-fallback-shape.cc:hb_options() Unexecuted instantiation: hb-font.cc:hb_options() Unexecuted instantiation: hb-number.cc:hb_options() Unexecuted instantiation: hb-ot-color.cc:hb_options() Unexecuted instantiation: hb-ot-face.cc:hb_options() Unexecuted instantiation: hb-ot-font.cc:hb_options() Unexecuted instantiation: hb-outline.cc:hb_options() Unexecuted instantiation: hb-ot-layout.cc:hb_options() Unexecuted instantiation: hb-ot-metrics.cc:hb_options() Unexecuted instantiation: hb-ot-name.cc:hb_options() Unexecuted instantiation: hb-ot-shape.cc:hb_options() Unexecuted instantiation: hb-ot-tag.cc:hb_options() Unexecuted instantiation: hb-ot-var.cc:hb_options() Unexecuted instantiation: hb-set.cc:hb_options() Unexecuted instantiation: hb-shape-plan.cc:hb_options() Unexecuted instantiation: hb-shape.cc:hb_options() Unexecuted instantiation: hb-shaper.cc:hb_options() Unexecuted instantiation: hb-static.cc:hb_options() Unexecuted instantiation: hb-unicode.cc:hb_options() Unexecuted instantiation: hb-graphite2.cc:hb_options() Unexecuted instantiation: hb-icu.cc:hb_options() Unexecuted instantiation: hb-buffer-verify.cc:hb_options() Unexecuted instantiation: hb-paint.cc:hb_options() Unexecuted instantiation: hb-paint-bounded.cc:hb_options() Unexecuted instantiation: hb-paint-extents.cc:hb_options() Unexecuted instantiation: hb-ot-cff1-table.cc:hb_options() Unexecuted instantiation: hb-ot-cff2-table.cc:hb_options() Unexecuted instantiation: hb-ot-map.cc:hb_options() Unexecuted instantiation: hb-ot-shaper-arabic.cc:hb_options() Unexecuted instantiation: hb-ot-shaper-default.cc:hb_options() Unexecuted instantiation: hb-ot-shaper-hangul.cc:hb_options() Unexecuted instantiation: hb-ot-shaper-hebrew.cc:hb_options() Unexecuted instantiation: hb-ot-shaper-indic.cc:hb_options() hb-ot-shaper-khmer.cc:hb_options() Line | Count | Source | 64 | 102 | { | 65 | | #ifdef HB_NO_GETENV | 66 | | return hb_options_t (); | 67 | | #endif | 68 | | /* Make a local copy, so we can access bitfield threadsafely. */ | 69 | 102 | hb_options_union_t u; | 70 | 102 | u.i = _hb_options; | 71 | | | 72 | 102 | if (unlikely (!u.i)) | 73 | 9 | { | 74 | 9 | _hb_options_init (); | 75 | 9 | u.i = _hb_options; | 76 | 9 | } | 77 | | | 78 | 102 | return u.opts; | 79 | 102 | } |
Unexecuted instantiation: hb-ot-shaper-myanmar.cc:hb_options() Unexecuted instantiation: hb-ot-shaper-syllabic.cc:hb_options() Unexecuted instantiation: hb-ot-shaper-thai.cc:hb_options() Unexecuted instantiation: hb-ot-shaper-use.cc:hb_options() Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:hb_options() Unexecuted instantiation: hb-ot-shape-fallback.cc:hb_options() Unexecuted instantiation: hb-ot-shape-normalize.cc:hb_options() Unexecuted instantiation: hb-ucd.cc:hb_options() Unexecuted instantiation: hb-buffer-serialize.cc:hb_options() Unexecuted instantiation: hb-ot-shaper-indic-table.cc:hb_options() |
80 | | |
81 | | |
82 | | /* |
83 | | * Debug output (needs enabling at compile time.) |
84 | | */ |
85 | | |
86 | | static inline bool |
87 | | _hb_debug (unsigned int level, |
88 | | unsigned int max_level) |
89 | 0 | { |
90 | 0 | return level < max_level; |
91 | 0 | } Unexecuted instantiation: hb-aat-layout.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-aat-map.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-blob.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-buffer.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-common.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-draw.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-face.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-face-builder.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-fallback-shape.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-font.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-number.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-color.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-face.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-font.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-outline.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-layout.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-metrics.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-name.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-shape.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-tag.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-var.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-set.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-shape-plan.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-shape.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-shaper.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-static.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-unicode.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-graphite2.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-icu.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-buffer-verify.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-paint.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-paint-bounded.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-paint-extents.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-cff1-table.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-cff2-table.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-map.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-shaper-arabic.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-shaper-default.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-shaper-hangul.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-shaper-indic.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-shaper-khmer.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-shaper-thai.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-shaper-use.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-shape-fallback.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-shape-normalize.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ucd.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-buffer-serialize.cc:_hb_debug(unsigned int, unsigned int) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:_hb_debug(unsigned int, unsigned int) |
92 | | |
93 | | #define DEBUG_LEVEL_ENABLED(WHAT, LEVEL) (_hb_debug ((LEVEL), HB_DEBUG_##WHAT)) |
94 | | #define DEBUG_ENABLED(WHAT) (DEBUG_LEVEL_ENABLED (WHAT, 0)) |
95 | | |
96 | | static inline void |
97 | | _hb_print_func (const char *func) |
98 | 0 | { |
99 | 0 | if (func) |
100 | 0 | { |
101 | 0 | unsigned int func_len = strlen (func); |
102 | 0 | /* Skip "static" */ |
103 | 0 | if (0 == strncmp (func, "static ", 7)) |
104 | 0 | func += 7; |
105 | 0 | /* Skip "typename" */ |
106 | 0 | if (0 == strncmp (func, "typename ", 9)) |
107 | 0 | func += 9; |
108 | 0 | /* Skip return type */ |
109 | 0 | const char *space = strchr (func, ' '); |
110 | 0 | if (space) |
111 | 0 | func = space + 1; |
112 | 0 | /* Skip parameter list */ |
113 | 0 | const char *paren = strchr (func, '('); |
114 | 0 | if (paren) |
115 | 0 | func_len = paren - func; |
116 | 0 | fprintf (stderr, "%.*s", (int) func_len, func); |
117 | 0 | } |
118 | 0 | } Unexecuted instantiation: hb-aat-layout.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-aat-map.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-blob.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-buffer.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-common.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-draw.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-face.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-face-builder.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-fallback-shape.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-font.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-number.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-color.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-face.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-font.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-outline.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-layout.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-metrics.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-name.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-shape.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-tag.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-var.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-set.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-shape-plan.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-shape.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-shaper.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-static.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-unicode.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-graphite2.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-icu.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-buffer-verify.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-paint.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-paint-bounded.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-paint-extents.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-cff1-table.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-cff2-table.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-map.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-shaper-arabic.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-shaper-default.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-shaper-hangul.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-shaper-indic.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-shaper-khmer.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-shaper-thai.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-shaper-use.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-shape-fallback.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-shape-normalize.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ucd.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-buffer-serialize.cc:_hb_print_func(char const*) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:_hb_print_func(char const*) |
119 | | |
120 | | template <int max_level> static inline void |
121 | | _hb_debug_msg_va (const char *what, |
122 | | const void *obj, |
123 | | const char *func, |
124 | | bool indented, |
125 | | unsigned int level, |
126 | | int level_dir, |
127 | | const char *message, |
128 | | va_list ap) HB_PRINTF_FUNC(7, 0); |
129 | | template <int max_level> static inline void |
130 | | _hb_debug_msg_va (const char *what, |
131 | | const void *obj, |
132 | | const char *func, |
133 | | bool indented, |
134 | | unsigned int level, |
135 | | int level_dir, |
136 | | const char *message, |
137 | | va_list ap) |
138 | | { |
139 | | if (!_hb_debug (level, max_level)) |
140 | | return; |
141 | | |
142 | | fprintf (stderr, "%-10s", what ? what : ""); |
143 | | |
144 | | if (obj) |
145 | | fprintf (stderr, "(%*p) ", (int) (2 * sizeof (void *)), obj); |
146 | | else |
147 | | fprintf (stderr, " %*s ", (int) (2 * sizeof (void *)), ""); |
148 | | |
149 | | if (indented) { |
150 | | #define VBAR "\342\224\202" /* U+2502 BOX DRAWINGS LIGHT VERTICAL */ |
151 | | #define VRBAR "\342\224\234" /* U+251C BOX DRAWINGS LIGHT VERTICAL AND RIGHT */ |
152 | | #define DLBAR "\342\225\256" /* U+256E BOX DRAWINGS LIGHT ARC DOWN AND LEFT */ |
153 | | #define ULBAR "\342\225\257" /* U+256F BOX DRAWINGS LIGHT ARC UP AND LEFT */ |
154 | | #define LBAR "\342\225\264" /* U+2574 BOX DRAWINGS LIGHT LEFT */ |
155 | | static const char bars[] = |
156 | | VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR |
157 | | VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR |
158 | | VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR |
159 | | VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR |
160 | | VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR; |
161 | | fprintf (stderr, "%2u %s" VRBAR "%s", |
162 | | level, |
163 | | bars + sizeof (bars) - 1 - hb_min ((unsigned int) sizeof (bars) - 1, (unsigned int) (sizeof (VBAR) - 1) * level), |
164 | | level_dir ? (level_dir > 0 ? DLBAR : ULBAR) : LBAR); |
165 | | } else |
166 | | fprintf (stderr, " " VRBAR LBAR); |
167 | | |
168 | | _hb_print_func (func); |
169 | | |
170 | | if (message) |
171 | | { |
172 | | fprintf (stderr, ": "); |
173 | | vfprintf (stderr, message, ap); |
174 | | } |
175 | | |
176 | | fprintf (stderr, "\n"); |
177 | | } |
178 | | template <> inline void HB_PRINTF_FUNC(7, 0) |
179 | | _hb_debug_msg_va<0> (const char *what HB_UNUSED, |
180 | | const void *obj HB_UNUSED, |
181 | | const char *func HB_UNUSED, |
182 | | bool indented HB_UNUSED, |
183 | | unsigned int level HB_UNUSED, |
184 | | int level_dir HB_UNUSED, |
185 | | const char *message HB_UNUSED, |
186 | 0 | va_list ap HB_UNUSED) {} Unexecuted instantiation: hb-aat-layout.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-aat-map.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-blob.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-buffer.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-common.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-draw.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-face.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-face-builder.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-fallback-shape.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-font.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-number.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-color.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-face.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-font.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-outline.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-layout.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-metrics.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-name.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-shape.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-tag.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-var.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-set.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-shape-plan.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-shape.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-shaper.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-static.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-unicode.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-graphite2.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-icu.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-buffer-verify.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-paint.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-paint-bounded.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-paint-extents.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-cff1-table.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-cff2-table.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-map.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-shaper-arabic.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-shaper-default.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-shaper-hangul.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-shaper-indic.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-shaper-khmer.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-shaper-thai.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-shaper-use.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-shape-fallback.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-shape-normalize.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ucd.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-buffer-serialize.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:void _hb_debug_msg_va<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, __va_list_tag*) |
187 | | |
188 | | template <int max_level> static inline void |
189 | | _hb_debug_msg (const char *what, |
190 | | const void *obj, |
191 | | const char *func, |
192 | | bool indented, |
193 | | unsigned int level, |
194 | | int level_dir, |
195 | | const char *message, |
196 | | ...) HB_PRINTF_FUNC(7, 8); |
197 | | template <int max_level> static inline void HB_PRINTF_FUNC(7, 8) |
198 | | _hb_debug_msg (const char *what, |
199 | | const void *obj, |
200 | | const char *func, |
201 | | bool indented, |
202 | | unsigned int level, |
203 | | int level_dir, |
204 | | const char *message, |
205 | | ...) |
206 | | { |
207 | | va_list ap; |
208 | | va_start (ap, message); |
209 | | _hb_debug_msg_va<max_level> (what, obj, func, indented, level, level_dir, message, ap); |
210 | | va_end (ap); |
211 | | } |
212 | | template <> inline void |
213 | | _hb_debug_msg<0> (const char *what HB_UNUSED, |
214 | | const void *obj HB_UNUSED, |
215 | | const char *func HB_UNUSED, |
216 | | bool indented HB_UNUSED, |
217 | | unsigned int level HB_UNUSED, |
218 | | int level_dir HB_UNUSED, |
219 | | const char *message HB_UNUSED, |
220 | | ...) HB_PRINTF_FUNC(7, 8); |
221 | | template <> inline void HB_PRINTF_FUNC(7, 8) |
222 | | _hb_debug_msg<0> (const char *what HB_UNUSED, |
223 | | const void *obj HB_UNUSED, |
224 | | const char *func HB_UNUSED, |
225 | | bool indented HB_UNUSED, |
226 | | unsigned int level HB_UNUSED, |
227 | | int level_dir HB_UNUSED, |
228 | | const char *message HB_UNUSED, |
229 | 768M | ...) {} hb-aat-layout.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Line | Count | Source | 229 | 135M | ...) {} |
Unexecuted instantiation: hb-aat-map.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) hb-blob.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Line | Count | Source | 229 | 286M | ...) {} |
hb-buffer.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Line | Count | Source | 229 | 33.8M | ...) {} |
Unexecuted instantiation: hb-common.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-draw.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) hb-face.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Line | Count | Source | 229 | 503k | ...) {} |
Unexecuted instantiation: hb-face-builder.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-fallback-shape.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) hb-font.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Line | Count | Source | 229 | 1.87M | ...) {} |
Unexecuted instantiation: hb-number.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) hb-ot-color.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Line | Count | Source | 229 | 6.71M | ...) {} |
Unexecuted instantiation: hb-ot-face.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) hb-ot-font.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Line | Count | Source | 229 | 20.1M | ...) {} |
Unexecuted instantiation: hb-outline.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) hb-ot-layout.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Line | Count | Source | 229 | 67.1M | ...) {} |
hb-ot-metrics.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Line | Count | Source | 229 | 60 | ...) {} |
hb-ot-name.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Line | Count | Source | 229 | 603 | ...) {} |
Unexecuted instantiation: hb-ot-shape.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-tag.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-var.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) hb-set.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Line | Count | Source | 229 | 22 | ...) {} |
hb-shape-plan.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Line | Count | Source | 229 | 164M | ...) {} |
Unexecuted instantiation: hb-shape.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-shaper.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-static.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) hb-unicode.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Line | Count | Source | 229 | 50.8M | ...) {} |
Unexecuted instantiation: hb-graphite2.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-icu.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-buffer-verify.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-paint.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-paint-bounded.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-paint-extents.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-cff1-table.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-cff2-table.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-map.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) hb-ot-shaper-arabic.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Line | Count | Source | 229 | 611k | ...) {} |
Unexecuted instantiation: hb-ot-shaper-default.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-shaper-hangul.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-shaper-indic.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-shaper-khmer.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-shaper-thai.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-shaper-use.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-shape-fallback.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-shape-normalize.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ucd.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-buffer-serialize.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:void _hb_debug_msg<0>(char const*, void const*, char const*, bool, unsigned int, int, char const*, ...) |
230 | | |
231 | 209M | #define DEBUG_MSG_LEVEL(WHAT, OBJ, LEVEL, LEVEL_DIR, ...) _hb_debug_msg<HB_DEBUG_##WHAT> (#WHAT, (OBJ), nullptr, true, (LEVEL), (LEVEL_DIR), __VA_ARGS__) |
232 | 879M | #define DEBUG_MSG(WHAT, OBJ, ...) _hb_debug_msg<HB_DEBUG_##WHAT> (#WHAT, (OBJ), nullptr, false, 0, 0, __VA_ARGS__) |
233 | 118M | #define DEBUG_MSG_FUNC(WHAT, OBJ, ...) _hb_debug_msg<HB_DEBUG_##WHAT> (#WHAT, (OBJ), HB_FUNC, false, 0, 0, __VA_ARGS__) |
234 | | |
235 | | |
236 | | /* |
237 | | * Printer |
238 | | */ |
239 | | |
240 | | template <typename T> |
241 | | struct hb_printer_t { |
242 | | const char *print (const T&) { return "something"; } |
243 | | }; |
244 | | |
245 | | template <> |
246 | | struct hb_printer_t<bool> { |
247 | 0 | const char *print (bool v) { return v ? "true" : "false"; } |
248 | | }; |
249 | | |
250 | | template <> |
251 | | struct hb_printer_t<hb_empty_t> { |
252 | 0 | const char *print (hb_empty_t) { return ""; } |
253 | | }; |
254 | | |
255 | | |
256 | | /* |
257 | | * Trace |
258 | | */ |
259 | | |
260 | | template <typename T> |
261 | | static inline void _hb_warn_no_return (bool returned) |
262 | | { |
263 | | if (unlikely (!returned)) { |
264 | | fprintf (stderr, "OUCH, returned with no call to return_trace(). This is a bug, please report.\n"); |
265 | | } |
266 | | } |
267 | | template <> |
268 | 0 | /*static*/ inline void _hb_warn_no_return<hb_empty_t> (bool returned HB_UNUSED) {} Unexecuted instantiation: hb-aat-layout.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-aat-map.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-blob.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-buffer.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-common.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-draw.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-face.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-face-builder.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-fallback-shape.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-font.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-number.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-color.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-face.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-font.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-outline.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-layout.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-metrics.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-name.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-shape.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-tag.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-var.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-set.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-shape-plan.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-shape.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-shaper.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-static.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-unicode.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-graphite2.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-icu.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-buffer-verify.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-paint.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-paint-bounded.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-paint-extents.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-cff1-table.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-cff2-table.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-map.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-shaper-arabic.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-shaper-default.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-shaper-hangul.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-shaper-indic.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-shaper-khmer.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-shaper-thai.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-shaper-use.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-shape-fallback.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-shape-normalize.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ucd.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-buffer-serialize.cc:void _hb_warn_no_return<hb_empty_t>(bool) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:void _hb_warn_no_return<hb_empty_t>(bool) |
269 | | template <> |
270 | 0 | /*static*/ inline void _hb_warn_no_return<void> (bool returned HB_UNUSED) {} Unexecuted instantiation: hb-aat-layout.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-aat-map.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-blob.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-buffer.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-common.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-draw.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-face.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-face-builder.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-fallback-shape.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-font.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-number.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-color.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-face.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-font.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-outline.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-layout.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-metrics.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-name.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-shape.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-tag.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-var.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-set.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-shape-plan.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-shape.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-shaper.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-static.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-unicode.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-graphite2.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-icu.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-buffer-verify.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-paint.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-paint-bounded.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-paint-extents.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-cff1-table.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-cff2-table.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-map.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-shaper-arabic.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-shaper-default.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-shaper-hangul.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-shaper-indic.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-shaper-khmer.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-shaper-thai.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-shaper-use.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-shape-fallback.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-shape-normalize.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ucd.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-buffer-serialize.cc:void _hb_warn_no_return<void>(bool) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:void _hb_warn_no_return<void>(bool) |
271 | | |
272 | | template <int max_level, typename ret_t> |
273 | | struct hb_auto_trace_t |
274 | | { |
275 | | explicit inline hb_auto_trace_t (unsigned int *plevel_, |
276 | | const char *what_, |
277 | | const void *obj_, |
278 | | const char *func, |
279 | | const char *message, |
280 | | ...) HB_PRINTF_FUNC(6, 7) |
281 | | : plevel (plevel_), what (what_), obj (obj_), returned (false) |
282 | | { |
283 | | if (plevel) ++*plevel; |
284 | | |
285 | | va_list ap; |
286 | | va_start (ap, message); |
287 | | _hb_debug_msg_va<max_level> (what, obj, func, true, plevel ? *plevel : 0, +1, message, ap); |
288 | | va_end (ap); |
289 | | } |
290 | | ~hb_auto_trace_t () |
291 | | { |
292 | | _hb_warn_no_return<ret_t> (returned); |
293 | | if (!returned) { |
294 | | _hb_debug_msg<max_level> (what, obj, nullptr, true, plevel ? *plevel : 1, -1, " "); |
295 | | } |
296 | | if (plevel) --*plevel; |
297 | | } |
298 | | |
299 | | template <typename T> |
300 | | T ret (T&& v, |
301 | | const char *func = "", |
302 | | unsigned int line = 0) |
303 | | { |
304 | | if (unlikely (returned)) { |
305 | | fprintf (stderr, "OUCH, double calls to return_trace(). This is a bug, please report.\n"); |
306 | | return std::forward<T> (v); |
307 | | } |
308 | | |
309 | | _hb_debug_msg<max_level> (what, obj, func, true, plevel ? *plevel : 1, -1, |
310 | | "return %s (line %u)", |
311 | | hb_printer_t<hb_decay<decltype (v)>>().print (v), line); |
312 | | if (plevel) --*plevel; |
313 | | plevel = nullptr; |
314 | | returned = true; |
315 | | return std::forward<T> (v); |
316 | | } |
317 | | |
318 | | private: |
319 | | unsigned int *plevel; |
320 | | const char *what; |
321 | | const void *obj; |
322 | | bool returned; |
323 | | }; |
324 | | template <typename ret_t> /* Make sure we don't use hb_auto_trace_t when not tracing. */ |
325 | | struct hb_auto_trace_t<0, ret_t> |
326 | | { |
327 | | explicit inline hb_auto_trace_t (unsigned int *plevel_, |
328 | | const char *what_, |
329 | | const void *obj_, |
330 | | const char *func, |
331 | | const char *message, |
332 | | ...) HB_PRINTF_FUNC(6, 7) {} |
333 | | |
334 | | template <typename T> |
335 | | T ret (T&& v, |
336 | | const char *func HB_UNUSED = nullptr, |
337 | | unsigned int line HB_UNUSED = 0) { return std::forward<T> (v); } |
338 | | }; |
339 | | |
340 | | /* For disabled tracing; optimize out everything. |
341 | | * https://github.com/harfbuzz/harfbuzz/pull/605 */ |
342 | | template <typename ret_t> |
343 | | struct hb_no_trace_t { |
344 | | template <typename T> |
345 | | T ret (T&& v, |
346 | | const char *func HB_UNUSED = nullptr, |
347 | 213M | unsigned int line HB_UNUSED = 0) { return std::forward<T> (v); } bool hb_no_trace_t<bool>::ret<bool>(bool&&, char const*, unsigned int) Line | Count | Source | 347 | 213M | unsigned int line HB_UNUSED = 0) { return std::forward<T> (v); } |
long hb_no_trace_t<bool>::ret<long>(long&&, char const*, unsigned int) Line | Count | Source | 347 | 2.52k | unsigned int line HB_UNUSED = 0) { return std::forward<T> (v); } |
hb_empty_t hb_no_trace_t<hb_empty_t>::ret<hb_empty_t>(hb_empty_t&&, char const*, unsigned int) Line | Count | Source | 347 | 4.24k | unsigned int line HB_UNUSED = 0) { return std::forward<T> (v); } |
Unexecuted instantiation: bool& hb_no_trace_t<bool>::ret<bool&>(bool&, char const*, unsigned int) Unexecuted instantiation: OT::LangSys* hb_no_trace_t<bool>::ret<OT::LangSys*>(OT::LangSys*&&, char const*, unsigned int) Unexecuted instantiation: OT::VarRegionAxis* hb_no_trace_t<bool>::ret<OT::VarRegionAxis*>(OT::VarRegionAxis*&&, char const*, unsigned int) Unexecuted instantiation: OT::SparseVarRegionAxis* hb_no_trace_t<bool>::ret<OT::SparseVarRegionAxis*>(OT::SparseVarRegionAxis*&&, char const*, unsigned int) Unexecuted instantiation: decltype(nullptr) hb_no_trace_t<bool>::ret<decltype(nullptr)>(decltype(nullptr)&&, char const*, unsigned int) Unexecuted instantiation: OT::ItemVariationStore*& hb_no_trace_t<bool>::ret<OT::ItemVariationStore*&>(OT::ItemVariationStore*&, char const*, unsigned int) Unexecuted instantiation: OT::DeltaSetIndexMapFormat01<OT::IntType<unsigned short, 2u> >* hb_no_trace_t<bool>::ret<OT::DeltaSetIndexMapFormat01<OT::IntType<unsigned short, 2u> >*>(OT::DeltaSetIndexMapFormat01<OT::IntType<unsigned short, 2u> >*&&, char const*, unsigned int) Unexecuted instantiation: OT::DeltaSetIndexMap* hb_no_trace_t<bool>::ret<OT::DeltaSetIndexMap*>(OT::DeltaSetIndexMap*&&, char const*, unsigned int) Unexecuted instantiation: OT::DeltaSetIndexMapFormat01<OT::IntType<unsigned int, 4u> >* hb_no_trace_t<bool>::ret<OT::DeltaSetIndexMapFormat01<OT::IntType<unsigned int, 4u> >*>(OT::DeltaSetIndexMapFormat01<OT::IntType<unsigned int, 4u> >*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::Condition, OT::IntType<unsigned int, 4u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::Condition, OT::IntType<unsigned int, 4u>, void, true>*>(OT::OffsetTo<OT::Condition, OT::IntType<unsigned int, 4u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::FeatureTableSubstitutionRecord* hb_no_trace_t<bool>::ret<OT::FeatureTableSubstitutionRecord*>(OT::FeatureTableSubstitutionRecord*&&, char const*, unsigned int) Unexecuted instantiation: OT::FeatureVariations* hb_no_trace_t<bool>::ret<OT::FeatureVariations*>(OT::FeatureVariations*&&, char const*, unsigned int) Unexecuted instantiation: OT::HintingDevice* hb_no_trace_t<bool>::ret<OT::HintingDevice*>(OT::HintingDevice*&&, char const*, unsigned int) Unexecuted instantiation: OT::VariationDevice*& hb_no_trace_t<bool>::ret<OT::VariationDevice*&>(OT::VariationDevice*&, char const*, unsigned int) Unexecuted instantiation: OT::Device* hb_no_trace_t<bool>::ret<OT::Device*>(OT::Device*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::AttachPoint, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::AttachPoint, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::AttachPoint, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::CaretValue, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::CaretValue, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::CaretValue, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::LigGlyph, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::LigGlyph, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::LigGlyph, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::Layout::Common::Coverage, OT::IntType<unsigned int, 4u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::Layout::Common::Coverage, OT::IntType<unsigned int, 4u>, void, true>*>(OT::OffsetTo<OT::Layout::Common::Coverage, OT::IntType<unsigned int, 4u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::Layout::Common::Coverage, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::Layout::Common::Coverage, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::Layout::Common::Coverage, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::Layout::GPOS_impl::AnchorFormat1*& hb_no_trace_t<bool>::ret<OT::Layout::GPOS_impl::AnchorFormat1*&>(OT::Layout::GPOS_impl::AnchorFormat1*&, char const*, unsigned int) Unexecuted instantiation: OT::Layout::GPOS_impl::AnchorFormat2* hb_no_trace_t<bool>::ret<OT::Layout::GPOS_impl::AnchorFormat2*>(OT::Layout::GPOS_impl::AnchorFormat2*&&, char const*, unsigned int) Unexecuted instantiation: OT::Layout::GPOS_impl::AnchorFormat3*& hb_no_trace_t<bool>::ret<OT::Layout::GPOS_impl::AnchorFormat3*&>(OT::Layout::GPOS_impl::AnchorFormat3*&, char const*, unsigned int) Unexecuted instantiation: hb_empty_t& hb_no_trace_t<hb_empty_t>::ret<hb_empty_t&>(hb_empty_t&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::Layout::GPOS_impl::PosLookupSubTable, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::Layout::GPOS_impl::PosLookupSubTable, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::Layout::GPOS_impl::PosLookupSubTable, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::Layout::GPOS_impl::PairSet<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::Layout::GPOS_impl::PairSet<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::Layout::GPOS_impl::PairSet<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::Layout::GPOS_impl::AnchorMatrix, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::Layout::GPOS_impl::AnchorMatrix, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::Layout::GPOS_impl::AnchorMatrix, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::RuleSet<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::RuleSet<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::RuleSet<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::Rule<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::Rule<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::Rule<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::ChainRuleSet<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::ChainRuleSet<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::ChainRuleSet<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::ChainRule<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::ChainRule<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::ChainRule<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::Layout::GPOS_impl::PosLookup, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::Layout::GPOS_impl::PosLookup, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::Layout::GPOS_impl::PosLookup, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::AxisValueFormat1* hb_no_trace_t<bool>::ret<OT::AxisValueFormat1*>(OT::AxisValueFormat1*&&, char const*, unsigned int) Unexecuted instantiation: OT::AxisValueFormat2* hb_no_trace_t<bool>::ret<OT::AxisValueFormat2*>(OT::AxisValueFormat2*&&, char const*, unsigned int) Unexecuted instantiation: OT::AxisValueFormat3* hb_no_trace_t<bool>::ret<OT::AxisValueFormat3*>(OT::AxisValueFormat3*&&, char const*, unsigned int) Unexecuted instantiation: unsigned int& hb_no_trace_t<bool>::ret<unsigned int&>(unsigned int&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::Layout::GSUB_impl::SubstLookupSubTable, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::Layout::GSUB_impl::SubstLookupSubTable, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::Layout::GSUB_impl::SubstLookupSubTable, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::Layout::GSUB_impl::Sequence<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::Layout::GSUB_impl::Sequence<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::Layout::GSUB_impl::Sequence<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::Layout::GSUB_impl::AlternateSet<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::Layout::GSUB_impl::AlternateSet<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::Layout::GSUB_impl::AlternateSet<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::Layout::GSUB_impl::LigatureSet<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::Layout::GSUB_impl::LigatureSet<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::Layout::GSUB_impl::LigatureSet<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::Layout::GSUB_impl::Ligature<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::Layout::GSUB_impl::Ligature<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::Layout::GSUB_impl::Ligature<OT::Layout::SmallTypes>, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::Layout::GSUB_impl::SubstLookup, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::Layout::GSUB_impl::SubstLookup, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::Layout::GSUB_impl::SubstLookup, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: OT::EncodingRecord*& hb_no_trace_t<bool>::ret<OT::EncodingRecord*&>(OT::EncodingRecord*&, char const*, unsigned int) Unexecuted instantiation: OT::AxisValueMap* hb_no_trace_t<bool>::ret<OT::AxisValueMap*>(OT::AxisValueMap*&&, char const*, unsigned int) Unexecuted instantiation: hb_array_t<OT::IntType<unsigned int, 4u> const> hb_no_trace_t<bool>::ret<hb_array_t<OT::IntType<unsigned int, 4u> const> >(hb_array_t<OT::IntType<unsigned int, 4u> const>&&, char const*, unsigned int) Unexecuted instantiation: OT::UnsizedArrayOf<OT::IntType<unsigned int, 4u> >*& hb_no_trace_t<bool>::ret<OT::UnsizedArrayOf<OT::IntType<unsigned int, 4u> >*&>(OT::UnsizedArrayOf<OT::IntType<unsigned int, 4u> >*&, char const*, unsigned int) Unexecuted instantiation: hb_array_t<OT::Index const> hb_no_trace_t<bool>::ret<hb_array_t<OT::Index const> >(hb_array_t<OT::Index const>&&, char const*, unsigned int) Unexecuted instantiation: OT::UnsizedArrayOf<OT::Index>*& hb_no_trace_t<bool>::ret<OT::UnsizedArrayOf<OT::Index>*&>(OT::UnsizedArrayOf<OT::Index>*&, char const*, unsigned int) Unexecuted instantiation: OT::VarIdx* hb_no_trace_t<bool>::ret<OT::VarIdx*>(OT::VarIdx*&&, char const*, unsigned int) Unexecuted instantiation: int hb_no_trace_t<bool>::ret<int>(int&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::Paint, OT::IntType<unsigned int, 4u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::Paint, OT::IntType<unsigned int, 4u>, void, true>*>(OT::OffsetTo<OT::Paint, OT::IntType<unsigned int, 4u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: hb_array_t<OT::LayerRecord const> hb_no_trace_t<bool>::ret<hb_array_t<OT::LayerRecord const> >(hb_array_t<OT::LayerRecord const>&&, char const*, unsigned int) Unexecuted instantiation: hb_array_t<OT::IntType<unsigned char, 1u> const> hb_no_trace_t<bool>::ret<hb_array_t<OT::IntType<unsigned char, 1u> const> >(hb_array_t<OT::IntType<unsigned char, 1u> const>&&, char const*, unsigned int) Unexecuted instantiation: OT::UnsizedArrayOf<OT::IntType<unsigned char, 1u> >*& hb_no_trace_t<bool>::ret<OT::UnsizedArrayOf<OT::IntType<unsigned char, 1u> >*&>(OT::UnsizedArrayOf<OT::IntType<unsigned char, 1u> >*&, char const*, unsigned int) Unexecuted instantiation: OT::SBIXGlyph*& hb_no_trace_t<bool>::ret<OT::SBIXGlyph*&>(OT::SBIXGlyph*&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::SBIXStrike, OT::IntType<unsigned int, 4u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::SBIXStrike, OT::IntType<unsigned int, 4u>, void, true>*>(OT::OffsetTo<OT::SBIXStrike, OT::IntType<unsigned int, 4u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: hb_array_t<char const> hb_no_trace_t<bool>::ret<hb_array_t<char const> >(hb_array_t<char const>&&, char const*, unsigned int) Unexecuted instantiation: CFF::Encoding* hb_no_trace_t<bool>::ret<CFF::Encoding*>(CFF::Encoding*&&, char const*, unsigned int) Unexecuted instantiation: char* hb_no_trace_t<bool>::ret<char*>(char*&&, char const*, unsigned int) Unexecuted instantiation: OT::NameRecord*& hb_no_trace_t<bool>::ret<OT::NameRecord*&>(OT::NameRecord*&, char const*, unsigned int) Unexecuted instantiation: unsigned int& hb_no_trace_t<unsigned int>::ret<unsigned int&>(unsigned int&, char const*, unsigned int) Unexecuted instantiation: unsigned int hb_no_trace_t<unsigned int>::ret<unsigned int>(unsigned int&&, char const*, unsigned int) Unexecuted instantiation: OT::OffsetTo<OT::BaseCoord, OT::IntType<unsigned short, 2u>, void, true>* hb_no_trace_t<bool>::ret<OT::OffsetTo<OT::BaseCoord, OT::IntType<unsigned short, 2u>, void, true>*>(OT::OffsetTo<OT::BaseCoord, OT::IntType<unsigned short, 2u>, void, true>*&&, char const*, unsigned int) Unexecuted instantiation: hb_array_t<OT::Tag const> hb_no_trace_t<bool>::ret<hb_array_t<OT::Tag const> >(hb_array_t<OT::Tag const>&&, char const*, unsigned int) Unexecuted instantiation: OT::ArrayOf<OT::Tag, OT::IntType<unsigned short, 2u> >*& hb_no_trace_t<bool>::ret<OT::ArrayOf<OT::Tag, OT::IntType<unsigned short, 2u> >*&>(OT::ArrayOf<OT::Tag, OT::IntType<unsigned short, 2u> >*&, char const*, unsigned int) Unexecuted instantiation: OT::SortedArrayOf<OT::Tag, OT::IntType<unsigned short, 2u> >*& hb_no_trace_t<bool>::ret<OT::SortedArrayOf<OT::Tag, OT::IntType<unsigned short, 2u> >*&>(OT::SortedArrayOf<OT::Tag, OT::IntType<unsigned short, 2u> >*&, char const*, unsigned int) |
348 | | }; |
349 | | |
350 | 213M | #define return_trace(RET) return trace.ret (RET, HB_FUNC, __LINE__) Unexecuted instantiation: OT::RuleSet<OT::Layout::SmallTypes>::apply(OT::hb_ot_apply_context_t*, OT::ContextApplyLookupContext const&) const::{lambda(OT::Rule<OT::Layout::SmallTypes> const&)#1}::operator()(OT::Rule<OT::Layout::SmallTypes> const&) const Unexecuted instantiation: OT::RuleSet<OT::Layout::SmallTypes>::apply(OT::hb_ot_apply_context_t*, OT::ContextApplyLookupContext const&) const::{lambda(OT::Rule<OT::Layout::SmallTypes> const&)#3}::operator()(OT::Rule<OT::Layout::SmallTypes> const&) const Unexecuted instantiation: OT::RuleSet<OT::Layout::SmallTypes>::apply(OT::hb_ot_apply_context_t*, OT::ContextApplyLookupContext const&) const::{lambda(OT::Rule<OT::Layout::SmallTypes> const&)#2}::operator()(OT::Rule<OT::Layout::SmallTypes> const&) const Unexecuted instantiation: OT::ChainRuleSet<OT::Layout::SmallTypes>::apply(OT::hb_ot_apply_context_t*, OT::ChainContextApplyLookupContext const&) const::{lambda(OT::ChainRule<OT::Layout::SmallTypes> const&)#1}::operator()(OT::ChainRule<OT::Layout::SmallTypes> const&) const Unexecuted instantiation: OT::ChainRuleSet<OT::Layout::SmallTypes>::apply(OT::hb_ot_apply_context_t*, OT::ChainContextApplyLookupContext const&) const::{lambda(OT::ChainRule<OT::Layout::SmallTypes> const&)#3}::operator()(OT::ChainRule<OT::Layout::SmallTypes> const&) const Unexecuted instantiation: OT::ChainRuleSet<OT::Layout::SmallTypes>::apply(OT::hb_ot_apply_context_t*, OT::ChainContextApplyLookupContext const&) const::{lambda(OT::ChainRule<OT::Layout::SmallTypes> const&)#2}::operator()(OT::ChainRule<OT::Layout::SmallTypes> const&) const |
351 | | |
352 | | |
353 | | /* |
354 | | * Instances. |
355 | | */ |
356 | | |
357 | | #ifndef HB_DEBUG_ARABIC |
358 | | #define HB_DEBUG_ARABIC (HB_DEBUG+0) |
359 | | #endif |
360 | | |
361 | | #ifndef HB_DEBUG_BLOB |
362 | | #define HB_DEBUG_BLOB (HB_DEBUG+0) |
363 | | #endif |
364 | | |
365 | | #ifndef HB_DEBUG_CORETEXT |
366 | | #define HB_DEBUG_CORETEXT (HB_DEBUG+0) |
367 | | #endif |
368 | | |
369 | | #ifndef HB_DEBUG_DIRECTWRITE |
370 | | #define HB_DEBUG_DIRECTWRITE (HB_DEBUG+0) |
371 | | #endif |
372 | | |
373 | | #ifndef HB_DEBUG_FT |
374 | | #define HB_DEBUG_FT (HB_DEBUG+0) |
375 | | #endif |
376 | | |
377 | | #ifndef HB_DEBUG_JUSTIFY |
378 | | #define HB_DEBUG_JUSTIFY (HB_DEBUG+0) |
379 | | #endif |
380 | | |
381 | | #ifndef HB_DEBUG_OBJECT |
382 | | #define HB_DEBUG_OBJECT (HB_DEBUG+0) |
383 | | #endif |
384 | | |
385 | | #ifndef HB_DEBUG_SHAPE_PLAN |
386 | | #define HB_DEBUG_SHAPE_PLAN (HB_DEBUG+0) |
387 | | #endif |
388 | | |
389 | | #ifndef HB_DEBUG_UNISCRIBE |
390 | | #define HB_DEBUG_UNISCRIBE (HB_DEBUG+0) |
391 | | #endif |
392 | | |
393 | | #ifndef HB_DEBUG_WASM |
394 | | #define HB_DEBUG_WASM (HB_DEBUG+0) |
395 | | #endif |
396 | | |
397 | | /* |
398 | | * With tracing. |
399 | | */ |
400 | | |
401 | | #ifndef HB_DEBUG_APPLY |
402 | | #define HB_DEBUG_APPLY (HB_DEBUG+0) |
403 | | #endif |
404 | | #if HB_DEBUG_APPLY |
405 | | #define TRACE_APPLY(this) \ |
406 | | hb_auto_trace_t<HB_DEBUG_APPLY, bool> trace \ |
407 | | (&c->debug_depth, c->get_name (), this, HB_FUNC, \ |
408 | | "idx %u gid %u lookup %d", \ |
409 | | c->buffer->idx, c->buffer->cur().codepoint, (int) c->lookup_index) |
410 | | #else |
411 | 179M | #define TRACE_APPLY(this) hb_no_trace_t<bool> trace |
412 | | #endif |
413 | | |
414 | | #ifndef HB_DEBUG_SANITIZE |
415 | | #define HB_DEBUG_SANITIZE (HB_DEBUG+0) |
416 | | #endif |
417 | | #if HB_DEBUG_SANITIZE |
418 | | #define TRACE_SANITIZE(this) \ |
419 | | hb_auto_trace_t<HB_DEBUG_SANITIZE, bool> trace \ |
420 | | (&c->debug_depth, c->get_name (), this, HB_FUNC, \ |
421 | | " ") |
422 | | #else |
423 | 7.55M | #define TRACE_SANITIZE(this) hb_no_trace_t<bool> trace |
424 | | #endif |
425 | | |
426 | | #ifndef HB_DEBUG_SERIALIZE |
427 | | #define HB_DEBUG_SERIALIZE (HB_DEBUG+0) |
428 | | #endif |
429 | | #if HB_DEBUG_SERIALIZE |
430 | | #define TRACE_SERIALIZE(this) \ |
431 | | hb_auto_trace_t<HB_DEBUG_SERIALIZE, bool> trace \ |
432 | | (&c->debug_depth, "SERIALIZE", c, HB_FUNC, \ |
433 | | " ") |
434 | | #else |
435 | 0 | #define TRACE_SERIALIZE(this) hb_no_trace_t<bool> trace |
436 | | #endif |
437 | | |
438 | | #ifndef HB_DEBUG_SUBSET |
439 | | #define HB_DEBUG_SUBSET (HB_DEBUG+0) |
440 | | #endif |
441 | | #if HB_DEBUG_SUBSET |
442 | | #define TRACE_SUBSET(this) \ |
443 | | hb_auto_trace_t<HB_DEBUG_SUBSET, bool> trace \ |
444 | | (&c->debug_depth, c->get_name (), this, HB_FUNC, \ |
445 | | " ") |
446 | | #else |
447 | | #define TRACE_SUBSET(this) hb_no_trace_t<bool> trace |
448 | | #endif |
449 | | |
450 | | #ifndef HB_DEBUG_SUBSET_REPACK |
451 | | #define HB_DEBUG_SUBSET_REPACK (HB_DEBUG+0) |
452 | | #endif |
453 | | |
454 | | #ifndef HB_DEBUG_PAINT |
455 | | #define HB_DEBUG_PAINT (HB_DEBUG+0) |
456 | | #endif |
457 | | #if HB_DEBUG_PAINT |
458 | | #define TRACE_PAINT(this) \ |
459 | | HB_UNUSED hb_auto_trace_t<HB_DEBUG_PAINT, void> trace \ |
460 | | (&c->debug_depth, c->get_name (), this, HB_FUNC, \ |
461 | | " ") |
462 | | #else |
463 | 0 | #define TRACE_PAINT(this) HB_UNUSED hb_no_trace_t<void> trace |
464 | | #endif |
465 | | |
466 | | |
467 | | #ifndef HB_DEBUG_DISPATCH |
468 | | #define HB_DEBUG_DISPATCH ( \ |
469 | | HB_DEBUG_APPLY + \ |
470 | | HB_DEBUG_SANITIZE + \ |
471 | | HB_DEBUG_SERIALIZE + \ |
472 | | HB_DEBUG_SUBSET + \ |
473 | | HB_DEBUG_PAINT + \ |
474 | | 0) |
475 | | #endif |
476 | | #if HB_DEBUG_DISPATCH |
477 | | #define TRACE_DISPATCH(this, format) \ |
478 | | hb_auto_trace_t<context_t::max_debug_depth, typename context_t::return_t> trace \ |
479 | | (&c->debug_depth, c->get_name (), this, HB_FUNC, \ |
480 | | "format %u", (unsigned) format) |
481 | | #else |
482 | 26.2M | #define TRACE_DISPATCH(this, format) hb_no_trace_t<typename context_t::return_t> trace |
483 | | #endif |
484 | | |
485 | | |
486 | | #ifndef HB_BUFFER_MESSAGE_MORE |
487 | 8.25M | #define HB_BUFFER_MESSAGE_MORE (HB_DEBUG+1) |
488 | | #endif |
489 | | |
490 | | |
491 | | #endif /* HB_DEBUG_HH */ |