diff options
Diffstat (limited to 'sources/shiboken2/generator/indentor.h')
-rw-r--r-- | sources/shiboken2/generator/indentor.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sources/shiboken2/generator/indentor.h b/sources/shiboken2/generator/indentor.h index 111259f12..3dcec85b6 100644 --- a/sources/shiboken2/generator/indentor.h +++ b/sources/shiboken2/generator/indentor.h @@ -82,4 +82,18 @@ inline QTextStream &operator <<(QTextStream &s, const IndentorBase<tabWidth> &in return s; } +template <int tabWidth> +const char *indent(IndentorBase<tabWidth> &indentor) +{ + ++indentor.indent; + return ""; +} + +template <int tabWidth> +const char *outdent(IndentorBase<tabWidth> &indentor) +{ + --indentor.indent; + return ""; +} + #endif // GENERATOR_H |