You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by to...@apache.org on 2016/09/23 19:10:14 UTC

[3/4] kudu git commit: Add a basic .clang-tidy configuration

Add a basic .clang-tidy configuration

This configuration enables just the most important checks for now, and
disables the more "stylistic" ones for the most part.

Change-Id: I7b22195b11265959768c07fb60e9f97feeba95c7
Reviewed-on: http://gerrit.cloudera.org:8080/4453
Tested-by: Kudu Jenkins
Reviewed-by: David Ribeiro Alves <dr...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/3cc4cdac
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/3cc4cdac
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/3cc4cdac

Branch: refs/heads/master
Commit: 3cc4cdac1ddaba8a4a5ba74dfd5d5aa86197e3dc
Parents: fd3a05c
Author: Todd Lipcon <to...@apache.org>
Authored: Mon Sep 19 16:15:19 2016 -0700
Committer: Todd Lipcon <to...@apache.org>
Committed: Fri Sep 23 19:08:57 2016 +0000

----------------------------------------------------------------------
 src/kudu/.clang-tidy | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/3cc4cdac/src/kudu/.clang-tidy
----------------------------------------------------------------------
diff --git a/src/kudu/.clang-tidy b/src/kudu/.clang-tidy
new file mode 100644
index 0000000..c00344a
--- /dev/null
+++ b/src/kudu/.clang-tidy
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+---
+Checks:          '-*,clang-diagnostic-*,-clang-diagnostic-unused-const-variable,readability-*,-readability-implicit-bool-cast,-readability-braces-around-statements,-readability-redundant-string-init,-readability-inconsistent-declaration-parameter-name,performance-*,google-*,-google-readability-todo,-google-readability-braces-around-statements,misc-*,-misc-unused-parameters'
+HeaderFilterRegex: '.*,-*.pb.h'