What C++ static code analysis tool are there on Microsoft Windows, and which would you recommend?
Please state whether a particular tool relies on cygwin, and whether it cost money. One per post as per for voting up & down.
Similar Question: http://stackoverflow.com/questions/141498/what-open-source-c-static-analysis-tools-are-availabl...
Howdy Overflowites,
I'm looking to see if anyone knows of a higher-resolution "Sleep" API than can be achieved using the following code block:
::timeBeginPeriod( 1 );
::Sleep( 1 );
::timeEndPeriod( 1 );
I'm trying to accomplish some "process balancing" work, and after some experimenting, find I need finer grain control than the...
What is std::pair for, why would I use it, and what benefits does boost::compressed_pair bring?
...
What's the best practice for switch vs if for a 30 unsigned enumerations where about 10 have an expected action (that presently is the same action). Performance and space need to be considered but are not critical. I've abstracted the snippet so don't hate me for the naming conventions :p
// numError is an error enumeration type, with...
I've found the standard hashing function on VS2005 is painfully slow when trying to achieve high performance look ups. What are some good examples of fast and efficient hashing algorithms that should void most collisions?
...
Here is a test case:
void foo(int i, int j)
{
printf("%d %d", i, j);
}
...
test = 0;
foo(test++, test);
I would expect to get a "0 1" output, but I get "0 0"
What gives??
...
I'm looking for an extremely fast atof() implementation on IA32 optimized for US-en locale, ASCII, and non-scientific notation. The windows multithreaded CRT falls down miserably here as it checks for locale changes on every call to isdigit(). Our current best is derived from the best of perl + tcl's atof implementation, and outperform...
Can anyone point me to a library for 2D game physics, etc for programming gravity, jumping actions, etc for a 2d platform/sidescrolling game ?
Or could you suggest some algorithms for side scroller like mario, sonic etc?
...
When asking about common undefined behavior in C, souls more enlightened than I referred to the strict aliasing rule.
What are they talking about?
...
I understand that the function is not allowed to change the state of the object, but I thought I read somewhere that the compiler was allowed to assume that if the function was called with the same arguments, it would return the same value and thus could reuse a cached value if it was available. e.g.
class object
{
int get_value(int...
How do I write a cpp macro which expands to include newlines?
...
We all know what virtual functions are in C++, but how are they implemented at a deep level?
Can the vtable be modified or even directly accessed at runtime?
Does the vtable exist for all classes, or only those that have at least one virtual function?
Do abstract classes simply have a NULL for the function pointer of at least one ent...
What is the best way to handle a big team that has access to a stable but no so pretty code, that is easy to introduce bugs into?
I'm looking for something along the lines of SVN locking the file(s).
...
My C(++) program, written and compiled using Visual C(++)/Visual Studio, runs fine on my own machine, but refuses to run on another machine. The error message I get is "This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."
...
Does having several levels of base classes slow down a class? A derives B derives C derives D derives F derives G, ...
Does multiple inheritance slow down a class?
...
I'd like to be able to do some drawing to the right of the menu bar, in the nonclient area of a window.
Is this possible, using C++ / MFC?
...
In the application we have something about 30 types of objects that are created repeatedly.
Some of them have long life (hours) some have short (miliseconds).
Objects could be created in one thread and destroyed in another.
Does anybody have any clue what could be good pooling technique in the sense of minimal creation/destruction l...
RAII (=resource acquisition is initialization) is used heavily in C++.
I'm not a native speaker. So, how do you pronounce it?
...
I am working with a very large code in C/C++. Indexing and referencing is a must in this environment. What tools would you recommend for viewing/browsing the code? Preferably open source. I tried CDT for indexing but it is useless. Other tools I've tried is cscope, but it does not work well with C++...
...
Whilst refactoring some old code I realised that a particular header file was full of function declarations for functions long since removed from the .cpp file. Does anyone know of a tool that could find (and strip) these automatically?
...