summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/src/align_assign.h
blob: 8a23d0d55f1d93b723faeafa072a3cc460454007 (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
/**
 * @file align_assign.h
 *
 * @author  Guy Maurel
 * split from align.cpp
 * @author  Ben Gardner
 * @license GPL v2+
 */

#ifndef ALIGN_ASSIGN_H_INCLUDED
#define ALIGN_ASSIGN_H_INCLUDED

#include "chunk.h"

/**
 * Aligns all assignment operators on the same level as first, starting with
 * first.
 * For variable definitions, only consider the '=' for the first variable.
 * Otherwise, only look at the first '=' on the line.
 *
 * @param first  chunk pointing to the first assignment
 */
Chunk *align_assign(Chunk *first, size_t span, size_t thresh, size_t *p_nl_count);

#endif /* ALIGN_ASSIGN_H_INCLUDED */