Hacker Newsnew | past | comments | ask | show | jobs | submit | typopl's commentslogin

My perl script to scan C/C++ source code for common programming typos can check for this particular case since 1999.

see https://www.cpan.org/authors/id/T/TY/TYPO/typo-2.46.pl

  // START: Mon Jun 17 14:49:53 2019
  C:\src\test\test.c (1): using ^ on a number 37: short#maxshort=2^16;
  C:\src\test\test.c (2): using ^ on a number 37: int#maxint=2^32;
  C:\src\test\test.c (3): using ^ on a number 37: long#maxlong=2^64;
Link to the 1999 Perl Conference paper for the script:

https://web.archive.org/web/20090729104734/http://www.geocit...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: