add gtags to c++ mode hook