Commit Graph

290 Commits

Author SHA1 Message Date
christos 27de1fdbf3 build ops.h first, because trying to build dependencies and ops.h at the
same time leads to spurious failures.
2015-04-04 19:32:06 +00:00
christos 60a029958d accept typenames in param decls. 2015-04-03 21:40:04 +00:00
christos 95f20280d9 Treat complex numbers like other floating numbers. This caused a core-dump
when linting libm complex code and assumed the size of the type larger than
the array size of value bitmaps.
2015-02-09 18:17:34 +00:00
christos bf68803d37 allow c99 flexible arrays for packed structures. 2014-11-20 21:17:18 +00:00
christos caa0961bff Always set i_brace in the struct case.
Cleanup some debugging.
2014-11-20 20:49:06 +00:00
christos a6210a763e add LDEBUG 2014-11-20 20:48:33 +00:00
snj f0a7346d21 src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
2014-10-18 08:33:23 +00:00
christos 6d997ca05e oops I terminated the block too early (thanks unit tests!) 2014-09-26 15:26:01 +00:00
christos b6701ee132 make for introduce a new block level for c99 decls. 2014-09-26 01:20:00 +00:00
dholland 3363cdd991 typo in comment 2014-07-20 23:00:49 +00:00
christos e305f86ab5 add more attributes 2014-04-21 21:52:24 +00:00
christos 1be8982a73 add asm function renames 2014-04-21 18:57:20 +00:00
christos 39d78ca60c fix asm() misclassification 2014-04-21 18:57:07 +00:00
christos 9b2bca8f70 add more places where attribute is valid. 2014-04-18 21:54:52 +00:00
christos 719ac47d5d provide a poor man's fmemopen() 2014-04-18 21:53:44 +00:00
christos f1ed7fe14d remove attribute keyword 2014-04-18 02:41:32 +00:00
christos 04a020c93e handle constant attribute 2014-04-18 02:41:17 +00:00
christos 0d1cbc6a00 don't include fmemopen in tools builds. Since tools does not define
_NETBSD_SOURCE, we don't get the fmemopen prototype
2014-04-18 02:17:14 +00:00
christos c8b1f28fd2 Never return the attribute keywords if we are not in attribute. 2014-04-18 01:39:57 +00:00
christos 1f0ca5f12c builtins only for NetBSD since fmemopen is not portable. 2014-04-18 01:18:54 +00:00
christos 31ce3096fd Add some builtins 2014-04-18 01:15:07 +00:00
christos 687432e7a3 Handle the rest of gcc __attribute__ s. 2014-04-18 00:23:46 +00:00
christos 59bbfbb11d only fill memory with junk if BLKDEBUG 2014-04-18 00:21:14 +00:00
christos a46cc2f317 handle LDOUBLE 2014-04-18 00:20:37 +00:00
christos 10e73b5c30 - add a function to dump a node
- better diagnostics on abort
- allow converting a constant
- initialize right node now that we trash memory this makes a difference.
  before it was NULL.
2014-04-17 18:23:18 +00:00
christos e34b25460d typeof and extension don't need parens 2014-04-17 17:29:24 +00:00
christos f87049800a Trash freed memory so we catch bad uses. 2014-04-17 16:30:05 +00:00
christos 8a20351779 Don't free memory; it is used later. 2014-04-17 16:29:26 +00:00
dholland 1c111fd5cf typo in comment 2014-03-23 04:58:16 +00:00
christos 34fd6c876e add __extension__ and typeof 2014-02-18 22:01:36 +00:00
christos a675eb32ca __real__ and __imag__ produce lvalues 2014-02-18 20:43:36 +00:00
njoly a935b103a7 Handle another declaration after statement case for lint in c99 mode.
Add the corresponding testcase.
2014-02-04 08:08:59 +00:00
christos 3e99fec0fb empty init_decl {} is valid 2014-01-16 00:43:43 +00:00
christos a54bed1665 downgrade illegal bitfield from error to warning so we can ignore it. 2013-12-15 03:43:37 +00:00
christos 8dda6b583e fix sequence point violations 2013-10-18 20:46:09 +00:00
christos 05f0356f93 commit test 2013-05-10 15:41:44 +00:00
christos 386c53c1fd cvs test 2013-05-10 15:40:21 +00:00
christos 913c2b066a sort 2013-05-10 15:31:22 +00:00
christos ba8c9169d1 make NOSTRICT behave the same a LINTED; use the new format. 2013-04-19 18:51:14 +00:00
christos 32c6bb3802 Allow linted comments to take an argument that defines which error to suppress. 2013-04-19 17:43:05 +00:00
christos c71dc22c13 obey constcond to !constcond 2013-03-02 21:25:12 +00:00
christos 47281a37ea rename enum_t to avoid rpc/types.h lossage. 2013-02-17 01:26:19 +00:00
christos e0f6e43eb5 add __PRETTY_FUNCTION__ 2012-04-20 18:35:28 +00:00
christos 52ec92ba25 more cross lint friendlyness
XXX: needs more constants converted double/float
2012-03-27 19:24:01 +00:00
christos ca07e01a36 -0 is not unary overflow. 2012-03-21 14:17:22 +00:00
christos 7ae009b5a7 fix the grammar conflict differently. 2011-12-25 20:11:22 +00:00
christos 8af1345344 correct debugging flags. 2011-12-25 01:05:44 +00:00
christos 1e73d755b4 PR/45666: Nicolas Joly: lint(1) wrong 'syntax error' message 2011-12-25 01:05:03 +00:00
njoly def73a1f81 c99: do not warn about trailing comma in enum declaration. 2011-12-19 16:52:27 +00:00
christos c6a6b07331 Handle c99 declarations in the middle of blocks. 2011-10-04 16:19:59 +00:00