diff options
author | Michele Calgaro <[email protected]> | 2023-11-18 17:53:35 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-19 19:27:29 +0900 |
commit | c0a6f1b84c84749908961579b84513fd9f9d9eac (patch) | |
tree | ace7ba60cb031acd3a1f4ff10f7bbc5668fa801f /debian/uncrustify-trinity/uncrustify-trinity-0.78.0/src/space.h | |
parent | 52e5ffe140f0f4402e97936447bc9a606045d2b5 (diff) | |
download | extra-dependencies-c0a6f1b84c84749908961579b84513fd9f9d9eac.tar.gz extra-dependencies-c0a6f1b84c84749908961579b84513fd9f9d9eac.zip |
uncrustify-trinity: updated based on upstream version 0.78.0
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.0/src/space.h')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.78.0/src/space.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/src/space.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/src/space.h new file mode 100644 index 00000000..275772f2 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/src/space.h @@ -0,0 +1,45 @@ +/** + * @file space.h + * prototypes for space.cpp + * + * @author Ben Gardner + * @license GPL v2+ + */ +#ifndef SPACE_H_INCLUDED +#define SPACE_H_INCLUDED + +#include "uncrustify_types.h" + + +/** + * Marches through the whole file and checks to see how many spaces should be + * between two chunks + */ +void space_text(); + + +//! Marches through the whole file and adds spaces around nested parenthesis +void space_text_balance_nested_parens(); + + +//! Determines if a space is required between two chunks +size_t space_needed(Chunk *first, Chunk *second); + + +/** + * Calculates the column difference between two chunks. + * The rules are bent a bit here, as IARF_IGNORE and IARF_ADD become IARF_FORCE. + * So the column difference is either first->len or first->len + 1. + * + * @param first The first chunk + * @param second The second chunk + * + * @return the column difference between the two chunks + */ +size_t space_col_align(Chunk *first, Chunk *second); + + +void space_add_after(Chunk *pc, size_t count); + + +#endif /* SPACE_H_INCLUDED */ |