<h3>Contribution description</h3>
<p>This PR modifies <code>.gitignore</code> to add ignores for <code>compile_commands.json</code> and <code>compile_flags.txt</code>.</p>
<p>These files are used by <a href="https://clang.llvm.org/extra/clangd/" rel="nofollow">Clangd</a> language server. They contain the compilation flags, and Clangd uses them to provide project-aware autocompletion and linting.</p>
<p>The file can exist in any parent folder, but generally exists in the root of RIOT-OS. While it's not the best/easiest/fool-proof setup, I find it very useful (here is my <a href="https://gist.github.com/basilfx/9ea37dc119c873b33f7737f9bf79fbb3">compile-flags.txt</a>). I guess that it would even be possible to generate this file, but that would be another PR (and you still wouldn't want it in the repo).</p>
<h3>Testing procedure</h3>
<p>This shouldn't affect anything.</p>
<h3>Issues/PRs references</h3>
<p>None</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/11937'>https://github.com/RIOT-OS/RIOT/pull/11937</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>gitignore: add clangd compile flags</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11937/files#diff-0">.gitignore</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/11937.patch'>https://github.com/RIOT-OS/RIOT/pull/11937.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/11937.diff'>https://github.com/RIOT-OS/RIOT/pull/11937.diff</a></li>
</ul>

<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/RIOT-OS/RIOT/pull/11937?email_source=notifications&email_token=ABE7WYEM4AYSC2DSU3AYTGDQCCZM5A5CNFSM4IIAUOZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HCNOL7Q">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYFJ3HRVQ567AHPRCOLQCCZM5ANCNFSM4IIAUOZA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYBNSF2OSS3X6LG2RKDQCCZM5A5CNFSM4IIAUOZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HCNOL7Q.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/RIOT-OS/RIOT/pull/11937?email_source=notifications\u0026email_token=ABE7WYEM4AYSC2DSU3AYTGDQCCZM5A5CNFSM4IIAUOZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HCNOL7Q",
"url": "https://github.com/RIOT-OS/RIOT/pull/11937?email_source=notifications\u0026email_token=ABE7WYEM4AYSC2DSU3AYTGDQCCZM5A5CNFSM4IIAUOZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HCNOL7Q",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>