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.
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'
+