views:

321

answers:

5

I am looking for a spell checker for c++ source code. Unfortunately all I can find is Visual Studio specific. I would like something which works on Linux.

Edit:

Ultimately I want to automate it in some way. I am not very proficient in spell checking, but what I am thinking of is a not-interactive console tool which prints error messages, or something like that.

Personally I use vim, but not everyone on the project does of course.

Currently we are using svn so it is possible to integrate it into the pre-commit-hook maybe? Don't you guys do something similar?

+3  A: 

Eclipse (Java based so will do mac, linux etc.) has spellcheckers built in. With the CDT plugin you can edit and build C++ code.

Smalltown2000
+2  A: 

Which editors do you use? Many of them have spell checking abilities. E.g., gedit just needs to have the spellcheck plugin enabled.

mcandre
+3  A: 

Vim also supports spell checking.

See the other question for more.

Kristof Provost
+2  A: 

Emacs too has spell checking, flyspell-prog-mode, is the one I use, it is a (very!) personal preference which one works best for you.

The automating the spell check idea is a much trickier one. The best you can hope for is one that will tell you if there are spelling errors. That's trickier than it sounds, especially with code comments which may have all sorts of valid abbreviations which are not real words.

Having a company policy that whatever people have their EDITOR environment variable set to has a spell check enabled, should cut down on the spelling errors in commit messages, for example.

Chris Huang-Leaver
right. visual Studio+Assist. Qt Creator? (dunno if it has spell checking), vim and emacs. that's about it. Maybe nedit.
Ronny
A: 

I found something!

svn co svn://anonsvn.kde.org/home/kde/trunk/quality/krazy2 krazy2

this is part of the quality management of KDE. Besides a multitude of checks (KDE-specific, qt-specific, cpp-specific, ...) there is automated spell checking.

hope this helps

Ronny