Questions tagged [cppdepend]

16 questions
9
votes
1 answer

CppDepend vs NDepend

Both CppDepend and NDepend are developed by the same company and seem to be based on the same codebase and share some features. I haven't found a side by side comparison site yet. I work on several plain c# solutions without any c++ code at all but…
bitbonk
  • 48,890
  • 37
  • 186
  • 278
4
votes
1 answer

cppdepend. issues? release notes? community? support?

I've discovered a cppdepend tool for analyzing huge project(s). But as I see it has some issues. For example, the main and critical (for me) is that some dependencies, which I see right in code by myself, cppdepends doesn't see and tells that…
Amor
  • 49
  • 1
3
votes
0 answers

Detect unprotected code using cppdepend to audit missing outer guard in call chain?

I'm trying to detect code which is unprotected by a guard clause at a higher level in its callers. I think I can get quite close with cppdepend but unsure if I can precisely identify problems. I have a bunch of code where a locking protection is…
Andy Dent
  • 17,578
  • 6
  • 88
  • 115
2
votes
3 answers

How can we detect all pointer comparisons in source code? c++

We want to find all pointer comparisons from a class type. For example we have a class A and derived classes from A like B, C ect. A *pa; A *pa2; B *pb; All comparisons like if (pa == pa2) or if (pa != pb) must be found in our source code. I know…
1
vote
1 answer

How to add the custom rules of a single project to sonarQube analisys?

I created a new rule in my CPPDepend project. I can see that is been consider on the dashboard results as my 'TODO CUSTOM TEST CLASES'. (img below) I saved the project and added the .cdproj path to the CppDepend rules in sonarQube but I can not see…
UserEsp
  • 415
  • 1
  • 7
  • 29
1
vote
1 answer

(Cppdepend Rule) "Constructor should not call a virtual methods" only functions on own (base)class?

I have an question to "Constructor should not call a virtual methods" (in C++). Yes I know the problem. The problem is clear. It is described e.g. here I have a special question. I start with CppDepent do check my project. Now CppDepent warns me,…
kobold04
  • 63
  • 3
1
vote
1 answer

CPPdepend LCOM metric query

I was trying to get LCOM metric report using CppDepend. I wrote the following query // TODO short description from t in Application.Types select new {t,t.LCOM, t.LCOMHS} But this query gives table value for only header files in the…
1
vote
1 answer

draw call graph for C source codes using cppDepend

I have a problem with using cppDepend tool. I have a source code which is written in C language and I need to draw Its dependency or call graph. cppDepend's compiler's source code extension is set to c;cpp;cxx;cc but when I want to open source…
zari
  • 1,709
  • 1
  • 12
  • 18
1
vote
1 answer

How to see the analysis flow of cppdepend (eg. for base class should not use derivatives)

Im playing around with cppdepend, and one thing bugs me: It lists certain classes that violate "base class should not use derivatives". But I didnt figure out a way to see exactly where and how base class is using derivatives. Can it be done? BTW…
NoSenseEtAl
  • 28,205
  • 28
  • 128
  • 277
0
votes
0 answers

CppDepend analysis skipped because the CppDepend SonarQube Rules Runner path is not valid

I set up my CppDepend.SonarQube.RuleRunner.exe path and restart the sonarQube server. e.g. C:\cppdepend2021.1\SonarPlugin\CppDepend.SonarQube.RuleRunner.exe I checked that it is a valid path but I sill getting the same message from my scan .…
UserEsp
  • 415
  • 1
  • 7
  • 29
0
votes
1 answer

How can I define a cppdepend rule as code smell rule?

I created a new rule on cppdepend. My cdproj document included the new line as follows
UserEsp
  • 415
  • 1
  • 7
  • 29
0
votes
1 answer

How to tell Cppdepend a directory has multiple local copies

For certain project I want to make statistics like list of public methods and functions. Great option might be using CppDepend and it's build-in query language. Our (legacy) project base has applications. Each application is in it's own directory,…
Tomas Tintera
  • 787
  • 1
  • 8
  • 19
0
votes
2 answers

CppDepend.Console.exe closes very quickly

I'm using CppDepend and I need it to be running from the command line. So, I'm using CppDepend.Console.exe, my problem is that it opens for 1 seconds and closes immediately! I don't even get to type anything.
Nerminz
  • 27
  • 6
0
votes
1 answer

Cppdepend C++ linux base

I'm trying to generate code metrics for a C++ project which is not a Visual Studio one, rather it was written on Linux. I tried the Project Maker and followed the steps except for the last part (After adding the source files, you can specify the…
Nerminz
  • 27
  • 6
0
votes
1 answer

CPPDepend Detection of virtual function usage

I'm having a slight problem with CPPDepend's ability to detect virtual function usage. Consider the following scenario. Two classes, CParentClass and CChildClass, where CChildClass is derived from CParentClass. The CParentClass has a virtual…
neil
  • 1
1
2