diff options
Diffstat (limited to '')
-rw-r--r-- | docs/code-quality/lint/linters/cpp-virtual-final.rst | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/code-quality/lint/linters/cpp-virtual-final.rst b/docs/code-quality/lint/linters/cpp-virtual-final.rst new file mode 100644 index 0000000000..5353b6b4fe --- /dev/null +++ b/docs/code-quality/lint/linters/cpp-virtual-final.rst @@ -0,0 +1,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>`_ + |