Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2AA6CC433E0 for ; Fri, 29 May 2020 12:08:25 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EF18D206F0 for ; Fri, 29 May 2020 12:08:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hhV+Ib2B" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EF18D206F0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-kernel-mentees-bounces@lists.linuxfoundation.org Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D56F088478; Fri, 29 May 2020 12:08:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T2TlTX51fZlD; Fri, 29 May 2020 12:08:24 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id 7825388473; Fri, 29 May 2020 12:08:24 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 74C1CC07FF; Fri, 29 May 2020 12:08:24 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 93CD8C016F for ; Fri, 29 May 2020 12:08:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9091B88478 for ; Fri, 29 May 2020 12:08:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vIughZFxRjom for ; Fri, 29 May 2020 12:08:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8830988473 for ; Fri, 29 May 2020 12:08:22 +0000 (UTC) Received: by mail-pl1-f195.google.com with SMTP id bg4so1099941plb.3 for ; Fri, 29 May 2020 05:08:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eLHrCJ/+0FX6GR0kpojTmokHFS8AKJVOQ4LSrhOD+EE=; b=hhV+Ib2B45PjQVvYrsCZbPNuuvMQICKdjWpOhb3Lp+VxyQNerQF48qhA/y78XU0ILC KOWIccOK7TEFv9REp8zCwPILfe8STXmUOtDvZfix5dwiR1cr6i3Pp+BJfPZCrQb+fm7S L9yFcyGUbxCTF5utgX6/J1uFjvP6fVTuXtECbAotq6/0zGCl0LjvMpSyKhY/QR1Uw43M 3oypGtLm+V3EvlKtp73Vk99KEF9tfBfT9rT3Z5lg6zdif0hQTBv05uVVIRY3fidxrY7H 58xn5L3r5dbGqEe7Y1r6YBqCL5TrqP1Npic5ukRKUI4TsgXODfbMoi6WKuZpBYe3qWhD TeKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eLHrCJ/+0FX6GR0kpojTmokHFS8AKJVOQ4LSrhOD+EE=; b=AbyAf62MQk3T01T+fxnSAhnmb3eOG5ofJpEAxys1/KOlpPt83cbkyl3gDidx2JVjC7 zDXdwhG19bg2ef/Ik0SCRDN0Vbwr5pEUv44sa+OKqfN3RVxL/ODD7BJbUeOh6kCO5NCl I+/e1EWPG4RBOnvL89axJ5xecof0Kbyd2lcZfcmguBikM563vQWR0vQePysXarmgmpdr 6le+5VBlnUXfIVBwtg0dkcIhDMt2QJ3lvjGCG3EF2vzvA1Sxk7DYElbNeS20ebdX/1n8 8sBevJQLZYCq343MAUB1/rKfzSRoOcDTFBP89JNI+7RK7+luyj+l4Aw5GxEsraGibSRT 708w== X-Gm-Message-State: AOAM530kDoLKir2gh+iFZENLrENmzJAbxjIRywl1el23T3ygxiuZbS5Y S7O/mq1bk5H75nLyd6xEhSs= X-Google-Smtp-Source: ABdhPJxVDwLOFqZH9XI1zHTnDk1ZRgeG/LlwW2vQLWapJMCO1cbea1JI6OvIyN8wau1xXJL2INWOcw== X-Received: by 2002:a17:90b:d8a:: with SMTP id bg10mr9121093pjb.103.1590754102061; Fri, 29 May 2020 05:08:22 -0700 (PDT) Received: from localhost.localdomain ([2402:3a80:694:e576:19d1:a79b:707d:59f2]) by smtp.gmail.com with ESMTPSA id dw13sm7975161pjb.40.2020.05.29.05.08.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2020 05:08:21 -0700 (PDT) From: Jaskaran Singh To: cocci@systeme.lip6.fr Date: Fri, 29 May 2020 17:36:32 +0530 Message-Id: <20200529120703.31145-3-jaskaransingh7654321@gmail.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200529120703.31145-1-jaskaransingh7654321@gmail.com> References: <20200529120703.31145-1-jaskaransingh7654321@gmail.com> MIME-Version: 1.0 Cc: julia.lawall@inria.fr, jaskaransingh7654321@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org Subject: [Linux-kernel-mentees] [PATCH v3 02/32] parsing_cocci: ast0_cocci: Add cast attributes X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" Add cast attributes to AST0 of SmPL. This is a list of attributes in the Cast type of AST0. Signed-off-by: Jaskaran Singh --- parsing_cocci/ast0_cocci.ml | 4 ++-- parsing_cocci/ast0_cocci.mli | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/parsing_cocci/ast0_cocci.ml b/parsing_cocci/ast0_cocci.ml index 8d30daea..27a7ba38 100644 --- a/parsing_cocci/ast0_cocci.ml +++ b/parsing_cocci/ast0_cocci.ml @@ -123,8 +123,8 @@ and base_expression = string mcode (* ] *) | RecordAccess of expression * string mcode (* . *) * ident | RecordPtAccess of expression * string mcode (* -> *) * ident - | Cast of string mcode (* ( *) * typeC * string mcode (* ) *) * - expression + | Cast of string mcode (* ( *) * typeC * attr list * + string mcode (* ) *) * expression | SizeOfExpr of string mcode (* sizeof *) * expression | SizeOfType of string mcode (* sizeof *) * string mcode (* ( *) * typeC * string mcode (* ) *) diff --git a/parsing_cocci/ast0_cocci.mli b/parsing_cocci/ast0_cocci.mli index f66a1fac..461d327b 100644 --- a/parsing_cocci/ast0_cocci.mli +++ b/parsing_cocci/ast0_cocci.mli @@ -114,8 +114,8 @@ and base_expression = string mcode (* ] *) | RecordAccess of expression * string mcode (* . *) * ident | RecordPtAccess of expression * string mcode (* -> *) * ident - | Cast of string mcode (* ( *) * typeC * string mcode (* ) *) * - expression + | Cast of string mcode (* ( *) * typeC * attr list * + string mcode (* ) *) * expression | SizeOfExpr of string mcode (* sizeof *) * expression | SizeOfType of string mcode (* sizeof *) * string mcode (* ( *) * typeC * string mcode (* ) *) -- 2.21.1 _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees