Skip to content

Commit

Permalink
Deploying to gh-pages from @ f376942 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
loic-joly-sonarsource committed Dec 19, 2024
1 parent c999d9e commit 47e45da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions rules/S7172/cfamily-description.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<div class="sect1">
<h2 id="_description">Description</h2>
<div class="sectionbody">

<div class="paragraph">
<p>This rule raises an issue when <code>std::optional</code>, <code>boost::optional</code>, or <code>std::expected</code> wrap a basic type, and a conversion from the wrapper type to <code>bool</code> is used to test the presence of a contained value.</p>
</div>
</div>
</div>
<div class="sect1">
Expand All @@ -22,7 +24,7 @@ <h2 id="_why_is_this_an_issue">Why is this an issue?</h2>
<p>When the contained type is also convertible to <code>bool</code>, using this concise syntax can be confusing. What is tested: The wrapper, or the contained value?</p>
</div>
<div class="paragraph">
<p>This rule raises an issue when <code>std::optional</code>, <code>boost::optional</code>, or <code>std::expected</code> wrap a basic type, and the conversion to <code>bool</code> is used to test presence of the value.</p>
<p>This rule raises an issue when <code>std::optional</code>, <code>boost::optional</code>, or <code>std::expected</code> wrap a basic type, and the conversion to <code>bool</code> is used to test the presence of the value.</p>
</div>
<div class="sect2">
<h3 id="_what_is_the_potential_impact">What is the potential impact?</h3>
Expand Down
6 changes: 4 additions & 2 deletions rules/S7172/default-description.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<div class="sect1">
<h2 id="_description">Description</h2>
<div class="sectionbody">

<div class="paragraph">
<p>This rule raises an issue when <code>std::optional</code>, <code>boost::optional</code>, or <code>std::expected</code> wrap a basic type, and a conversion from the wrapper type to <code>bool</code> is used to test the presence of a contained value.</p>
</div>
</div>
</div>
<div class="sect1">
Expand All @@ -22,7 +24,7 @@ <h2 id="_why_is_this_an_issue">Why is this an issue?</h2>
<p>When the contained type is also convertible to <code>bool</code>, using this concise syntax can be confusing. What is tested: The wrapper, or the contained value?</p>
</div>
<div class="paragraph">
<p>This rule raises an issue when <code>std::optional</code>, <code>boost::optional</code>, or <code>std::expected</code> wrap a basic type, and the conversion to <code>bool</code> is used to test presence of the value.</p>
<p>This rule raises an issue when <code>std::optional</code>, <code>boost::optional</code>, or <code>std::expected</code> wrap a basic type, and the conversion to <code>bool</code> is used to test the presence of the value.</p>
</div>
<div class="sect2">
<h3 id="_what_is_the_potential_impact">What is the potential impact?</h3>
Expand Down
2 changes: 1 addition & 1 deletion rules/rule-index.json

Large diffs are not rendered by default.

0 comments on commit 47e45da

Please sign in to comment.