Commit Graph

32 Commits

Author SHA1 Message Date
Eliseo Martínez
94db26edbd Enable -Wconversion: indent.c.
Note: Clint was failing because of recommending not to use long. But
converting to long is the proper refactoring here, in as far as other
longs exist. We could, then, disable clint rule, or remove this file
from checking. We choose the former, as it's being discussed what to do
with longs, but a decision has not been taken. So, it seems most
reasonable to allow longs for now, to enable proper refactorings, and
then, when a decision is taken, refactor all longs to some other thing.
2015-02-18 20:54:13 -05:00
Eliseo Martínez
df3b509c98 Make clint.py pep8-compliant. 2015-02-08 19:47:06 +01:00
Florian Walch
470b87e377 Linting: Recommend os_* instead of POSIX functions. 2015-01-11 17:29:17 +01:00
Will Stamper
5b3b3fd3ed spelling fixes #827 2014-06-12 20:26:35 -04:00
Nicolas Hillegeer
b591447f77 clint: disregard compound literal return
This allows lines like:

return (my_struct_type) {
  .my_int = 5,
  .my_str = ""
};

Thanks to @watk for finding and fixing it!
2014-05-18 06:45:39 -03:00
Eliseo Martínez
5f795225dc Introduce nvim namespace: Fix define guards.
Change define guards from NEOVIM_XXX_H to NVIM_XXX_H:
- Change header files.
- Change clint correct guard name calculation.
2014-05-15 20:46:02 +02:00
Eliseo Martínez
575deff66d Introduce nvim namespace: Fix clint.
- Fix path to clint-checked files.
- Fix mechanism to calculate define guard names.
2014-05-15 20:46:02 +02:00
ZyX
37935130f9 Do not detect macros like VIM_TRUE as boolean values 2014-05-03 08:44:04 -04:00
Eliseo Martínez
557e41b119 Use portable format specifiers: Clint advice & other.
- Modify Clint advice to reflect preference for fixed sized macros.
- Cleanup comment to eliminate referecen to "%ld".
2014-04-23 06:56:34 -03:00
John Schmidt
302998b0c7 Remove dead code in clint.py 2014-04-21 12:19:08 -03:00
Hinidu
39932212d8 Added clint check for TRUE/FALSE 2014-04-07 12:15:28 -03:00
Julian Orth
d1ef25728a More cleanup 2014-03-27 14:03:36 -03:00
Julian Orth
380b8048db remove leftover c++ headers 2014-03-27 14:03:36 -03:00
Julian Orth
5a2168a601 remove some leftover function calls 2014-03-27 14:03:35 -03:00
Julian Orth
323e90ee79 remove cpp headers 2014-03-27 14:03:35 -03:00
Julian Orth
f3a77cfd8c remove cpp file extensions 2014-03-27 14:03:35 -03:00
Julian Orth
2b7cd6ebbc remove CleanseRawStrings 2014-03-27 14:03:35 -03:00
Julian Orth
a8e2cab3ef remove C++ only _NestingState parts 2014-03-27 14:03:35 -03:00
Julian Orth
2aadf0daac clean up CheckForNonStandardConstruct
remove C++ stuff and add C types
2014-03-27 14:03:35 -03:00
Julian Orth
23a41ebf8f remove C++ stuff from CheckSpacingForFunctionCall 2014-03-27 14:03:35 -03:00
Julian Orth
95659707a8 remove C++ stuff from CheckSpacing 2014-03-27 14:03:35 -03:00
Julian Orth
ef23bbe6ee remove CheckSectionSpacing
irrelevant
2014-03-27 14:03:35 -03:00
Julian Orth
cb5f1fa51d remove unused function 2014-03-27 14:03:35 -03:00
Julian Orth
67dbb1afda remove some unused variables 2014-03-27 14:03:35 -03:00
Julian Orth
ccc3375d99 remove C++ only stuff from CheckLanguage
Do we want VLAs?
2014-03-27 14:03:35 -03:00
Julian Orth
4bfb03c630 remove "stream check" from CheckIncludeLine
irrelevant
2014-03-27 14:03:35 -03:00
Julian Orth
b3edf6c065 remove CheckForNonConstReference
irrelevant
2014-03-27 14:03:35 -03:00
Julian Orth
1511901467 remove CheckCStyleCast 2014-03-27 14:03:35 -03:00
Julian Orth
38eaa7ed32 remove CheckForIncludeWhatYouUse
Only checks C++ related headers
2014-03-27 14:03:35 -03:00
Julian Orth
cfa070edc5 remove CheckMakePairUsesDeduction
Irrelevant
2014-03-27 14:03:35 -03:00
Steven Myint
1fb6612dc0 Make script portable across Python versions
Support both Python 2 and 3.
2014-03-07 17:05:43 -03:00
David Z. Chen
6121d9b500 Issue #66 - Add lint tool and uncrustify config. Update contributing documentation on coding style. 2014-03-05 16:50:27 -03:00