diff options
| author | Léo Lam <leo@leolam.fr> | 2021-03-20 10:17:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-20 05:17:39 -0400 |
| commit | 4751db5c9ee0a25a26379ca5b44efad72215d256 (patch) | |
| tree | ce49e6e23e352c93424343f75b2e10601457a9c3 /ZAPD/OutputFormatter.h | |
| parent | 963a282dc10036f367a2cb09bb5651aefc73d2a4 (diff) | |
Add a clang-format config and reformat all source files (#63)
* build: Add genbuildinfo as a dependency for ZAPD object files
* Add a clang-format config and reformat all source files
The existing code style is mostly preserved; this just makes formatting
more consistent and prevents lines from getting too long.
* Fix missing includes
Diffstat (limited to 'ZAPD/OutputFormatter.h')
| -rw-r--r-- | ZAPD/OutputFormatter.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/ZAPD/OutputFormatter.h b/ZAPD/OutputFormatter.h index d1cdc68..97edcdd 100644 --- a/ZAPD/OutputFormatter.h +++ b/ZAPD/OutputFormatter.h @@ -1,8 +1,8 @@ #pragma once -#include <vector> #include <map> #include <string> +#include <vector> class OutputFormatter { @@ -18,21 +18,20 @@ private: char word[128]; char space[128]; - char *word_p; - char *space_p; + char* word_p; + char* space_p; std::string str; - int write(const char *buf, int count); + int write(const char* buf, int count); - static OutputFormatter *static_instance; - static int write_static(const char *buf, int count); + static OutputFormatter* static_instance; + static int write_static(const char* buf, int count); public: - OutputFormatter(int tab_size = 4, int default_indent = 4, - int line_limit = 120); + OutputFormatter(int tab_size = 4, int default_indent = 4, int line_limit = 120); - int (*static_writer())(const char *buf, int count); + int (*static_writer())(const char* buf, int count); std::string get_output(); };
\ No newline at end of file |
