<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:01:05 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CXX-1007] Add additional directives to clang-format style file</title>
                <link>https://jira.mongodb.org/browse/CXX-1007</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;The repository&apos;s clang-format style file currently contains a minimal set of rules.  Simply copy-pasting the style file from current master of mongodb/mongo (after removing the directives specific to clang format 3.8) and applying a bulk format will increase the repository&apos;s code consistency, with minimal effort.&lt;/p&gt;</description>
                <environment></environment>
        <key id="312494">CXX-1007</key>
            <summary>Add additional directives to clang-format style file</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="david.golden@mongodb.com">David Golden</assignee>
                                    <reporter username="rassi">J Rassi</reporter>
                        <labels>
                            <label>clang-format</label>
                    </labels>
                <created>Mon, 29 Aug 2016 17:27:56 +0000</created>
                <updated>Fri, 23 Dec 2016 02:23:13 +0000</updated>
                            <resolved>Fri, 23 Dec 2016 02:23:13 +0000</resolved>
                                                    <fixVersion>3.2.0-rc0</fixVersion>
                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1464561" author="xgen-internal-githook" created="Fri, 23 Dec 2016 02:21:04 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;xdg&apos;, u&apos;name&apos;: u&apos;David Golden&apos;, u&apos;email&apos;: u&apos;xdg@xdg.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1007&quot; title=&quot;Add additional directives to clang-format style file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1007&quot;&gt;&lt;del&gt;CXX-1007&lt;/del&gt;&lt;/a&gt; Add additional directives to .clang-format&lt;/p&gt;

&lt;p&gt;This makes some additions/changes based on the MongoDB server&apos;s&lt;br/&gt;
.clang-formatting rules.&lt;/p&gt;

&lt;p&gt;To have tighter code for empty subs:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;AllowShortFunctionsOnASingleLine: Empty&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;To keep control code structure visually distinct:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;AllowShortIfStatementsOnASingleLine: false&lt;/li&gt;
	&lt;li&gt;AllowShortLoopsOnASingleLine: false&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;To make long parameter/argument list easier to read:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;BinPackArguments: false&lt;/li&gt;
	&lt;li&gt;BinPackParameters: false&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;To have pointer and reference symbols consistent everywhere:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;DerivePointerAlignment: false&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/6e4e17c803111a039a96e65f3ea68756829f3802&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/6e4e17c803111a039a96e65f3ea68756829f3802&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1464560" author="xgen-internal-githook" created="Fri, 23 Dec 2016 02:21:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;xdg&apos;, u&apos;name&apos;: u&apos;David Golden&apos;, u&apos;email&apos;: u&apos;xdg@xdg.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1007&quot; title=&quot;Add additional directives to clang-format style file&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1007&quot;&gt;&lt;del&gt;CXX-1007&lt;/del&gt;&lt;/a&gt; Sort .clang-format directives&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/10c9f4f1bc66b5b1a50e42de284722122a57966b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/10c9f4f1bc66b5b1a50e42de284722122a57966b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1373551" author="rassi@10gen.com" created="Wed, 31 Aug 2016 16:33:21 +0000"  >&lt;p&gt;I filed this ticket when I realized that no value of PointerAlignment is being set in the current style file.  Lines in the repo vary in how they align &lt;tt&gt;&amp;#42;&lt;/tt&gt; and &lt;tt&gt;&amp;amp;&lt;/tt&gt; (e.g. &quot;&lt;tt&gt;char &amp;#42;target&lt;/tt&gt;&quot; from b64_ntop.h, versus &quot;&lt;tt&gt;char* str&lt;/tt&gt;&quot; from itoa.hpp), including lines in recent patches that I&apos;ve been reviewing.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="312499">CXX-1008</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrdssf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1421">Perl/CXX 2016-12-23</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>