blob: 5353b6b4fe03fad00d2d475dbc5e115edf84bcd4 (
plain)
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
|
cpp virtual final
=================
This linter detects the virtual function declarations with multiple specifiers.
It matches our coding style:
Method declarations must use at most one of the following keywords: virtual, override, or final.
As this linter uses some simple regular expression, it can miss some declarations.
Run Locally
-----------
This linter can be run using mach:
.. parsed-literal::
$ mach lint --linter cpp-virtual-final <file paths>
Configuration
-------------
This linter is enabled on all C family files.
Sources
-------
* `Configuration (YAML) <https://searchfox.org/mozilla-central/source/tools/lint/cpp-virtual-final.yml>`_
|