diff options
author | Michele Calgaro <[email protected]> | 2022-05-06 13:43:02 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2022-05-06 13:49:57 +0900 |
commit | 80a31d6c8a114799dc5284086ffce2e9be34c50e (patch) | |
tree | 1719891657e76c04f063f5ff7b5fdf63d9e562c3 /debian/uncrustify-trinity/uncrustify-trinity-0.75.0/src/lang_pawn.h | |
parent | e6ba08c3b21cdb14ee3a97b5d584759a4597b54b (diff) | |
download | extra-dependencies-80a31d6c8a114799dc5284086ffce2e9be34c50e.tar.gz extra-dependencies-80a31d6c8a114799dc5284086ffce2e9be34c50e.zip |
uncrustify-trinity: updated based on upstream version 0.75.0
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.75.0/src/lang_pawn.h')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.75.0/src/lang_pawn.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/src/lang_pawn.h b/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/src/lang_pawn.h new file mode 100644 index 00000000..9e2d7832 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/src/lang_pawn.h @@ -0,0 +1,49 @@ +/** + * @file long_pawn.h + * prototypes for long_pawn.c + * + * @author Ben Gardner + * @license GPL v2+ + */ +#ifndef LONG_PAWN_H_INCLUDED +#define LONG_PAWN_H_INCLUDED + +#include "uncrustify_types.h" + + +/** + * Does a scan of level 0 BEFORE stuff in combine.cpp is called. + * At this point, VSemis have been added only in VBraces. + * Otherwise, all level info is correct, except for unbraced functions. + * + * We are looking for unbraced functions. + */ +void pawn_prescan(void); + + +void pawn_add_virtual_semicolons(void); + + +/** + * We are in a virtual brace and hit a newline. + * If this should end the vbrace, then insert a VSEMICOLON and return that. + * + * @param pc The newline (CT_NEWLINE) + * + * @return Either the newline or the newly inserted virtual semicolon + */ +Chunk *pawn_check_vsemicolon(Chunk *pc); + + +/** + * Turns certain virtual semicolons invisible. + * - after a close brace with a parent of switch, case, else, if + */ +void pawn_scrub_vsemi(void); + + +//! add a semicolon after ... +Chunk *pawn_add_vsemi_after(Chunk *pc); + + +#endif /* LONG_PAWN_H_INCLUDED */ |