File tree 3 files changed +26
-8
lines changed
3 files changed +26
-8
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ # See all possible options and defaults with:
3
+ # clang-format --style=llvm --dump-config
4
+ BasedOnStyle : LLVM
5
+ AccessModifierOffset : -4
6
+ AlignConsecutiveAssignments : true
7
+ AlwaysBreakTemplateDeclarations : Yes
8
+ BinPackArguments : false
9
+ BinPackParameters : false
10
+ BreakBeforeBinaryOperators : All
11
+ BreakConstructorInitializers : BeforeColon
12
+ ColumnLimit : 99
13
+ IndentCaseLabels : true
14
+ IndentPPDirectives : AfterHash
15
+ IndentWidth : 4
16
+ Language : Cpp
17
+ SpaceAfterCStyleCast : true
18
+ # SpaceInEmptyBlock: true # too new
19
+ Standard : Cpp11
20
+ TabWidth : 4
21
+ ...
Original file line number Diff line number Diff line change @@ -104,8 +104,10 @@ PYBIND11_NAMESPACE_END(detail)
104
104
.. code-block:: cpp
105
105
106
106
{
107
- py::scoped_ostream_redirect output{std::cerr, py::module_::import("sys").attr("stderr")};
108
- std::cerr << "Hello, World!";
107
+ py::scoped_ostream_redirect output{
108
+ std::cerr,
109
+ py::module::import("sys").attr("stderr")
110
+ };
109
111
}
110
112
\endrst */
111
113
class scoped_ostream_redirect {
Original file line number Diff line number Diff line change @@ -43,12 +43,7 @@ ignore =
43
43
docs/**
44
44
tools/**
45
45
include/**
46
- .appveyor.yml
47
- .cmake-format.yaml
48
- .gitmodules
49
- .pre-commit-config.yaml
50
- .readthedocs.yml
51
- .clang-tidy
46
+ .*
52
47
pybind11/include/**
53
48
pybind11/share/**
54
49
CMakeLists.txt
You can’t perform that action at this time.
0 commit comments