aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/parse.c
AgeCommit message (Expand)AuthorFilesLines
2007-05-22Add -Wno-old-initializer to turn off warnings about non-C99 struct initializersJosh Triplett1-1/+2
2007-05-15Ignore the cdecl and stdcall attributes for now.Michael Stefaniuc1-0/+4
2007-05-02Pass a bitmask of keywords to handle_attributesChristopher Li1-7/+7
2007-05-01Parse asm after a label as a statement, not an attributeJosh Triplett1-7/+7
2007-05-01Fix most -Wshadow warnings in Sparse.0.3Josh Triplett1-1/+0
2007-04-20handle label attributesChristopher Li1-1/+2
2007-04-20Parse and ignore the __regparm__ attribute, just like regparm.Josh Triplett1-0/+1
2007-03-09Use GCC format and sentinel attributes on appropriate functionsJosh Triplett1-1/+1
2007-03-09Fix typos in commentsJosh Triplett1-2/+2
2007-03-09Introduce keyword driven attribute parsingChristopher Li1-193/+262
2007-03-07Introduce top level parsing for asm parsing.Josh Triplett1-2/+7
2007-03-07Introducing statement keywordsJosh Triplett1-38/+90
2007-03-07Free up some special bits in modifiers.Josh Triplett1-26/+115
2007-03-07Moving statement parsing into smaller functions.Josh Triplett1-93/+139
2007-02-25Fix a bug that match_idents forget to end with NULLChristopher Li1-1/+1
2007-02-22Fix double semicolon in struct declarationChristopher Li1-1/+2
2007-02-21Handle structure attributes between the structure keyword and the nameChristopher Li1-0/+2
2007-01-27Another attempt to fix the attribute parsing.Christopher Li1-29/+56
2006-10-17Recognize and ignore __alias__ and __visibility__Josh Triplett1-2/+4
2006-10-01Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-0/+1
2006-10-01Add warning message for naked do-whileLinus Torvalds1-0/+3
2006-10-01[PATCH] handle fouled-bitwiseAl Viro1-0/+1
2006-08-30[PATCH] Parse and track multiple contexts by expressionJosh Triplett1-11/+25
2006-07-05[PATCH] Ignore no_instrument_function attributesJosh Triplett1-0/+3
2006-03-28[PATCH] Attribute "sentinel"Morten Welinder1-0/+3
2005-12-31Make local declarations be statements of their ownLinus Torvalds1-6/+11
2005-12-20[PATCH] fix "wrong" NS_STRUCT symbol->posOleg Nesterov1-1/+4
2005-11-22[PATCH] new flag - Wone-bit-signed-bitfieldAl Viro1-1/+1
2005-11-16Fix up stupid thinko in K&R parameter parsing.Linus Torvalds1-22/+26
2005-11-16Re-name "error()" function to "sparse_error()"Linus Torvalds1-27/+27
2005-11-16Fix K&R argument scopingLinus Torvalds1-1/+8
2005-11-03Cast all enum values to the final typeLinus Torvalds1-0/+22
2005-11-03Make sure we keep enum values in a sufficiently large type for parsingLinus Torvalds1-2/+17
2005-09-22[PATCH] replaced warnings with errors.Mitesh Shah1-29/+29
2005-09-09[PATCH] Fix address space ordering problemviro@ZenIV.linux.org.uk1-1/+2
2005-08-17[PATCH] enum: improve error messagesOleg Nesterov1-1/+3
2005-08-17[PATCH] enum: fix sparse segfault with incomplete enumOleg Nesterov1-1/+7
2005-08-15Fix parsing of top-level asm statementsLinus Torvalds1-6/+4
2005-08-15Clean up iterator handlingLinus Torvalds1-2/+2
2005-08-14[PATCH] de-anonymize typedefsOleg Nesterov1-2/+6
2005-08-03Get closer to parsing multiple files correctly.Linus Torvalds1-14/+1
2005-06-26[PATCH] avoid segfault after parse errors in array designated initializerLuc Van Oostenryck1-0/+4
2005-06-20[PATCH] __attribute__ handling for attributes used in the userlandPeter Jones1-5/+25
2005-05-31[IDENT] Add some more attributesArnaldo Carvalho de Melo1-0/+8
2005-05-19[PATCH] Fix segfault on non-ANSI function-like declaration for realLuc Van Oostenryck1-1/+1
2005-05-17Fix SIGSEGV on non-ANSI function-line declarations without a direct name.Linus Torvalds1-1/+1
2005-04-07[PATCH] static declearChristopher Li1-7/+7
2005-04-07Give function name in non-ANSI declaration warning.Linus Torvalds1-5/+5
2005-04-07[PATCH] sparse: add function name to warningBernhard Fischer1-2/+2
2005-04-07Make enum symbols be regular symbols with constant initializers.Linus Torvalds1-6/+19
2005-04-07Handle bad enum expression types gracefully.Linus Torvalds1-1/+3
2005-04-07Make sure to re-examine a struct/union/enum type afterLinus Torvalds1-0/+3
2005-04-07Add compile-time "range-check" infrastructure to sparseLinus Torvalds1-1/+10
2005-04-07[PATCH] Diff to make sparse not complain about __format_arg__santtu.hyrkko@gmail.com1-1/+2
2005-04-07Save off the asm parameter name too.Linus Torvalds1-1/+5
2005-04-07Don't set the base type for __attribute__((__mode__(__DI__))) and friends.Linus Torvalds1-4/+0
2005-04-07Now that we actually save off asm info, that showed how we hadLinus Torvalds1-1/+1
2005-04-07Save away (most) of the asm information when parsing inline assembly.Linus Torvalds1-8/+11
2005-04-07Split out the blob allocator from lib.c into allocate.c.Linus Torvalds1-0/+1
2005-04-07Allow parsing of nested functions.Linus Torvalds1-7/+14
2005-04-07Allow the C99/C++ mixed variable declaration syntax.Linus Torvalds1-7/+10
2005-04-07Update copyright notices a bit.Linus Torvalds1-1/+1
2005-04-07Make "translation_unit()" do symbol evaluation too.Linus Torvalds1-2/+6
2005-04-07enums, bitfields and nodes pick up their signednessLinus Torvalds1-3/+0
2005-04-07Remove "fieldwidth" member of struct symbolLinus Torvalds1-11/+8
2005-04-07Use 'bad_type' instead of NULL when something bad happensLinus Torvalds1-6/+6
2005-04-07Don't generate invalid statements when encountering aLinus Torvalds1-0/+1
2005-04-07Make context attributes additive.Linus Torvalds1-4/+4
2005-04-07Replace context/contextmask (never used) with in_context/out_context.Linus Torvalds1-18/+11
2005-04-07Add an internal sparse "context" statement type.Linus Torvalds1-0/+5
2005-04-07Clean up declarator sym->ident handling.Linus Torvalds1-24/+14
2005-04-07Fix up "enum" base types.Linus Torvalds1-13/+26
2005-04-07Handle __func__, __FUNCTION__ and __PRETTY_FUNCTION__ the sameLinus Torvalds1-26/+3
2005-04-07Handle asm __volatile variant too.welinder@troll.com1-1/+1
2005-04-07[PATCH] graceful handling of old-style array initializersAlexander Viro1-31/+45
2005-04-07[PATCH] trivial sparse patch - ignore model attributeDavid Mosberger1-0/+3
2005-04-07Warn about old-style gcc named initializers, suggesting C99 usage.Linus Torvalds1-4/+12
2005-04-07Be more lenient in placement of 'asm("reg")' variable hard-registerLinus Torvalds1-13/+17
2005-04-07[PATCH] enum handlingAlexander Viro1-6/+99
2005-04-07Make enumerated constants have the type of the constantLinus Torvalds1-2/+5
2005-04-07Totally re-do how we build up the initializer tree: make theLinus Torvalds1-7/+14
2005-04-07Parse "nested" named or index initializers.Linus Torvalds1-3/+11
2005-04-07Many files:welinder@darter.rentec.com1-40/+40
2005-04-07symbol.h, symbol.c:welinder@troll.com1-11/+19
2005-04-07Reinstate non-ANSI warning for "int foo () { }".welinder@troll.com1-2/+12
2005-04-07Make END_FOR_EACH_PTR[_REVERSE] take the ptr name as an argument.Linus Torvalds1-5/+5
2005-04-07[PATCH] __attribute__((bitwise))Alexander Viro1-6/+21
2005-04-07[PATCH] parser.c cleanupAlexander Viro1-57/+64
2005-04-07[PATCH] uninlining inline functionsAlexander Viro1-3/+9
2005-04-07[PATCH] avoid matching idents with string comparesChristopher Li1-40/+40
2005-04-07__const in addition to const and __const__. Sigh.welinder@troll.com1-0/+1
2005-04-07Improve error reporting for bad K&R function parameterLinus Torvalds1-2/+9
2005-04-07Oops - when parsing a K&R function, we started at the wrong point.Linus Torvalds1-1/+1
2005-04-07Since we allow K&R declarations, allow empty ones too.Linus Torvalds1-0/+3
2005-04-07Improve K&R name matching.Linus Torvalds1-13/+11
2005-04-07Final part of K&R functions - integer promotionsLinus Torvalds1-4/+16
2005-04-07Apply the K&R parse ctypes to the argument list.Linus Torvalds1-4/+22
2005-04-07Parse K&R function declarations.Linus Torvalds1-5/+26
2005-04-07First cut at getting local structure ns handling right.welinder@troll.com1-2/+16
2005-04-07Merge troll.com:/scratch/welinder/linus-sparsewelinder@troll.com1-1/+1
2005-04-07Allow "extern" void declarations.Linus Torvalds1-1/+1
2005-04-07Put enums in the same namespace as unions and structs.welinder@troll.com1-4/+6
2005-04-07Check for illegal modifier combinations only after weLinus Torvalds1-1/+1
2005-04-07Handle __func__ correctly as a variable and not a #define.welinder@troll.com1-1/+28
2005-04-07Mondane cleanups at the level of typos.welinder@troll.com1-4/+4
2005-04-07Introduce -Wdefault-bitfield-sign and only warn when asked for.welinder@troll.com1-1/+2
2005-04-07parse.c:welinder@troll.com1-3/+4
2005-04-07Don't complain over sign problems with unnamed bitfields.welinder@troll.com1-1/+17
2005-04-07Fix nonterminated ident matching.Linus Torvalds1-2/+2
2005-04-07Fix merge issue with Al's stuff.welinder@troll.com1-5/+5
2005-04-07Mergewelinder@troll.com1-0/+5
2005-04-07[PATCH] attributes on bitfieldsAlexander Viro1-0/+5
2005-04-07parse.c:welinder@troll.com1-1/+1
2005-04-07parse.c:welinder@troll.com1-11/+27
2005-04-07parse.c:welinder@troll.com1-1/+2
2005-04-07parse.c:welinder@troll.com1-3/+8
2005-04-07parse.c:welinder@troll.com1-0/+30
2005-04-07parse.c:welinder@troll.com1-1/+7
2005-04-07Add "__word__" mode attribute and fix __QI__.Linus Torvalds1-1/+7
2005-04-07[PATCH] Silently ignore __attribute__((visibility("hidden")))terra@gnome.org1-0/+2
2005-04-07[PATCH] "signed unsigned", "short long", "double x : 4", "int y : 1 : 2"terra@gnome.org1-7/+18
2005-04-07Keep track of computed target label lists per-function.Linus Torvalds1-0/+16
2005-04-07Warn about missing ';' at end of declaration.Linus Torvalds1-1/+3
2005-04-07[PATCH] misc small updatesAlexander Viro1-0/+4
2005-04-07The base type of an enum is "int".Linus Torvalds1-0/+1
2005-04-07[PATCH] small sparse additionsChris Wedgwood1-0/+2
2005-04-07Introduce a "incomplete type" rather than leavingLinus Torvalds1-2/+12
2005-04-07[PATCH] More mode attribute recognitionDavid S. Miller1-4/+8
2005-04-07Add "force" type attribute.Linus Torvalds1-0/+4
2005-04-07User-defined types can mix with storage specifiers, so don'tLinus Torvalds1-1/+0
2005-04-07Add attribute mode "__QI__"Linus Torvalds1-1/+6
2005-04-07Make sure user-defined types don't mix with otherLinus Torvalds1-0/+7
2005-04-07[PATCH] more fun with sparseAlexander Viro1-0/+4
2005-04-07Fix type declaration parsing for multiple variables in theLinus Torvalds1-7/+5
2005-04-07Fix up modifier parsing, don't leave stale modifierLinus Torvalds1-0/+1
2005-04-07Ignore alias attributesDave Jones1-0/+2
2005-04-07Allow top-level inline asmsLinus Torvalds1-19/+57
2005-04-07Now that BITS_IN_XXXX aren't defined contstants any more,Linus Torvalds1-1/+1
2005-04-07Revert ptr-to-array type demotion. It's wrong.Linus Torvalds1-12/+0
2005-04-07Fix up pointer-to-array type declarations.Linus Torvalds1-0/+12
2005-04-07Fix up typename parsing.Linus Torvalds1-5/+3
2005-04-07Introduce "safe" pointer expressions.Linus Torvalds1-0/+4
2005-04-07[PATCH] make sparse recognise assembler naming (register and symbol names)Christopher Li1-0/+9
2005-04-07Fix up some __attribute__() parsing.Linus Torvalds1-1/+31
2005-04-07Allow variable-sized array size declarations.Linus Torvalds1-4/+1
2005-04-07Update copyright notices to reflect the fact that TransmetaLinus Torvalds1-0/+1
2005-04-07You can use a typedef as a variable name or a struct/unionLinus Torvalds1-4/+2
2005-04-07Now that inlining works, make the return handling work properly too,Linus Torvalds1-1/+4
2005-04-07This makes function inlining largely work correctly. In orderLinus Torvalds1-2/+23
2005-04-07Cleanup: factor out function body parsing into a function of its own.Linus Torvalds1-24/+34
2005-04-07Handle more attributes now that we warn about stuff we don'tLinus Torvalds1-3/+25
2005-04-07Peter Jones informs about the gcc "attribute((aligned))" behaviour:Linus Torvalds1-3/+5
2005-04-07Give better warnings for attribute mis-parses.Linus Torvalds1-12/+19
2005-04-07Make function returns a bit more realisticLinus Torvalds1-8/+42
2005-04-07Don't try to give typdefs storage bits.Linus Torvalds1-0/+7
2005-04-07Check whether a parameter declaration is a type before tryingLinus Torvalds1-0/+4
2005-04-07Fix enums. We can't turn _all_ enums into values, only the actualLinus Torvalds1-1/+1
2005-04-07Parse and evaluate gcc computed goto extensions: label addressingLinus Torvalds1-5/+8
2005-04-07Parse C99 style 'for()' statements with variable declarations.Linus Torvalds1-4/+13
2005-04-07Clean up for/while/do parsing by separating them outLinus Torvalds1-54/+71
2005-04-07Fix switch/case statement show-parse.Linus Torvalds1-0/+1
2005-04-07Add comments about special terator/switch statement symbols.Linus Torvalds1-7/+51
2005-04-07Start updating the copyright license comments to the OSL,Linus Torvalds1-1/+3
2005-04-07Evaluate array initializers (type fixing and array indexLinus Torvalds1-1/+2
2005-04-07Oops. Bad scoping for iterators and switch() statements. We didn'tLinus Torvalds1-4/+7
2005-04-07Mark all function declarations automatically extern unless theyLinus Torvalds1-1/+9
2005-04-07Show if/label/asm statements in a saner format.Linus Torvalds1-3/+24
2005-04-07Show iterators and goto's properly as pseudo-assembler.Linus Torvalds1-2/+3
2005-04-07Turn 'break'/'continue' statements into goto's withLinus Torvalds1-10/+34
2005-04-07Make sure that when we parse a pointer type, we properlyLinus Torvalds1-0/+6
2005-04-07Don't add inline functions to the top-level parse tree. They'llLinus Torvalds1-2/+3
2005-04-07Drop the MOD_ATTRIBUTE bit when parsing attributes.Linus Torvalds1-0/+1
2005-04-07Simplify typedef testing, and don't mess with MOD_EXTERNAL testingLinus Torvalds1-8/+8
2005-04-07Whee.. Arrays of arrays were type-parsed quite wrong. MaybeLinus Torvalds1-0/+1
2005-04-07Oops. Missed a place where we added pure symbol declarationsLinus Torvalds1-6/+1
2005-04-07Only add symbol definitions, not declarations, to the result listLinus Torvalds1-16/+29
2005-04-07Make "final type attributes" properly apply the attributeLinus Torvalds1-37/+46
2005-04-07Rename the symbol 'type' attribute as a 'context' attribute.Linus Torvalds1-39/+28
2005-04-07Add parsing of "noderef" attribute, and remember to save theLinus Torvalds1-0/+11
2005-04-07Add some limited attribute parsing. "packed", "aligned" and "type".Linus Torvalds1-0/+32
2005-04-07Get closer to actually looking at type attributes.Linus Torvalds1-13/+21
2005-04-07Prepare attribute parsing for future work.Linus Torvalds1-3/+5
2005-04-07Change the copyright to Transmeta Corp, that's likely to beLinus Torvalds1-1/+1
2005-04-07Save enough information at parse time to make "typeof" workLinus Torvalds1-4/+4
2005-04-07Fix modifiers for pointer types. Bug hidden by not veryLinus Torvalds1-2/+2
2005-04-07Make the parser discard the tokens after having parsedLinus Torvalds1-0/+2
2005-04-07Update comment about NS_LABEL scoping behaviour, nowLinus Torvalds1-3/+3
2005-04-07Separate scopes for blocks and functions. Function scopesLinus Torvalds1-2/+2
2005-04-07Make labels be symbols in their own namespace (NS_LABEL).Linus Torvalds1-2/+12
2005-04-07Remove last user of "struct token" from "struct expression".Linus Torvalds1-4/+5
2005-04-07Parse array initializer index specifiers:Linus Torvalds1-0/+24
2005-04-07Parse initializers properly. We parsed them before, but we didn'tLinus Torvalds1-25/+30
2005-04-07Introduce a "struct position", and have the different types referLinus Torvalds1-50/+50
2005-04-07Evaluate pointer subtractions correctly: handle the validLinus Torvalds1-9/+15
2005-04-07Fix postop and cast evaluators, that returned success when theyLinus Torvalds1-1/+4
2005-04-07Add tree evaluation to a few more statement types (iterators,Linus Torvalds1-8/+9
2005-04-07Fix indirect type parsing (functions, arrays, bitfields). UpdateLinus Torvalds1-25/+22
2005-04-07Make the 'void' type also be part of the new world orderLinus Torvalds1-2/+0
2005-04-07Fix typename parsing (incorrect ctype usage), and correctLinus Torvalds1-2/+4
2005-04-07Clean up type handling in a big way. Don't leave thoseLinus Torvalds1-7/+56