diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-10-20 11:54:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-20 11:54:07 +0000 |
commit | dfb5921b76589c09e7794f5f8010427b93616e9d (patch) | |
tree | afee0ddbe488a894a4242a8de17839c4235d6bbd /gcc/rust/ast/rust-ast-dump.h | |
parent | 3cedc655c2928707612da663211c0802a8ec9319 (diff) | |
parent | 15229ea41faccfd2cbe4309b2afe333b56b090b1 (diff) | |
download | gcc-dfb5921b76589c09e7794f5f8010427b93616e9d.zip gcc-dfb5921b76589c09e7794f5f8010427b93616e9d.tar.gz gcc-dfb5921b76589c09e7794f5f8010427b93616e9d.tar.bz2 |
Merge #1549
1549: Dump macro declarations properly r=CohenArthur a=CohenArthur
Dump `MacroRulesDef` properly
Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/ast/rust-ast-dump.h')
-rw-r--r-- | gcc/rust/ast/rust-ast-dump.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gcc/rust/ast/rust-ast-dump.h b/gcc/rust/ast/rust-ast-dump.h index 2da2736..9fe8ee9 100644 --- a/gcc/rust/ast/rust-ast-dump.h +++ b/gcc/rust/ast/rust-ast-dump.h @@ -72,7 +72,9 @@ private: std::ostream &stream; Indent indentation; - // Format together common items of functions: Parameters, return type, block + /** + * Format together common items of functions: Parameters, return type, block + */ void format_function_common (std::unique_ptr<Type> &return_type, std::unique_ptr<BlockExpr> &block); @@ -97,13 +99,19 @@ private: std::ostream &emit_indented_string (const std::string &value, const std::string &comment = ""); - // Emit formatted string for generic parameters. + /** + * Emit formatted string for generic parameters + */ void emit_generic_params (std::vector<std::unique_ptr<GenericParam>> ¶ms); - // Format a single field of a tuple. + /** + * Format a single field of a tuple + */ void format_tuple_field (TupleField &field); - // Format a single field of a struct. + /** + * Format a single field of a struct + */ void format_struct_field (StructField &field); // rust-ast.h |