From patchwork Mon May 24 08:40:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 12371 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 DE38EC3200 for ; Mon, 24 May 2021 08:40:44 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A347E68919; Mon, 24 May 2021 10:40:44 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="HRgmTIMG"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8C715602B1 for ; Mon, 24 May 2021 10:40:43 +0200 (CEST) Received: from pyrite.rasen.tech (unknown [IPv6:2400:4051:61:600:2c71:1b79:d06d:5032]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C08981315; Mon, 24 May 2021 10:40:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1621845643; bh=6+VUGG4UnnfstfHXegh5SFjp7GGKtXRz6SxDB7hN3aw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HRgmTIMGKaF0QB65fZiC7LSjwTJpusxKCgzVzjEeH2N4trdMZX6yDl9xC/4U3gZfd NxK2z70VNEx1OxULpnuNvJkLxuQaglc8fxlUsX2+tSh6rqrJnaEap0KeOsKYATekQw y44teTL+uC8V6EYvyZXI31R0BOSSeFKwvd62wRSA= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Mon, 24 May 2021 17:40:25 +0900 Message-Id: <20210524084029.1179881-3-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210524084029.1179881-1-paul.elder@ideasonboard.com> References: <20210524084029.1179881-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [RFC PATCH 2/6] utils: ipc: Prevent struct constructors from being parsed by doxygen 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Currently the generated constructors for structs defined in mojom files is being parsed by mojom. As the parameters are simply the struct members, they are already documented, and the documentation of the constructor is pointless. Protect them against being parsed by doxygen. Signed-off-by: Paul Elder --- .../generators/libcamera_templates/definition_functions.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/ipc/generators/libcamera_templates/definition_functions.tmpl b/utils/ipc/generators/libcamera_templates/definition_functions.tmpl index cdd75f89..94bb4918 100644 --- a/utils/ipc/generators/libcamera_templates/definition_functions.tmpl +++ b/utils/ipc/generators/libcamera_templates/definition_functions.tmpl @@ -25,6 +25,7 @@ enum {{enum.mojom_name}} { struct {{struct.mojom_name}} { public: +#ifndef __DOXYGEN__ {{struct.mojom_name}}() {%- if struct|has_default_fields %} :{% endif %} {%- for field in struct.fields|with_default_values -%} @@ -44,6 +45,8 @@ public: {%- endfor %} { } +#endif + {% for field in struct.fields %} {{field|name}} {{field.mojom_name}}; {%- endfor %}