clang-tidy: Enable readability-static-accessed-through-instance check
Checks for member expressions that access static members through
instances, and replaces them with uses of the appropriate
qualified-id.
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I24de8ac8897de839594c6c71319febd0209bbc2e
diff --git a/.clang-tidy b/.clang-tidy
index 43d168b..bbd7490 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -271,6 +271,7 @@
readability-redundant-smartptr-get,
readability-redundant-string-init,
readability-simplify-subscript-expr,
+readability-static-accessed-through-instance,
readability-static-definition-in-anonymous-namespace,
readability-string-compare,
readability-suspicious-call-argument,