From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754082AbcICUTM (ORCPT ); Sat, 3 Sep 2016 16:19:12 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:48871 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753239AbcICUTI (ORCPT ); Sat, 3 Sep 2016 16:19:08 -0400 Date: Sat, 3 Sep 2016 23:18:47 +0300 From: Dan Carpenter To: Joe Perches Cc: Julia Lawall , Dan Carpenter , LKML Subject: Re: Possible code defects: macros and precedence Message-ID: <20160903201847.GA4218@mwanda> References: <1472927739.5018.13.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1472927739.5018.13.camel@perches.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No. I can't think of a way to write a script for that in smatch. It works on the pre-processed code. There is a hack around to tell if code is inside a macro or not, but you can't tell if code is a macro parameter. regards, dan carpenter