[lkml]   [2006]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: C++ pushback + sparse
On Wed, 26 Apr 2006 13:44:19 -0700 Randy.Dunlap wrote:

> > > C++ has how many additional reserved words? I believe the list is delete,
> > > friend, private, protected, public, template, throw, try, and catch.
> >
> > You forgot namespace, mutable, new, class, const_cast, dynamic_cast,
> > static_cast, reinterpret_cast, explicit, true, false, operator, typeid,
> > typename and virtual. Maybe I forgot some (interface ?). Probably some
> > new ones will appear.
> I did a sparse patch to check for all(?) of those once (with Linus's
> help). I don't know if it still applies or not...
> It's at
> (You'll also need the other patch there; they got a bit comingled:

I updated this patch so that it works with sparse (snapshot of
2006-may-01). The patch is here:

sparse additions to:
- check for C/C++ keywords: usage: -keywords
- print all global data symbols and their sizes: usage: -list-symbols
Example of -list-symbols:
make C=2 CF="-list-symbols" arch/x86_64/kernel/smpboot.o
arch/x86_64/kernel/smpboot.c:90:20: struct cpuinfo_x86 [addressable] [toplevel
] [assigned] cpu_data[8]: compound size 1344, alignment 64

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2006-05-02 22:09    [from the cache]
©2003-2011 Jasper Spaans