Bug 1158656 - Add a .clang-tify file for misc-use-override; r=jrmuizel
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 22 Nov 2016 11:15:42 +0100
changeset 323796 a180081b5cb3f7c65d9f594cc278feafd1bf84db
parent 323795 8704571a427f466c9143f46663862fb979429d7a
child 323797 4513f4dad1002547dc4b043748ddf4df8cff1cd9
push id30983
push userphilringnalda@gmail.com
push dateWed, 23 Nov 2016 04:03:17 +0000
treeherdermozilla-central@0ddfec7126ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1158656
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1158656 - Add a .clang-tify file for misc-use-override; r=jrmuizel My first attempt at using clang-tidy on the Mozilla code base. For now we just enable the misc-use-override check, and specify the KeepVirtual option that I have implemented for this check so that it doesn't complain about usage of the virtual keyword alongside override/final.
.clang-tidy
new file mode 100644
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,13 @@
+# Checks run by clang-tidy over Mozilla code.
+# NOTE: please request review from ehsan when changing this file.
+
+# The following checks are currently enabled:
+# * misc-use-override
+#   Adds missing override keywords, and removes override keywords if the final
+#   keyword is present as well.
+Checks:          '-*,misc-use-override'
+CheckOptions:
+  # Don't touch the virtual keyword!
+  - key:             misc-use-override.KeepVirtual
+    value:           '1'
+