Fixed sanitize_qualifiers function to deal with c++ language, keeping it unchanged.