-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathAV Rule 140.qhelp
More file actions
35 lines (24 loc) · 902 Bytes
/
AV Rule 140.qhelp
File metadata and controls
35 lines (24 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE qhelp PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<qhelp>
<overview>
<!-- Mention that this rule may not be applicable in projects that don't follow the JSF standard. -->
<include src="cpp/jsfNote.qhelp" />
<p>
This query highlights variables with the <code>register</code> storage class specifier. Modern compilers are now capable of
optimal register placement, and overriding it could lead to worse performance.
</p>
</overview>
<recommendation>
<p>
Remove the <code>register</code> storage class specifier.
</p>
</recommendation>
<example><sample src="AV Rule 140.cpp" />
</example>
<references>
<li>AV Rule 140, <em>Joint Strike Fighter Air Vehicle C++ Coding Standards</em>. Lockheed Martin Corporation, 2005.</li>
<li>M. Banahan, D. Brady, M. Doram. <em>The C Book</em>. Section 8.2.1.1. <code>http://publications.gbdirect.co.uk/c_book/</code></li>
</references>
</qhelp>