Questions tagged [codan]

Codan is the code analysis plug-in for Eclipse

Codan is part of the CDT plugin :

You can develop your own checker by following this doc : https://wiki.eclipse.org/CDT/designs/StaticAnalysis

And you can found some example of already implemented checker on the github page : https://github.com/eclipse/cdt/tree/master/codan

11 questions
6
votes
1 answer

Where can I set the Eclipse C++ Function Name Style?

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…
Tod
  • 8,192
  • 5
  • 52
  • 93
3
votes
1 answer

Eclipse Luna CDT: What is a header variant?

I am having difficulty getting the Eclipse Indexer (Codan) to recognize certain data declarations in header files. There is a new preference to Index all header variants, but little explanation as to what this means. Enabling the preference seems to…
ThomasMcLeod
  • 7,603
  • 4
  • 42
  • 80
1
vote
1 answer

Add new rule to Codan

I am using the integrated CODAN static code analysis tool in Eclipse CDT. But i want to add some rules to check naming conventions of my code. How can I create and add that kind of rules to Codan?
1
vote
1 answer

Codan fails to resolve symbol - set include path

Currently running Eclipse Luna under osx Yosemite for a C project. I don't understand why eclipse cannot resolve a symbol. I have an include directory I want to add, so I include it in the settings > path and symbols > include. I can open the…
Jdarc
  • 55
  • 6
1
vote
0 answers

Incorrect "Invalid Arguments" errors given by Eclipse code analyzer

I am using cocos2d-x library and trying to call couple of functions from it. The code compiles without any error while the code analyzer keeps complaining about "Invalid Arguments" in two functions: static inline ccColor3B ccc3(const GLubyte r,…
Sami
  • 1,369
  • 14
  • 35
1
vote
2 answers

Eclipse CODAN static code analysis

I am using the integrated CODAN static code analysis tool in Eclipse CDT. Is there a way to store the output of this analysis as displayed in the "Problems" window in Eclipse to a file which stores its formatting and stores the columns as shown in…
goldenmean
  • 18,376
  • 54
  • 154
  • 211
0
votes
0 answers

How to save a control flow graph produced by eclipse-cdt codan as a file (preferably PNG or JPEG)?

I want to save the control flow graph produced by eclipse-cdt codan from some C source code as png/jpeg files. I am using codan as a library in my code so it's not an eclipse plugin. So far I have been able to successfully get the cfg using the…
kvs
  • 178
  • 2
  • 12
0
votes
1 answer

‘string’ does not name a type error" in eclipse cdt

I added a new source folder to my code and create a new class with below header and cpp file #ifndef ENVIRONMENT_H_ #define ENVIRONMENT_H_ #include using namespace std; namespace daemonWorld { class Environment { const string…
Govan
  • 2,079
  • 4
  • 31
  • 53
0
votes
1 answer

Linux, Eclipse, ARM toolchain and Codan errors

After whole week of Googling, asking questions here, etc. I set up my arm-none-eabi toolchain under Linux. Finally! My problem is (I really hope it's the last one!) I'm still getting Codan errors from Eclipse - it is pretty annoying. Those errors…
Jacajack
  • 759
  • 2
  • 11
  • 23
0
votes
2 answers

How does Eclipse CDT understand __SIZE_TYPE__?

When I open the declaration of size_t in Eclipse I get to stddef.h from GCC with the line: typedef __SIZE_TYPE__ size_t; I understand that __SIZE_TYPE__ is not defined in any header file, but is known by the compiler. But, how does Eclipse CDT…
Tor Klingberg
  • 4,790
  • 6
  • 41
  • 51
0
votes
1 answer

Eclipse CDT shows errors before project is built

I am having a minor problem with Eclipse CDT Juno. When I open up Eclipse for the first time, it will show many C/C++ Problem errors which put red x's on all of my projects. Many of these errors are "no such file or directory" errors for #include'd…
shansen
  • 317
  • 1
  • 2
  • 12