aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/parse.c
AgeCommit message (Expand)AuthorFilesLines
2018-12-14teach sparse about asm inlineLuc Van Oostenryck1-7/+27
2018-12-12as-name: check for multiple address spaces at parsing timeLuc Van Oostenryck1-1/+6
2018-12-12as-name: allow ident as address_spaceLuc Van Oostenryck1-8/+26
2018-12-12as-name: use idents for address spacesLuc Van Oostenryck1-2/+10
2018-12-01Conditionalize 'warning: non-ANSI function ...'John Levon1-4/+7
2018-12-01Accept comma-separated list for function declarations.Luc Van Oostenryck1-1/+1
2018-12-01Use -Wimplicit-int when warning about missing K&R argument typesLuc Van Oostenryck1-1/+4
2018-12-01fix implicit K&R argument typesLuc Van Oostenryck1-1/+3
2018-10-05enum: more specific error message for empty enumLuc Van Oostenryck1-1/+1
2018-10-05enum: default to unsignedLuc Van Oostenryck1-6/+6
2018-10-05enum: keep enumerators as int if they fitLuc Van Oostenryck1-0/+37
2018-10-05enum: rewrite bound checkingLuc Van Oostenryck1-50/+34
2018-10-05enum: warn on bad enumsLuc Van Oostenryck1-2/+4
2018-10-05enum: warn when mixing different restricted typesLuc Van Oostenryck1-0/+5
2018-10-05enum: only warn (once) when mixing bitwisenessLuc Van Oostenryck1-0/+7
2018-10-05enum: use the values to determine the base typeLuc Van Oostenryck1-14/+1
2018-10-05enum: use the smallest type that fitLuc Van Oostenryck1-2/+0
2018-10-05enum: fix cast_enum_list()Luc Van Oostenryck1-0/+1
2018-10-05enum: fix UB when rshifting by full widthLuc Van Oostenryck1-2/+15
2018-09-01Merge branch 'has-attribute' into tipLuc Van Oostenryck1-1/+3
2018-09-01has-attr: add __designated_init__ & transparent_unionLuc Van Oostenryck1-0/+2
2018-09-01has-attr: move 'mode' next to '__mode__'Luc Van Oostenryck1-1/+1
2018-08-24remove superfluous newline in 'unknown mode attribute' error messageLuc Van Oostenryck1-1/+1
2018-08-25add support for mode __byte__Luc Van Oostenryck1-0/+2
2018-08-25add support for mode __pointer__Luc Van Oostenryck1-1/+17
2018-08-25mode keywords don't need MOD_{CHAR,LONG,...}Luc Van Oostenryck1-12/+12
2018-06-04Merge branches 'label-redef', 'goto-reserved', 'errmsg-builtin-pos', 'fix-bui...Luc Van Oostenryck1-40/+25
2018-05-26label: avoid multiple definitionsLuc Van Oostenryck1-3/+6
2018-05-26context: extra warning for __context__() & friendsLuc Van Oostenryck1-0/+4
2018-05-26context: stricter syntax for __context__ statementLuc Van Oostenryck1-10/+8
2018-05-26context: fix crashes while parsing '__context__;' or '__context__(;'Luc Van Oostenryck1-1/+3
2018-05-26context: fix parsing of attribute 'context'Luc Van Oostenryck1-32/+13
2018-05-06Merge branches 'unop', 'describe-dirty', 'range-syntax', 'old-testcases', 'fi...Luc Van Oostenryck1-1/+8
2018-05-06use function-like syntax for __range__Luc Van Oostenryck1-1/+4
2018-05-04teach sparse about _Floatn and _FloatnxLuc Van Oostenryck1-0/+5
2018-05-01fix: warn on typedef redefinitionLuc Van Oostenryck1-0/+4
2018-02-16no repetition in unknown attribute warning messageLuc Van Oostenryck1-1/+1
2017-11-11Merge branches 'volatile-loads-are-side-effects', 'fix-volatile-simplificatio...Luc Van Oostenryck1-15/+30
2017-11-11define MOD_ACCESS for (MOD_ASSIGNED | MOD_ADDRESSABLE)Luc Van Oostenryck1-1/+1
2017-11-08add support for C11's _Atomic as type qualifierLuc Van Oostenryck1-0/+13
2017-11-08associate MOD_RESTRICT with restrict-qualified variablesLuc Van Oostenryck1-5/+11
2017-11-08define MOD_QUALIFIER for (MOD_CONST | MOD_VOLATILE)Luc Van Oostenryck1-1/+1
2017-11-08remove redundancy in MOD_STORAGELuc Van Oostenryck1-1/+1
2017-11-08MOD_ACCESSED is not a type modifier ...Luc Van Oostenryck1-1/+1
2017-09-17use a specific struct for asm operandsLuc Van Oostenryck1-9/+5
2017-07-04Add full list of gcc attributeChristopher Li1-104/+10
2017-07-04Let create_symbol check for previous same symbolChristopher Li1-2/+4
2017-06-23Adding ignored attribute optimizev0.5.1-rc3Christopher Li1-2/+4
2017-06-08ret-void: warn for implicit typeLuc Van Oostenryck1-0/+9
2017-05-12keyword: add a comment about NS_TYPEDEF & reserved keywordsLuc Van Oostenryck1-0/+1
2017-05-12sparse: add support for _Static_assertLance Richardson1-1/+44
2017-03-06move 'extern with initializer' validation after the validate methodLuc Van Oostenryck1-4/+5
2017-03-06check the storage of C99 for-loop initializersLuc Van Oostenryck1-1/+12
2017-03-06add an optional validation method to external_declaration()Luc Van Oostenryck1-3/+7
2017-03-04make -Wbitwise operational againLuc Van Oostenryck1-2/+14
2017-02-13let identical symbols share their evaluate/expand methodsLuc Van Oostenryck1-1/+3
2017-02-13C11: teach sparse about '_Alignas()'Luc Van Oostenryck1-0/+43
2017-02-13C11: teach sparse about '_Noreturn'Luc Van Oostenryck1-0/+14
2017-02-13C11: teach sparse about '_Thread_local'Luc Van Oostenryck1-0/+1
2017-02-13add support for __int128Luc Van Oostenryck1-0/+10
2017-02-13fix missing element in types declarationLuc Van Oostenryck1-1/+1
2017-02-13Warn on unknown attributes instead of throwing errorsLuc Van Oostenryck1-1/+2
2017-01-27make 'ignored_attributes[]' staticLuc Van Oostenryck1-1/+1
2017-01-27fix mixup in "Handle SForced in storage_modifiers"Luc Van Oostenryck1-3/+3
2016-11-17Handle SForced in storage_modifiersJeff Layton1-2/+2
2016-10-26sparse: add no_sanitize_address as an ignored attributeRui Teng1-0/+2
2016-10-13sparse: ignore __assume_aligned__ attributeLance Richardson1-0/+2
2016-10-13sparse: add 'alloc_align' to the ignored attributesRamsay Jones1-0/+2
2015-08-15Add default case to switches on enum variablesTony Camuso1-0/+3
2015-06-11sparse/parse.c: ignore hotpatch attributeHeiko Carstens1-0/+2
2014-11-10parse.c: remove duplicate 'may_alias' ignored_attributesRamsay Jones1-2/+0
2014-10-10sparse: add 'gnu_inline' to the ignored attributesRamsay Jones1-0/+2
2014-10-10Add the __restrict__ keywordRamsay Jones1-1/+2
2014-08-02Make same_symbol list share the same scopeChristopher Li1-0/+1
2014-04-17parse: support c99 [static ...] in abstract array declaratorsCody P Schafer1-1/+17
2014-04-01Support GCC's transparent unionsJohn Keeping1-1/+6
2013-11-29sparse: Relicense under the MIT licenseFranz Schrober1-1/+17
2013-04-26Allow forced attribute in function argumentv0.4.5-rc1Christopher Li1-0/+1
2013-02-21sparse patch v2: add noclone as an ignored attributeRandy Dunlap1-0/+3
2012-06-25sparse: Add 'error' to ignored attributesKOSAKI Motohiro1-0/+2
2012-06-25sparse: Add '__vector_size__' to ignored attributesKOSAKI Motohiro1-0/+1
2012-06-04check missing or duplicate goto labelsXi Wang1-1/+5
2012-01-18sparse: Add 'leaf' to ignored attributes.Ethan Jackson1-0/+2
2011-08-25sparse: Fix __builtin_safe_p for pure and const functionsPekka Enberg1-5/+5
2011-08-23Fix parsing empty asm clobberChristopher Li1-1/+2
2011-08-23Ignore the ms_hook_prologue attribute.Michael Stefaniuc1-0/+2
2011-06-28sparse: Add 'artifical' to ignore attributesPekka Enberg1-0/+2
2011-05-31Ignore attribute vector_sizeChristopher Li1-0/+1
2011-04-26parse.c: "if(" -> "if (" adjustmentJan Pokorný1-3/+3
2010-10-08parser: add Blackfin gcc infoMike Frysinger1-0/+6
2010-07-19skip may_alias and declare builtin_fabsMorten Welinder1-0/+2
2010-07-13parser: fix and simplify support of asm gotoJiri Slaby1-1/+2
2010-06-17parser: add support for asm gotoJiri Slaby1-0/+23
2010-06-17Ignore the may_alias GCC attributeDamien Lespiau1-0/+2
2010-03-28Pointer don't inherent the alignment from base typeChristopher Li1-0/+1
2010-03-28Ignore "naked" attributeMichael Buesch1-0/+2
2010-03-28ignore attributes "externally_visible" and "signal"Michael Buesch1-0/+4
2010-03-28New attribute designated_init: mark a struct as requiring designated initJosh Triplett1-0/+15
2010-03-28Handle __builtin_ms_va_list.Michael Stefaniuc1-0/+1
2010-03-28Ignore the alloc_size attribute.Michael Stefaniuc1-0/+2
2010-03-28Ignore the ms_abi/sysv_abi attributes.Michael Stefaniuc1-0/+4
2010-03-28Declare ignored attributres into a list of string.Christopher Li1-71/+82
2010-03-28Move noreturn attribute out of ignore attr areaChristopher Li1-2/+2
2009-10-16do not ignore attribute 'noreturn'...Kamil Dudka1-2/+2
2009-08-01Add support for TImode type (__int128_t)Blue Swirl1-3/+22
2009-08-03Ignore attribute __bounded__, used by OpenBSD headers.Blue Swirl1-0/+2
2009-07-18Avoid "attribute 'warning': unknown attribute" warningLinus Torvalds1-0/+2
2009-07-18Allow array declarators to have 'restrict' in themLinus Torvalds1-0/+2
2009-07-18Support the __thread storage classAlberto Bertogli1-3/+31
2009-07-18Print an error if typeof() lacks an argumentMartin Nagy1-1/+5
2009-07-18Add missing checks for Waddress-spaceMartin Nagy1-1/+1
2009-07-18Segfault at evaluate.c:341Al Viro1-0/+1
2009-07-18Sanitize pointer()Al Viro1-15/+5
2009-07-18Don't mix storage class bits with ctype->modifiers while parsing typeAl Viro1-29/+78
2009-07-18Simplify get_number_value() and ctype_integer()Al Viro1-11/+2
2009-07-18Fix __label__ handlingAl Viro1-28/+27
2009-07-18Fix declaration_specifiers() handling of typedef name shadowed by NS_SYMBOLAl Viro1-2/+3
2009-07-18Fix enumeration constants' scope beginningAl Viro1-4/+3
2009-07-18Restore __attribute__((mode)) handlingAl Viro1-21/+97
2009-07-18Pass decl_state down to ->attribute()Al Viro1-18/+19
2009-07-17Pass decl_state down to ->declarator() and handle_attributes()Al Viro1-48/+48
2009-07-17Clean up and split declaration_specifiers()Al Viro1-30/+29
2009-07-17Have ->declarator() act directly on ctype being affectedAl Viro1-73/+161
2009-07-17Rewrite and fix specifiers handlingAl Viro1-160/+207
2009-07-17Saner type for __builtin_va_listAl Viro1-1/+1
2009-07-17Take the rest of specifiers to parse.cAl Viro1-2/+26
2009-07-17preparations to ->declarator() cleanup - separate typedef handlingAl Viro1-9/+11
2009-07-17Fix handling of typedefs with several declaratorsAl Viro1-0/+3
2009-07-17Take the rest of storage class keywords to parse.cAl Viro1-0/+6
2009-07-17Fix regression created by commit af30c6df74f01db10fa78ac0cbdb5c3c40b5c73fAl Viro1-0/+2
2009-07-17Propagate decl_state to declaration_specifiers()Al Viro1-37/+37
2009-07-17Separating ctype and parser state, part 1Al Viro1-44/+54
2009-07-17Sanitize direct_declarator logicsAl Viro1-75/+65
2009-07-17Fix braino in which_kind()Al Viro1-1/+1
2009-07-17Don't mess with passing symbol to declarator/direct_declaratorAl Viro1-16/+14
2009-07-17Leave applying attributes until we know whether it's a nested declaratorAl Viro1-23/+63
2009-07-17Apply attributes after ( to the right placeAl Viro1-8/+15
2009-07-17Warn about non-empty identifier list outside of definitionAl Viro1-2/+10
2009-07-17more direct_declarator() sanitizingAl Viro1-51/+87
2009-07-17Fix attribute/asm handlingAl Viro1-7/+10
2009-07-17More nested declarator fixesAl Viro1-0/+2
2009-07-17Separate parsing of identifier-list (in K&R-style declarations)Al Viro1-2/+26
2009-07-17Fix handling of ident-less declarationsAl Viro1-1/+9
2009-07-17fun with declarations and definitionsAl Viro1-11/+15
2009-07-17fun with declarations and definitionsAl Viro1-0/+15
2008-12-24Revert the context tracking codeJohannes Berg1-124/+10
2008-12-18Add enum member list to the parentChristopher Li1-4/+2
2008-12-18Warning should be enough for an unhandled transparent unionAlexey Zaytsev1-1/+1
2008-06-27Ignore "cold" and "hot" attributes, which appeared in gcc 4.3Pavel Roskin1-0/+4
2008-04-21Add -Wno-declaration-after-statementGeoff Johnstone1-3/+1
2008-04-21sparse: simple conditional context trackingJohannes Berg1-0/+52
2008-04-21make sparse keep its promise about context trackingJohannes Berg1-10/+72
2008-04-03saner warnings for restricted typesAl Viro1-2/+9
2007-11-13Handle ignored attribute mallocEmil Medve1-0/+1
2007-10-20Perform local label lookupChristopher Li1-0/+13
2007-07-29[PATCH] file and global scopes are the same for purposes of struct redefiningAl Viro1-1/+1
2007-07-27parse.c: Adding va_end().ricknu-0@student.ltu.se1-7/+7
2007-07-13add end position to symbolsRob Taylor1-1/+20
2007-07-10fix handling of address_space in casts and assignmentsAl Viro1-2/+5
2007-06-27Bitfield without explicit sign should be a warning, not an errorPavel Roskin1-1/+1
2007-06-26[PATCH] fix handling of integer constant expressionsAl Viro1-5/+5
2007-06-25[PATCH] deal with enum members without excessive PITAAl Viro1-0/+1
2007-06-18[PATCH] tie the fields of struct in simple listAl Viro1-1/+19
2007-05-22Add no-double-underscore variant format_arg.Josh Triplett1-0/+1
2007-05-22Add double-underscore variant __syscall_linkage__.Josh Triplett1-0/+1
2007-05-22Add no-double-underscore variant "used", ignored like "__used__".Josh Triplett1-0/+1
2007-05-22Add double-underscore variant __noinline__.Josh Triplett1-0/+1
2007-05-22Add double-underscore variant __always_inline__.Josh Triplett1-0/+1
2007-05-22Ignore the GCC constructor and destructor attributesJosh Triplett1-0/+4
2007-05-22Add (more) support for WIN32 attribute namesRamsay Jones1-0/+6
2007-05-22Fix an __attribute__() parsing errorJosh Triplett1-1/+4
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