Always clear class declaration buffer after adding declarations