Enforce comments in function implementation [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am looking for a way to enforce adding comments for code blocks inside functions. for example I want each for loop, if condition etc. to have one or two lines of comments describing what the code actually does.
I know Doxygen and I know it is not capable of doing this task. is there any other tool that can be used to give some information/metrics about the quality and amount of comments in function implementation?

What could be interesting is to search for methods with a high cyclomatic complexity(using many if,for,while,..) and not well commented, for that you can use CppDepend and execute a CQLinq request like this one:

Related

What does the logarithm code look like in C++? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I can't search what does the logarithm code look like in C++? What the code of the logarithm function looks like in C++ in the library cmath? Exactly the code. I don't need to figure out how I can get the logarithm. I want to know how this algorithm works.
You would be very disappointed. On modern processors, the C++ compiler inserts the assembly instruction that obtains it from the floating-point ALU. There is no code.
That is implementation specific and therefore can vary from system to system.
Since there are several ways to compute a logarithm, a good book on this kind of algorithm is a good start.

How to find all lines in code where inheritance take place? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Is there any tool/static analysis tool/build in compiler or IDE tool that can find all lines of code where inheritance take place?
What I want to do is to find all inheritance cases and then check if base class have virtual destructor.
A global textual search for ":" will find all derived class definitions, however it will also have many false positives
A regex search for "(class|struct)\s+\S+\s+:" will cut down on most of the false positives

Symbolic Math Library in C/C++/Obj-C [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am trying to implement a graphing calculator on the iPhone. I am looking for a library that can take strings of expressions or functions and let me manipulate them (find derivatives, intercepts, zeros, etc). Does anything like this exist?
There's GiNaC for C++. GPL-licensed and actively maintained, last update only a month ago. I found old links to many others that don't seem to exist anymore; perhaps people simply found it easier to use GiNaC?

Boost::Spirit mini_c tutorial [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Is there any tutorial describing mini_c example from boost::spirit? It looks as good example of using grammar from boost::spirit::qi, but it's rather complex one and some guide through the code would be helpful.
None that I know of. However, the mini_c example is step 9 in a series of calculator examples. Therefore, if you start working from calc1.cpp up to mini_c (or even the new 'conjure' examples now added to SVN) you shouldn't have a hard time understanding what's going on.

What is the best development estimate template you've found? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I've been putting a fair number of estimates together lately and I'd like to see if I can get a more thorough and - to be honest - better presented estimate document.
Do you have a template that you use regularly that's available online or is there particular content or presentation that you believe is important to include?
Never mind. I've gone and written my own. Hopefully I'll get feedback on how it might best be improved.
Excel Software Estimate Template