<p>osm2pgsql could do with a cleanup:</p>
<ul>
<li>Move source code into <code>src</code> subdirectory</li>
<li>Format everything with <code>clang-format</code></li>
</ul>
<p>Doing this in one go would minimize impact for later <code>git blame</code> etc. but give us a source code that is much easier to handle. With the source code bundled in <code>src</code> scripts for clang-tidy, coverage, etc. become simpler, or just a manual <code>grep</code> over the source code.</p>
<p>I'd be willing to do these steps and fix CMake config etc. to work with the new directory.</p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=1447941" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lonvia">@lonvia</a> <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=1190866" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pnorman">@pnorman</a> What do you think?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/986?email_source=notifications&email_token=AA6353X6RNXGWWUNGPS2L7DQUTXKHA5CNFSM4JPO7M72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2UW6MA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353XF6YYFBBVP4OU3423QUTXKHANCNFSM4JPO7M7Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353RWQT53JIEOZNBHXCTQUTXKHA5CNFSM4JPO7M72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2UW6MA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/986?email_source=notifications\u0026email_token=AA6353X6RNXGWWUNGPS2L7DQUTXKHA5CNFSM4JPO7M72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2UW6MA",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/986?email_source=notifications\u0026email_token=AA6353X6RNXGWWUNGPS2L7DQUTXKHA5CNFSM4JPO7M72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2UW6MA",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>