summaryrefslogtreecommitdiffstatshomepage
path: root/validation
AgeCommit message (Expand)AuthorFilesLines
2020-10-16fix null pointer deref on return expression with invalid typeLuc Van Oostenryck1-0/+9
2020-10-16testsuite: fix location of error messagesLuc Van Oostenryck1-3/+3
2020-10-14flex-array: fix typo in warning messageLuc Van Oostenryck1-2/+2
2020-10-09flex-array: fix location for nesting of flexible membersLuc Van Oostenryck1-2/+2
2020-10-09Merge branch 'misc'Luc Van Oostenryck1-1/+1
2020-10-09Merge branch 'usual-conv'Luc Van Oostenryck2-1/+11
2020-10-09flex-array: allow arrays of unions with flexible members.Ilya Maximets3-0/+31
2020-10-08fix usual conversion of integersLuc Van Oostenryck1-0/+11
2020-10-08fix evaluation of pointer to bool conversionsLuc Van Oostenryck1-1/+0
2020-10-06flex-array: remove unneeded testLuc Van Oostenryck1-22/+0
2020-10-01testsuite: fix erroneous commentLuc Van Oostenryck1-1/+1
2020-10-01flex-array: warn on flexible array in nested aggregate typesLuc Van Oostenryck1-1/+0
2020-10-01flex-array: warn an arrays containing a flexible arrayLuc Van Oostenryck1-1/+0
2020-10-01flex-array: warn when using sizeof() on a flexible arrayLuc Van Oostenryck1-1/+0
2020-10-01flex-array: warn if flexible array is not lastLuc Van Oostenryck1-1/+0
2020-10-01flex-array: flexible array members have zero size and alignment is OKLuc Van Oostenryck1-1/+0
2020-10-01flex-array: add testcasesLuc Van Oostenryck6-0/+133
2020-09-07builtin: teach sparse to linearize __builtin_fma()Luc Van Oostenryck1-0/+19
2020-08-18Merge branch 'union-cast' into masterLuc Van Oostenryck2-0/+47
2020-08-17fix evaluate_ptr_add() when sizeof(offset) != sizeof(pointer)Luc Van Oostenryck2-0/+173
2020-08-17union-cast: teach sparse about union castsLuc Van Oostenryck2-2/+0
2020-08-15union-cast: add some testcasesLuc Van Oostenryck2-0/+49
2020-08-12Merge branch 'fix-scalar'Luc Van Oostenryck1-0/+13
2020-08-11fix is_scalar_type(): fouled types are scalars tooLuc Van Oostenryck1-0/+13
2020-08-11bug-assign-op0.c: fix test on 32-bit buildsRamsay Jones1-5/+5
2020-08-09Merge branch 'empty-char' into nextLuc Van Oostenryck2-0/+22
2020-08-08Merge branch 'wstring-init' into nextLuc Van Oostenryck2-0/+42
2020-08-08Merge branch 'sync-cas' into nextLuc Van Oostenryck1-0/+25
2020-08-08Merge branch 'bad-shift-equal' into nextLuc Van Oostenryck8-53/+403
2020-08-08Merge branch 'prev-stream' into nextLuc Van Oostenryck1-0/+11
2020-08-08wstring: extend is_string_type() to also detect wide stringsLuc Van Oostenryck1-1/+0
2020-08-08wstring: add support for checking size in string initializerLuc Van Oostenryck2-0/+43
2020-08-07add builtin support for __sync_{bool,val}_compare_and_swap()Luc Van Oostenryck1-1/+0
2020-08-07add testcases for __sync_{bool,val}_compare_and_swap()Luc Van Oostenryck1-0/+26
2020-08-06bad-shift: wait dead code elimination to warn about bad shiftsLuc Van Oostenryck5-50/+29
2020-08-06shift-assign: restrict shift count to unsigned intLuc Van Oostenryck1-1/+0
2020-08-06shift-assign: fix linearization of shift-assignLuc Van Oostenryck3-10/+8
2020-08-06shift-assign: add more testcases for bogus linearizationLuc Van Oostenryck2-0/+374
2020-07-31Merge branch 'array-decl'Luc Van Oostenryck3-0/+40
2020-07-30fix diagnostic source path from command lineLuc Van Oostenryck1-0/+11
2020-07-25generic: fix missing inlining of generic expressionLuc Van Oostenryck1-0/+10
2020-07-23allow [*] in array declaratorsLuc Van Oostenryck1-1/+0
2020-07-23simplify & fix parsing of array declaratorsLuc Van Oostenryck1-1/+0
2020-07-23add testcases for C99 array declaratorsLuc Van Oostenryck2-0/+31
2020-07-23do not accept comma expressions in array declaratorLuc Van Oostenryck1-1/+0
2020-07-23add testcase for comma in array declaratorLuc Van Oostenryck1-0/+12
2020-07-22delay 'empty character constant' warning to phase 5Luc Van Oostenryck2-0/+22
2020-07-19prepend diagnostics with source's path and include chainLuc Van Oostenryck1-0/+1
2020-07-18Merge branch 'empty-expr'Luc Van Oostenryck3-0/+23
2020-07-14Merge branch 'assert-opt-msg'Luc Van Oostenryck1-0/+5
2020-07-14Merge branch 'bad-shift-assign'Luc Van Oostenryck1-0/+115
2020-07-14warn on empty initializationsLuc Van Oostenryck1-1/+0
2020-07-14warn on empty assignmentsLuc Van Oostenryck2-1/+1
2020-07-14add testcase for incorrect empty expressionsLuc Van Oostenryck2-0/+24
2020-07-13fix evaluation error with assignment of qualified arraysLuc Van Oostenryck2-2/+0
2020-07-10add testcase for missing warning for assignment to constLuc Van Oostenryck1-0/+29
2020-07-10add another testcase with const array/pointerLuc Van Oostenryck1-0/+50
2020-07-09add a testcase for assignment to const <type> (*)[]Luc Van Oostenryck1-0/+7
2020-07-08c2x: message in _Static_assert() is now optionalLuc Van Oostenryck1-0/+5
2020-07-08Merge branches 'predef-fix', 'predef-helper' and 'simplify-add-pre-buffer'Luc Van Oostenryck1-0/+5
2020-07-06predefine: add testcase for multi-token predefinesLuc Van Oostenryck1-0/+5
2020-07-06testsuite: add testcase for bogus linearization of >>= & /=Luc Van Oostenryck1-0/+115
2020-07-04testsuite: add new flag '-p' to subcommand 'format'Luc Van Oostenryck1-0/+4
2020-07-04avoid multiple warnings when inlining undeclared callsLuc Van Oostenryck1-0/+19
2020-06-23testsuite: fix 'format help' / validate number of argumentsLuc Van Oostenryck1-1/+6
2020-06-23teach sparse about __STDC_HOSTED__Luc Van Oostenryck2-0/+22
2020-06-20Merge branch 'fix-gensel'Luc Van Oostenryck2-0/+20
2020-06-20gensel: validate the type of the associationsLuc Van Oostenryck1-0/+4
2020-06-20gensel: controlling expression must be pointer-convertedLuc Van Oostenryck1-1/+0
2020-06-19gensel: add testcases from DR481Luc Van Oostenryck1-0/+17
2020-06-18Merge branch 'genmacro'Luc Van Oostenryck1-0/+20
2020-06-18pre-process: add support for __has_feature() & __has_extension()Luc Van Oostenryck1-1/+0
2020-06-18pre-process: add testcases for __has_feature() & __has_extension()Luc Van Oostenryck1-0/+21
2020-06-16testsuite: be less paranoid with timeoutLuc Van Oostenryck1-1/+1
2020-06-12testsuite: plain chars are never compatible with [un]signed charsLuc Van Oostenryck1-0/+19
2020-06-09generic: fix crash when nothing matchLuc Van Oostenryck1-0/+23
2020-06-03univ-init: scalar initializer needs some additional checksLuc Van Oostenryck2-0/+35
2020-05-28add support for _GenericLuc Van Oostenryck3-0/+240
2020-05-27testsuite: add testcase for duplicated local definitionsLuc Van Oostenryck1-0/+28
2020-05-21Merge branch 'univ'Luc Van Oostenryck2-0/+25
2020-05-21Merge branch 'bad-goto'Luc Van Oostenryck21-16/+463
2020-05-21univ-init: conditionally accept { 0 } without warningsLuc Van Oostenryck2-0/+25
2020-05-21bad-label: respect attribute((unused))Luc Van Oostenryck1-0/+6
2020-05-21bad-label: check for unused labelsLuc Van Oostenryck1-1/+0
2020-05-21bad-goto: check declaration of label expressionsLuc Van Oostenryck2-2/+0
2020-05-21bad-goto: jumping inside a statement expression is an errorLuc Van Oostenryck6-6/+0
2020-05-21bad-goto: catch labels with reserved namesLuc Van Oostenryck1-1/+0
2020-05-21bad-goto: reorganize testcases and add some moreLuc Van Oostenryck18-13/+332
2020-05-21bad-goto: add testcases for linearization of invalid labelsLuc Van Oostenryck1-0/+19
2020-05-21bad-goto: add testcase for 'jump inside discarded expression statement'Luc Van Oostenryck2-0/+57
2020-05-21misc: fix testcase typeof-safeLuc Van Oostenryck1-7/+20
2020-05-19testsuite: add a few testcases for nested functionsLuc Van Oostenryck1-0/+43
2020-05-19attribute: 'externally_visible' is just another 'declaration' modifierLuc Van Oostenryck2-2/+0
2020-05-17attribute: sort the table of modifier namesLuc Van Oostenryck2-4/+4
2020-04-13Merge branch 'fix-atomic-type'Luc Van Oostenryck2-22/+38
2020-03-24add support for GCC's __auto_typeLuc Van Oostenryck2-0/+100
2020-03-20teach sparse to linearize __builtin_unreachable()Luc Van Oostenryck3-3/+0
2020-03-20add an implicit __builtin_unreachable() for __noreturnLuc Van Oostenryck1-1/+0
2020-03-20add testcases for OP_UNREACHLuc Van Oostenryck4-7/+74
2020-03-16cpp: fix redefinition of a macro during its own expansionLuc Van Oostenryck1-0/+20
2020-03-15cpp: remove extra newlines during macro expansionLuc Van Oostenryck3-9/+16
2020-03-15cpp: silently allow conditional directives within a macroLuc Van Oostenryck2-1/+41
2020-03-15make "directive in macro's argument list" a warningOleg Nesterov1-4/+4
2020-02-09do the tree inlining during expansion phaseLuc Van Oostenryck1-1/+0
2020-02-09inline: add some testsLuc Van Oostenryck4-0/+108
2020-02-06fix type compatibility of _AtomicLuc Van Oostenryck2-22/+38
2019-12-17Merge branch 'msg-wrong-redecl' into nextLuc Van Oostenryck4-15/+60
2019-12-17Merge branch 'expand-init' (early part) into nextLuc Van Oostenryck15-7/+256
2019-12-17Merge branch 'top-level-init' into nextLuc Van Oostenryck1-2/+8
2019-12-17fix testcase with non-constant initializerLuc Van Oostenryck1-2/+8
2019-12-15improve diagnostic message about wrong redeclarationLuc Van Oostenryck4-15/+60
2019-12-15testcase: remove trailing ';' in commandsLuc Van Oostenryck2-2/+2
2019-12-10fix cost of dereference of symbols with complex typeLuc Van Oostenryck1-1/+0
2019-12-10fix simplify_loads() when doing type punningLuc Van Oostenryck2-2/+0
2019-12-10fix expansion of initializer (default)Luc Van Oostenryck1-1/+0
2019-12-10fix expansion of initializer (mismatching type)Luc Van Oostenryck2-2/+0
2019-12-10fix expansion of initializer (mismatching size)Luc Van Oostenryck1-1/+0
2019-12-10degenerated arrays & functions are addressable tooLuc Van Oostenryck2-1/+15
2019-12-10fix addressability marking in evaluate_addressof()Luc Van Oostenryck1-1/+0
2019-12-10add test for constant expansion of complex initializerLuc Van Oostenryck3-0/+53
2019-12-10add test for dereference cost of symbol with complex typeLuc Van Oostenryck1-0/+21
2019-12-10add test for union castLuc Van Oostenryck1-0/+27
2019-12-10add testcase for addressability of 'complex' symbolsLuc Van Oostenryck1-0/+24
2019-12-10add testcase for addressability of degenerated symbolLuc Van Oostenryck1-0/+18
2019-12-10add testcase for expansion of default initializersLuc Van Oostenryck2-0/+39
2019-12-10split testcases for type punning & constant initializer expansionLuc Van Oostenryck5-5/+66
2019-12-09Merge branch 'premature-examine' into nextLuc Van Oostenryck1-0/+27
2019-12-09fix premature examination of dereferenced objectLuc Van Oostenryck1-0/+27
2019-12-09Merge branch 'bitfield-size'Luc Van Oostenryck1-0/+30
2019-11-30bitfield: display the bitfield name in error messagesLuc Van Oostenryck1-5/+5
2019-11-30bitfield: oversized bitfields are errorsLuc Van Oostenryck1-1/+0
2019-11-30bitfield: add testcases for invalid bitfield widthLuc Van Oostenryck1-0/+31
2019-11-28testsuite: avoid standard includes in the testsLuc Van Oostenryck2-3/+2
2019-11-28Merge branch 'arch-cleanup' into masterLuc Van Oostenryck1-0/+2
2019-11-28arch: add predefines for INT128 only on supported archsLuc Van Oostenryck1-0/+2
2019-11-27Merge branch 'arm-hf' into masterLuc Van Oostenryck5-0/+40
2019-11-27fp-abi: teach sparse about -m{hard,soft}-floatLuc Van Oostenryck1-1/+0
2019-11-27fp-abi: teach sparse about -mfloat-abi on ARMLuc Van Oostenryck4-4/+0
2019-11-27fp-abi: add tests for ARM's -mfloat-abi=... & -msoft-floatLuc Van Oostenryck5-0/+45
2019-11-26Merge branch 'arch-cygwin' into masterLuc Van Oostenryck4-1/+27
2019-11-26Merge branch 'static-forward' into masterLuc Van Oostenryck1-9/+10
2019-11-21allow 'static' forward declarationLuc Van Oostenryck1-9/+10
2019-11-21let function definition inherit prototype attributesLuc Van Oostenryck2-5/+1
2019-11-20propagate function modifiers only to functionsLuc Van Oostenryck2-2/+0
2019-11-19add tests for function attributesLuc Van Oostenryck9-10/+134
2019-11-15arch: teach sparse about -fshort-wcharLuc Van Oostenryck1-0/+6
2019-11-15function attributes apply to the function declarationLuc Van Oostenryck1-0/+19
2019-11-14arch: fix the signedness of plain charsLuc Van Oostenryck3-1/+21
2019-11-10Merge branch 'eval-typeof' into nextLuc Van Oostenryck1-0/+10
2019-11-10typeof: examine it at show-timeLuc Van Oostenryck1-1/+0
2019-11-10typeof: add a test for unexamined typeofLuc Van Oostenryck1-0/+11
2019-10-30arch: add an option to specify the desired arch: --arch=<arch>Luc Van Oostenryck4-0/+106
2019-10-09"graph" segfaults on top-level asmLuc Van Oostenryck1-0/+1
2019-10-01make 'directive in argument list' clearerLuc Van Oostenryck1-4/+4
2019-09-30Merge branch 'fix-expand-asm' into tipLuc Van Oostenryck14-33/+228
2019-09-30Merge branch 'relax-constexpr' into tipLuc Van Oostenryck2-4/+10
2019-09-30Merge branch 'fix-bad-linear' into tipLuc Van Oostenryck2-0/+36
2019-09-30fix sign extension in casting enumsDan Carpenter1-1/+0
2019-09-30add test for enum sign extensionLuc Van Oostenryck1-0/+13
2019-09-30do not linearize invalid expressionLuc Van Oostenryck1-1/+0
2019-09-28asm: arrays & functions in non-memory operand degenerate into pointersLuc Van Oostenryck1-1/+0
2019-09-27asm: fix missing expansion of asm statementsLuc Van Oostenryck1-1/+0
2019-09-27asm: linearization of output memory operands is differentLuc Van Oostenryck1-1/+0
2019-09-27asm: missing evaluation of asm statementsLuc Van Oostenryck1-1/+0
2019-09-27asm: check earlier that body & constraints are stringsLuc Van Oostenryck1-3/+3
2019-09-27asm: add test evaluation, expansion & linearization of ASM operandsLuc Van Oostenryck5-0/+174
2019-09-26string: use string_expression() in parse_static_assert()Luc Van Oostenryck1-3/+3
2019-09-26expand: add missing expansion of compound literalsLuc Van Oostenryck2-2/+0
2019-09-26expand: add test for expansion of compound literalsLuc Van Oostenryck1-0/+27
2019-09-26shorter message for non-scalar in conditionalsLuc Van Oostenryck2-9/+9
2019-09-26more consistent type info in error messagesLuc Van Oostenryck6-29/+29
2019-09-02constexpr: relax constexprness of constant conditionalsLuc Van Oostenryck2-4/+10
2019-04-01fix allowing casts of AS pointers to uintptr_tLuc Van Oostenryck4-15/+57
2019-03-30also accept casts of AS pointers to uintptr_tLuc Van Oostenryck1-0/+60
2019-03-05add test for evaluation of invalid assignmentsLuc Van Oostenryck2-0/+37
2019-03-03expand: 'conservative' must not bypass valid simplificationsThomas Weißschuh2-0/+76
2019-02-28display extra info for type errors in compare & conditionalLuc Van Oostenryck1-2/+6
2019-02-18testsuite: fix bad escaping of '[' & ']'Luc Van Oostenryck2-2/+2
2019-02-17Merge branch 'branch-v0.6'Luc Van Oostenryck2-9/+9
2019-02-07redecl: add test for attribute placement in function declaratorsRamsay Jones1-0/+31
2019-02-07validation: Add patterns FAIL, PASS, XPASS and XFAIL to testUwe Kleine-König1-6/+9
2019-02-04target.c: ignore -m64 on archs where int32_t is a longLuc Van Oostenryck18-0/+19
2019-02-04testsuite: remove unneeded -m64 from command-lineLuc Van Oostenryck1-1/+1
2018-12-29explain cause of 'incorrect type in conditional'Luc Van Oostenryck2-9/+9
2018-12-20Merge branch 'show-type'Luc Van Oostenryck12-61/+61
2018-12-19Merge branch 'bitwise-ptr'Luc Van Oostenryck2-0/+39
2018-12-17show-parse: do not display base type's redundant specifiersLuc Van Oostenryck5-37/+37
2018-12-17show-parse: don't display null ident in show_typename()Luc Van Oostenryck9-25/+25
2018-12-17add a flag to warn on casts to/from bitwise pointersLuc Van Oostenryck1-2/+1
2018-12-17Add testcases for bitwise cast on pointerThiebaud Weksteen2-0/+40
2018-12-17Merge branch 'predefs' into tipv0.6.0-rc1Luc Van Oostenryck8-59/+93
2018-12-17add predefined macros for [u]int32_tLuc Van Oostenryck1-0/+2
2018-12-17add predefined macros for [u]int64_tLuc Van Oostenryck1-0/+2
2018-12-17add predefined macros for [u]int{8,16}_tLuc Van Oostenryck1-0/+4
2018-12-17add predefined macros for [u]intmaxLuc Van Oostenryck1-0/+2
2018-12-17add predefined macros for [u]intptrLuc Van Oostenryck1-0/+2
2018-12-17make predefined_type_size() more genericLuc Van Oostenryck2-0/+12
2018-12-16show-parse: strip do_show_type()'s trailing spaceLuc Van Oostenryck1-2/+2
2018-12-14teach sparse about asm inlineLuc Van Oostenryck1-0/+52
2018-12-14fix '__SIZE_TYPE__' for LLP64Luc Van Oostenryck1-1/+0