Add C++ rules