https://github.com/povilasb/clang-format-sample
Basic sample of clang-format use.
https://github.com/povilasb/clang-format-sample
Last synced: 3 months ago
JSON representation
Basic sample of clang-format use.
- Host: GitHub
- URL: https://github.com/povilasb/clang-format-sample
- Owner: povilasb
- License: mit
- Created: 2014-11-25T08:46:36.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-25T08:47:01.000Z (over 10 years ago)
- Last Synced: 2025-03-16T00:14:23.938Z (3 months ago)
- Language: C++
- Size: 102 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=====
About
=====This is a basic sample of clang-format use. This tool reformats C++ (and
other languages) code to match your defined style.Installation
============On debian wheezy latest available version is 3.5:
$ sudo apt-get install clang-format-3.5
Put `.clang-format` into your project root directory.
Vim integration
===============Put this into `~/.vimrc`::
map :pyf /usr/share/vim/addons/syntax/clang-format-3.5.py
imap :pyf /usr/share/vim/addons/syntax/clang-format-3.5.py`Ctrl + k` reformats current line or selected region (`shift + v`).