Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
abc38690
Unverified
Commit
abc38690
authored
Feb 09, 2022
by
Ralf W. Grosse-Kunstleve
Committed by
GitHub
Feb 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Manually applying two clang-format changes that need fix-ups for clang-tidy. (#3705)
parent
7769e771
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
include/pybind11/pytypes.h
+2
-2
tests/test_stl.cpp
+5
-4
No files found.
include/pybind11/pytypes.h
View file @
abc38690
...
...
@@ -1516,8 +1516,8 @@ public:
}
}
// NOLINTNEXTLINE(google-explicit-constructor)
template
<
typename
T
>
operator
T
*
()
const
{
template
<
typename
T
>
operator
T
*
()
const
{
// NOLINT(google-explicit-constructor)
return
get_pointer
<
T
>
();
}
...
...
tests/test_stl.cpp
View file @
abc38690
...
...
@@ -400,10 +400,11 @@ TEST_SUBMODULE(stl, m) {
m
.
def
(
"half_or_none_refsensitive"
,
[](
int
x
)
->
refsensitive_opt_int
{
return
x
!=
0
?
refsensitive_opt_int
(
x
/
2
)
:
refsensitive_opt_int
();
});
// NOLINTNEXTLINE(performance-unnecessary-value-param)
m
.
def
(
"test_nullopt_refsensitive"
,
[](
refsensitive_opt_int
x
)
{
return
x
?
x
.
value
()
:
42
;
},
py
::
arg_v
(
"x"
,
refsensitive_opt_int
(),
"None"
));
m
.
def
(
"test_nullopt_refsensitive"
,
// NOLINTNEXTLINE(performance-unnecessary-value-param)
[](
refsensitive_opt_int
x
)
{
return
x
?
x
.
value
()
:
42
;
},
py
::
arg_v
(
"x"
,
refsensitive_opt_int
(),
"None"
));
m
.
def
(
"test_no_assign_refsensitive"
,
[](
const
refsensitive_opt_no_assign
&
x
)
{
return
x
?
x
->
value
:
42
;
},
py
::
arg_v
(
"x"
,
refsensitive_opt_no_assign
(),
"None"
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment