<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Use pragma once instead of include guards (Episode 2: Endgame)"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=143148">143148</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Use pragma once instead of include guards (Episode 2: Endgame)
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>Inherited From OOo
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Keywords</th>
<td>difficultyBeginner, easyHack, skillCpp, topicCleanup
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ilmari.lauhakangas@libreoffice.org
</td>
</tr>
<tr>
<th>CC</th>
<td>mentoring@documentfoundation.org
</td>
</tr></table>
<p>
<div>
<pre>Background: <a href="https://en.wikipedia.org/wiki/Include_guard">https://en.wikipedia.org/wiki/Include_guard</a>
The task is to remove the include guards in the header files and replace them
with "#pragma once".
This report is a continuation of <a class="bz_bug_link
bz_status_NEW "
title="NEW - Use pragma once instead of include guards"
href="show_bug.cgi?id=124176">bug 124176</a> - please see the commits in it for
examples. The idea is to work on a few files per patch and move on to other
tasks. This is a good first task for beginners.
Keep in mind:
- leave the status as NEW and do not assign this to yourself - multi-hacker
tasks work like this
- write a brief, but informative commit message referring to the report ID
- don't leave extra blank lines in the source files
Simple command to get a list of possible candidates:
git grep "#ifndef" | grep hxx
Helper scripts are in <a class="bz_bug_link
bz_status_NEW "
title="NEW - Use pragma once instead of include guards"
href="show_bug.cgi?id=124176#c126">bug 124176 comment 126</a> and <a class="bz_bug_link
bz_status_NEW "
title="NEW - Use pragma once instead of include guards"
href="show_bug.cgi?id=124176#c213">bug 124176 comment 213</a>
NOTE:
There are some source files containing include guards that are meant to also be
processed by compilers other than LO's build baseline compilers:
* All URE include files, see the (generated via odk/CustomTarget_allheaders.mk)
workdir/CustomTarget/odk/allheaders/allheaders.hxx for a complete list.
* Anything under odk/examples/.
For those source files, it is probably better to conservatively stick with
include guards than to replace them with #pragma once.
To generate the allheaders.hxx file, run
make CustomTarget_odk/allheaders</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>