Introduce 'pp' library (#430)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 4 Jul 2018 10:09:01 +0000 (19:09 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 4 Jul 2018 10:09:01 +0000 (19:09 +0900)
commit7a5461a8f4945b5eacdf24816c5c5aa415e0d058
tree9c4c96cb3a8ba91eb06feab64c516c7e0301cb63
parent2c0c2033db69c43efbd4e721357d5218f4cca257
Introduce 'pp' library (#430)

* Introduce 'pp' library

This commit introduces 'pp' library which provides various helper
functions and classes for pretty-printing.

The current implementation provides 'fmt' function which constructs a
string using operator<<, and IndentedDocumentBuilder class which makes
it easy to build indented documents especially when indentation is
nested.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Check _level before unindent

* Use static storage quantifier

* Use strict compile options

* Remove unnecessary override

* Do not construct temporary string objects
contrib/pp/.FORMATCHECKED [new file with mode: 0644]
contrib/pp/CMakeLists.txt [new file with mode: 0644]
contrib/pp/include/pp/Format.h [new file with mode: 0644]
contrib/pp/include/pp/IndentedDocumentBuilder.h [new file with mode: 0644]
contrib/pp/src/Format.test.cpp [new file with mode: 0644]
contrib/pp/src/IndentedDocumentBuilder.cpp [new file with mode: 0644]
contrib/pp/src/IndentedDocumentBuilder.test.cpp [new file with mode: 0644]