Tag: c++

C++ Static Analysis using Clang

Introduction Large code bases typically develop rules around how various code constructs should be used.  These rules help eliminate bugs resulting from common mistakes.  C++ gives programmers a good amount of power over enforcing such rules using the facilities that

Tagged with: , , ,

C++ deleting destructors

Recently during a code review, Benoit pointed out a strange linker error, that neither of us expected.  Here’s what the situation roughly looked like: $ cat test.cpp #include <new> class Base { public:   virtual ~Base() {} }; class Derived

Tagged with: ,