summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/src/braces.h
blob: c9695bbeccdc6f0d3750ee3cc8fe45314416a112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
 * @file braces.h
 * prototypes for braces.cpp
 *
 * @author  Ben Gardner
 * @license GPL v2+
 */

#ifndef BRACES_H_INCLUDED
#define BRACES_H_INCLUDED

#include "uncrustify_types.h"


//! Change virtual braces into real braces
void do_braces(void);

/**
 * See the preprocessor counterpart:
 *   add_long_preprocessor_conditional_block_comment
 * in output.cpp
 */
void add_long_closebrace_comment(void);


/**
 * Adds a comment after the ref chunk
 * Returns the added chunk or nullptr
 */
Chunk *insert_comment_after(Chunk *ref, E_Token cmt_type, const unc_text &cmt_text);


#endif /* BRACES_H_INCLUDED */