Mercurial > hg > CbC > CbC_gcc
comparison gcc/c-family/c-pretty-print.h @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* Various declarations for the C and C++ pretty-printers. | 1 /* Various declarations for the C and C++ pretty-printers. |
2 Copyright (C) 2002-2018 Free Software Foundation, Inc. | 2 Copyright (C) 2002-2020 Free Software Foundation, Inc. |
3 Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net> | 3 Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net> |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify it under | 7 GCC is free software; you can redistribute it and/or modify it under |
34 }; | 34 }; |
35 | 35 |
36 | 36 |
37 /* The data type used to bundle information necessary for pretty-printing | 37 /* The data type used to bundle information necessary for pretty-printing |
38 a C or C++ entity. */ | 38 a C or C++ entity. */ |
39 struct c_pretty_printer; | 39 class c_pretty_printer; |
40 | 40 |
41 /* The type of a C pretty-printer 'member' function. */ | 41 /* The type of a C pretty-printer 'member' function. */ |
42 typedef void (*c_pretty_print_fn) (c_pretty_printer *, tree); | 42 typedef void (*c_pretty_print_fn) (c_pretty_printer *, tree); |
43 | 43 |
44 /* The datatype that contains information necessary for pretty-printing | 44 /* The datatype that contains information necessary for pretty-printing |
45 a tree that represents a C construct. Any pretty-printer for a | 45 a tree that represents a C construct. Any pretty-printer for a |
46 language using C syntax can derive from this datatype and reuse | 46 language using C syntax can derive from this datatype and reuse |
47 facilities provided here. A derived pretty-printer can override | 47 facilities provided here. A derived pretty-printer can override |
48 any function listed in the vtable below. See cp/cxx-pretty-print.h | 48 any function listed in the vtable below. See cp/cxx-pretty-print.h |
49 and cp/cxx-pretty-print.c for an example of derivation. */ | 49 and cp/cxx-pretty-print.c for an example of derivation. */ |
50 struct c_pretty_printer : pretty_printer | 50 class c_pretty_printer : public pretty_printer |
51 { | 51 { |
52 public: | |
52 c_pretty_printer (); | 53 c_pretty_printer (); |
54 pretty_printer *clone () const OVERRIDE; | |
53 | 55 |
54 // Format string, possibly translated. | 56 // Format string, possibly translated. |
55 void translate_string (const char *); | 57 void translate_string (const char *); |
56 | 58 |
57 virtual void constant (tree); | 59 virtual void constant (tree); |