Age | Commit message (Collapse) | Author | |
---|---|---|---|
2005-12-11 | make this compile again | Theo de Raadt | |
2005-12-10 | Change warning/error format to match gcc's. | Chad Loder | |
2005-12-10 | how did this slip in, grr. | Martin Reindl | |
2005-12-10 | translate a bunch of comments from german to english | Martin Reindl | |
ok cloder@ | |||
2005-12-10 | Lint now warns about sizeof(term) where the operator is anything other | Chad Loder | |
than unary *, ->, a name, or a string. | |||
2005-12-10 | Fix a comment | Chad Loder | |
2005-12-10 | Add a new lint flag '-f' which, for each warning or error, prints the | Chad Loder | |
offending line from the corresponding source code file. The general idea is OK deraadt | |||
2005-12-10 | Back out all gcc attribute parsing changes until we can do this the right | Chad Loder | |
way some day. The effect of __attribute__ on a LALR C grammar is just too ugly to fix quicklly. | |||
2005-12-10 | Fix a crash when enum bitfields are encountered. Reported by marc on | Chad Loder | |
sparc but we really should see the crash on any arch. Lots of places in the code assume that if tspec == ENUM that they can touch t_enum, so when we see an ENUM bitfield, we coerce the type to INT or UINT. We also clear the t_isenum flag and the t_proto flag any time we invalidate the data in the union. We should be stricter about checking t_isenum everywhere, but that is a bigger job. | |||
2005-12-09 | Do not warn about assignment in conditional context if the assignment | Chad Loder | |
expression is itself wrapped in parentheses. We use this idiom in our tree to indicate that the programmer knows and accepts that an assignment is happening. Idea suggested by deraadt | |||
2005-12-09 | Another case theo reminded me of | Chad Loder | |
2005-12-09 | Don't ever complain when assigning a char literal to a char lvalue, | Chad Loder | |
regardless of sign/unsign differences. In other words, even though C treats char literals as ints, if the rvalue is a literal inside single quotes, and the lvalue is any kind of char, then assume the programmer knows what he is doing. | |||
2005-12-07 | Remove extra printfs | Chad Loder | |
2005-12-07 | Refactor __attribute__ parsing a bit. This takes us further to being able | Chad Loder | |
to not only consume, but also make sense of gcc __attribute__ syntax. | |||
2005-12-03 | Fix enum types, thanks lint | Chad Loder | |
2005-12-03 | Lint can now parse every variation of gcc's __attribute__ that I could find | Chad Loder | |
either in our tree or in the gcc docs. See regression test 11 for examples of this. Right now, our cdefs.h actually defines __attribute__(x) to blank when lint runs. We can change this whenever we choose. | |||
2005-12-02 | Make three of the keytab fields into a union, because they are 3 different | Chad Loder | |
enums that are mutually exclusive with each other. Makes this file so much neater. | |||
2005-12-01 | Typo | Chad Loder | |
2005-11-30 | Add support for // comments. From NetBSD | Chad Loder | |
2005-11-30 | spacing | Theo de Raadt | |
2005-11-30 | KNF | Chad Loder | |
2005-11-30 | KNF | Chad Loder | |
2005-11-30 | Fix a very old bug_t with memset | Chad Loder | |
2005-11-29 | stdlib.h has strtouq in it | Chad Loder | |
2005-11-29 | Typo | Chad Loder | |
2005-11-29 | Typo | Chad Loder | |
2005-11-29 | Replace unnecessary mmap allocator with malloc. | Chad Loder | |
2005-11-29 | Remove old gcc 2.9.5 workaround for sparc64 now that we use gcc3. | Chad Loder | |
Tested sturm@ | |||
2005-11-29 | Remove XXX_BROKEN_GCC ifdefs, which were used to work around an ancient | Chad Loder | |
(from 1995) gcc bug on i386. From NetBSD. | |||
2005-11-29 | Typos in comments: explizit and implizit | Chad Loder | |
2005-11-29 | Kill unused locals | Chad Loder | |
2005-11-29 | Make lint grok __func__, which in C99 is a predifined identifier that | Chad Loder | |
holds the name of the current function. Makes thousands of lint warnings vanish and since lint can now fully parse compound expressions involving __func__, we see some new interesting warnings instead. | |||
2005-11-28 | Simplify checks for division by zero. | Chad Loder | |
2005-11-28 | Another comment typo | Chad Loder | |
2005-11-28 | Typos in comments | Chad Loder | |
2005-11-28 | Set m_balance to 0 for the COLON operator, thus avoiding a false positive. | Chad Loder | |
In the "question mark" construct, there is no balancing or conversions between the LHS and RHS of the colon; thus, there is no need for the LHS and RHS of the colon to be of compatible types (as long as the LHS and RHS are each compatible with the lvalue of the expression having the question mark expression as the rvalue. Currently lint doesn't verify that. | |||
2005-11-28 | Do not complain about promotion of a constant (e.g. from int literal to | Chad Loder | |
a quad argument) as long as the constant is within the range of the type being promoted to. | |||
2005-11-24 | spacing | Theo de Raadt | |
2005-11-23 | Deal with empty array initializers (a gcc-ism), but warn. | Chad Loder | |
2005-11-23 | Deal somewhat with case ranges, which is a gcc extension. | Chad Loder | |
"fine" deraadt, with his suggested modifications | |||
2005-11-23 | "inline" is a c99 keyword, so support it unless tflag is selected. | Chad Loder | |
OK and input from millert, earlier version looked at by deraadt | |||
2005-11-23 | Grok __restrict__ and __restrict keywords. OK deraadt | Chad Loder | |
2005-11-23 | adjust some default options (mostly, that lint always print full paths | Theo de Raadt | |
in errors/warnings, so that compiling in dirs controlled by .PATH'd Makefiles gives useful errors | |||
2005-11-23 | add a fake C construct __lint_equal__ which will be used to generate | Theo de Raadt | |
alias entries for weak symbols and such also let ; at the top scope be legal | |||
2005-11-23 | support __attribute__ | Theo de Raadt | |
2005-11-23 | Warn on a right shift of an N-bit quantity by >= N bits. OK millert, | Chad Loder | |
deraadt | |||
2005-11-21 | Print both "from" and "to" types in type conversion warnings. Idea from | Chad Loder | |
NetBSD. OK deraadt, millert | |||
2005-11-20 | Rename basename() to lbasename() to avoid conflict with basename(3). | Chad Loder | |
2005-11-20 | Fix typos in comments | Chad Loder | |
2005-11-20 | spacing | Theo de Raadt | |