You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
616 B
26 lines
616 B
/**
|
|
* @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 */
|