diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-05-19 16:22:10 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-05-19 19:14:52 +0900 |
commit | 71fb4a139179e9d27070f7f3e98971e3e029697f (patch) | |
tree | 92fbf03f1e546b3c99e6e06e98100b6ef8e4e2c6 /debian/uncrustify-trinity/uncrustify-trinity-0.73.0/src/indent.h | |
parent | 6eae1a16a1001287ef5129db86f4ef2145ace3ca (diff) | |
download | extra-dependencies-71fb4a139179e9d27070f7f3e98971e3e029697f.tar.gz extra-dependencies-71fb4a139179e9d27070f7f3e98971e3e029697f.zip |
uncrustify: updated to version 0.73
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.73.0/src/indent.h')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.73.0/src/indent.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/src/indent.h b/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/src/indent.h new file mode 100644 index 00000000..dc703eed --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/src/indent.h @@ -0,0 +1,59 @@ +/** + * @file indent.h + * prototypes for indent.c + * + * @author Ben Gardner + * @license GPL v2+ + */ +#ifndef INDENT_H_INCLUDED +#define INDENT_H_INCLUDED + +#include "uncrustify_types.h" + + +/** + * Change the top-level indentation only by changing the column member in + * the chunk structures. + * The level indicator must already be set. + */ +void indent_text(void); + + +/** + * Indent the preprocessor stuff from column 1. + * FIXME: This is broken if there is a comment or escaped newline + * between '#' and 'define'. + */ +void indent_preproc(void); + +/** + * + * @param pc chunk at the start of the line + * @param column desired column + */ +void indent_to_column(chunk_t *pc, size_t column); + + +/** + * Same as indent_to_column, except we can move both ways + * + * @param pc chunk at the start of the line + * @param column desired column + */ +void align_to_column(chunk_t *pc, size_t column); + + +//! Scan to see if the whole file is covered by one #ifdef +bool ifdef_over_whole_file(void); + + +/** + * Changes the initial indent for a line to the given column + * + * @param pc The chunk at the start of the line + * @param column The desired column + */ +void reindent_line(chunk_t *pc, size_t column); + + +#endif /* INDENT_H_INCLUDED */ |