/cpp_comment_format

Formatting comment blocks

Primary LanguagePythonMIT LicenseMIT

cpp_comment_format

Format code blocks.

From command line

Default style, print result to screen:

cpp_comment_format example.cpp

To modify in place:

cpp_comment_format -i example.cpp

Using a specific style:

cpp_comment_format --style "javadoc" --doxygen "@" example.cpp

Using pre-commit

Default style:

repos:
- repo: https://github.com/tdegeus/cpp_comment_format
  rev: v0.0.2
  hooks:
  - id: cpp_comment_format

Using a specific style:

repos:
- repo: https://github.com/tdegeus/cpp_comment_format
  rev: v0.0.2
  hooks:
  - id: cpp_comment_format
    args: ["--style", "javadoc", "--doxygen", "@"]