summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/src/braces.h
blob: d48f40142702213307e2f33f99921192f7569292 (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_t *insert_comment_after(chunk_t *ref, c_token_t cmt_type, const unc_text &cmt_text);


#endif /* BRACES_H_INCLUDED */