util::String PrintClassDecl::declToString (ClassDeclPtr const & class_decl) const { String str; if (is_inst) { // extern only if dll_api is set if (is_inst_extern && conf::isOptionSet (conf::opt_dll_api)) { str = "extern "; } str += "template"; } else if (is_frnd) { str = "friend"; } appendWithSpace (str, classKeyToString (class_decl->getKey ())); if (class_decl->isDllApi ()) { appendWithSpace (str, conf::getOptionValue (conf::opt_dll_api)); } appendWithSpace (str, nameToString (class_decl->getName ())); return str; }