Merge pull request #1467 from paulromano/clang-format-add

Add a proposed .clang-format file
This commit is contained in:
Sterling Harper 2020-02-04 11:19:18 -05:00 committed by GitHub
commit 2a5a1ab841
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 211 additions and 91 deletions

View file

@ -12,6 +12,14 @@ adding new code in OpenMC.
C++
---
.. important:: To ensure consistent styling with little effort, this project
uses `clang-format <https://clang.llvm.org/docs/ClangFormat.html>`_. The
repository contains a ``.clang-format`` file that can be used to
automatically apply the style rules that are described below. The easiest
way to use clang-format is through a plugin/extension for your editor/IDE
that automatically runs clang-format using the ``.clang-format`` file
whenever a file is saved.
Indentation
-----------