diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-06-13 22:32:40 +0000 |
---|---|---|
committer | Jan Kratochvil <jkratoch@gcc.gnu.org> | 2011-06-13 22:32:40 +0000 |
commit | f019462c62cdba9ffea92d81e0709cb3bcc05e70 (patch) | |
tree | 24049e95658da009e3b8bd1958b7b0ead304b317 /include/demangle.h | |
parent | 743a99db07908cbc7690ed1fb7c30f8d9e208a8e (diff) | |
download | gcc-f019462c62cdba9ffea92d81e0709cb3bcc05e70.tar.gz |
demangle.h (DMGL_RET_POSTFIX): Extend the comment.
include/
* demangle.h (DMGL_RET_POSTFIX): Extend the comment.
(DMGL_RET_DROP): New.
libiberty/
* cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do
not pass DMGL_RET_POSTFIX or DMGL_RET_DROP. Support DMGL_RET_DROP.
* testsuite/demangle-expected: New testcases for --ret-drop.
* testsuite/test-demangle.c: Document --ret-drop in a comment.
(main): New variable ret_drop, fill it, call cplus_demangle with it.
From-SVN: r175000
Diffstat (limited to 'include/demangle.h')
-rw-r--r-- | include/demangle.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/demangle.h b/include/demangle.h index c0624559ee2..53f6c54f524 100644 --- a/include/demangle.h +++ b/include/demangle.h @@ -45,7 +45,13 @@ extern "C" { #define DMGL_VERBOSE (1 << 3) /* Include implementation details. */ #define DMGL_TYPES (1 << 4) /* Also try to demangle type encodings. */ #define DMGL_RET_POSTFIX (1 << 5) /* Print function return types (when - present) after function signature */ + present) after function signature. + It applies only to the toplevel + function type. */ +#define DMGL_RET_DROP (1 << 6) /* Suppress printing function return + types, even if present. It applies + only to the toplevel function type. + */ #define DMGL_AUTO (1 << 8) #define DMGL_GNU (1 << 9) |