From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Li Subject: Re: [PATCH v4] sparse: add support for _Static_assert Date: Wed, 3 May 2017 23:03:22 -0400 Message-ID: References: <20170503165518.7625-1-lrichard@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mail-it0-f42.google.com ([209.85.214.42]:37303 "EHLO mail-it0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932554AbdEDDDX (ORCPT ); Wed, 3 May 2017 23:03:23 -0400 Received: by mail-it0-f42.google.com with SMTP id x188so1432143itb.0 for ; Wed, 03 May 2017 20:03:23 -0700 (PDT) In-Reply-To: <20170503165518.7625-1-lrichard@redhat.com> Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Lance Richardson Cc: Linux-Sparse On Wed, May 3, 2017 at 12:55 PM, Lance Richardson wrote: > + } else if (token_type(token) == TOKEN_IDENT && > + (keyword = lookup_keyword(token->ident, NS_KEYWORD)) && > + keyword->op == &static_assert_op) { I think you should add _Static_assert into header file "ident-list.h" then you can simplify this test as: else if (token_type(token) == TOKEN_IDENT && token->ident == &_Static_assert_ident) We don't need to go through a keyword look up then test the keyword->op == &static_assert_op. Chris