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 899509 a180081b5cb3f7c65d9f594cc278feafd1bf84db
parent 899447 8704571a427f466c9143f46663862fb979429d7a
child 899510 4513f4dad1002547dc4b043748ddf4df8cff1cd9
push id156179
push userjmaher@mozilla.com
push dateTue, 22 Nov 2016 14:09:02 +0000
treeherdertry@89c998b31114 [default view] [failures only]
reviewersjrmuizel
bugs1158656
milestone53.0a1
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'
+