6

The Codan analysis for naming conventions is giving me "Bad function name" info messages beause it expects camelCase and I use CamelCase. (I know I can turn this off but I would rather have it enforce my naming conventions).

I'm using Eclipse/CDT Indigo. Under the Windows->Preferences there is a C/C++->Code Style->Name Style (see image), but under Code it doesn't have an option for Method names. This is strange since it has a more specific entry for Getter and Setter methods. Where is Codan getting the style it's using for validation?

screen shot of prefs dialog

Charles
  • 50,943
  • 13
  • 104
  • 142
Tod
  • 8,192
  • 5
  • 52
  • 93

1 Answers1

7

Right click on info message in the Problems window, and select the Customize Problem... option at the bottom of the context menu:

enter image description here

and change the pattern for function naming to ^[A-Z]

enter image description here

Tod
  • 8,192
  • 5
  • 52
  • 93
Microfed
  • 2,832
  • 22
  • 25