Skip to main content

Format comment blocks in C++ source files

Project description

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", "@"]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cpp_comment_format-0.1.0.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

cpp_comment_format-0.1.0-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page