From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Li Subject: Re: Re: Re: Re: Getting info from used typedef Date: Thu, 28 Jan 2010 17:21:18 -0800 Message-ID: <70318cbf1001281721p1b0df85ey63e58062dd7d809@mail.gmail.com> References: <70318cbf0910011141r78e02d78qbb7ab4f183253406@mail.gmail.com> <70318cbf0911301541i478a4642k54423fd8ac5e83ec@mail.gmail.com> <70318cbf0912011049w4cab5e4qa74a15371511c8a4@mail.gmail.com> <70318cbf1001201638g4b8708e0v94160b64ed2aa854@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from qw-out-2122.google.com ([74.125.92.25]:41825 "EHLO qw-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756569Ab0A2BVT (ORCPT ); Thu, 28 Jan 2010 20:21:19 -0500 In-Reply-To: Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Thomas Schmid Cc: linux-sparse@vger.kernel.org, linux-sparse-owner@vger.kernel.org On Tue, Jan 26, 2010 at 7:28 AM, Thomas Schmid wrote: > > Yes, that seems to help, thank you very much. > I think because of the missing evaluation step, it is now a little bit > more tricky > to get out the elements of an struct or enum, but it will work. > Do I lose anything else, skipping the evaluation step? You don't have the type evaluation. I don't think your source code transform program cares. > > Is it possible to commit your change ( > 0001-hacking-preserve-typedef-name.patch) in source? > - I didn't recognize any change in behaviour when using the function > sparse(). How about make it an hidden options? It does not make sense for compiler to care about the typedef name. I will send out a review later. Chris