summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/src/braces.h
blob: 763b6470c5e77100a3bd87b58cbb66c85f1a4acc (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();

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


/**
 * 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 */