Skip to content

A patch of clang format for #pragma with no patch to clang-format

License

Notifications You must be signed in to change notification settings

ishizakiyu/p-clang-format

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Introduction

clang-format is a great tool but yet some features are still missing for many years. This project helps you to format #pragma omp, #pragma unroll, etc. with the right indent.

The name of this project comes from patched clang-format. There are many usages brought by this script binary to help patch the formating rules of clang-format.

Usage

  • Use it the way you use clang-format
  • You can also run with env var to replace any pragma REPLACE_ANY_PRAGMA=1 ./p-clang-format ...

Vim Autoformat support

If you are interested in how this works or how to add this capability to your vim script, please refer to this blog

Install

Simply copy this binary to any folder listed in $PATH or /usr/bin/.

License

MIT License.

About

A patch of clang format for #pragma with no patch to clang-format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%