summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/src/align_assign.h
blob: e14ad62c30f43ef5179a9eeeefbba8ba506b82fc (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_list.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_t *align_assign(chunk_t *first, size_t span, size_t thresh, size_t *p_nl_count);

#endif /* ALIGN_ASSIGN_H_INCLUDED */