From patchwork Thu Oct 22 08:17:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 10194 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id D9786C3D3C for ; Thu, 22 Oct 2020 08:17:51 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 596546113E; Thu, 22 Oct 2020 10:17:51 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ozTGpoZ0"; dkim-atps=neutral Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id CF6D960351 for ; Thu, 22 Oct 2020 10:17:49 +0200 (CEST) Received: by mail-lj1-x242.google.com with SMTP id p15so972252ljj.8 for ; Thu, 22 Oct 2020 01:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WjvKOLmQorb3MNvkiZVJZv9BXLmYWqgQG8yB7vySHuY=; b=ozTGpoZ0nYGMMSVElGiXpBVW+9IG5+S5ciPhY5kaopN+dzT49wFPkQ2rNi7FWtUiPq yZoCLzjkMrrs5K7zVqhjNMvs3hT/ou5NHyDkB+yJogADaG5GBjQ4dr9LGcYoke9bhGDR LaN42kR2TpgjoNMEu98iC59dRq1nUY23dJTme5WQvNQXD4oxtyL/2dV9jDMT7kGIiJms LTwoCsRNDx5uY7zBWYO0YeA5tW1mQBVp46vJXyDlkcbDx72foNBXH3BlhWd5+z0tho+c BHXSWocmece03IqNfsV/mI95WRw13ibHTO8sTktuh67k4VSXGioIE7wVLXKrqd3/SlVf 6SuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=WjvKOLmQorb3MNvkiZVJZv9BXLmYWqgQG8yB7vySHuY=; b=k+lP0rIY4WUgN+FP+72otUowrq0fSi1TQjHUbzTxLb41DzaF36BRXGxXUurMJ0M1pG pzs5RNXqhg9imk8ei7meiHP/5nk/eVKEklCw+TYrnXXjiVZJGJuJLdw10KqLXtxqPJXq bb/4+n9Lz7njIQDChhKVnTzsNSUozwxGUHKBycZLW9iLZ74s0zNaXk803ENRtpvVUVbO q+Tc5uAI8FWuhygtuzXMuNgAasJuJg552WR+D2nIrr4a2B8qQhTihYqIiTX3dLzxrPg+ p13jI4pvIeYFJU+D+vEXTP4E+Xf3shIAD4HMU8KHsKKBNewrNW9FTCJEGETQsHmeQQxN IcGQ== X-Gm-Message-State: AOAM530SxpHWM3hfombV/AImdHw9r08QaCZyBYBxft46ykJCBIp1wuco RyDPaDqEQb5cz57ok4UBYoK9FI624swMTw== X-Google-Smtp-Source: ABdhPJzXnXLz3fJLORN9dNIEJ87mr1YMWoUNLPG+Dti01erZv5kBNbi8i0akkRjeSl9lXBO0RGXXKg== X-Received: by 2002:a05:651c:97:: with SMTP id 23mr516177ljq.376.1603354669059; Thu, 22 Oct 2020 01:17:49 -0700 (PDT) Received: from deskari.lan (91-152-83-50.elisa-laajakaista.fi. [91.152.83.50]) by smtp.gmail.com with ESMTPSA id l3sm187007lji.36.2020.10.22.01.17.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2020 01:17:48 -0700 (PDT) From: Tomi Valkeinen To: libcamera-devel@lists.libcamera.org Date: Thu, 22 Oct 2020 11:17:28 +0300 Message-Id: <20201022081731.36217-1-tomi.valkeinen@iki.fi> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/4] Add .clang-tidy X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tomi Valkeinen Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Having .clang-tidy file will give us a 'clang-tidy' meson build target, so doing a full clang-tidy run can be done just by: ninja -C build clang-tidy I did not look at if more checks should be enabled or not. I disabled clang-diagnostic-c99-designator as that feature was used in the code, and I see no harm with the feature. Signed-off-by: Tomi Valkeinen Reviewed-by: Kieran Bingham --- .clang-tidy | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 00000000..4c47fa8c --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,3 @@ +Checks: -clang-diagnostic-c99-designator +FormatStyle: file +