@@ -393,7 +393,7 @@ void Converter::ConvertVaListVarDecl(clang::VarDecl *decl) {
393393 StrCat (keyword_mut_, GetNamedDeclAsString (decl), token::kColon , " VaList" );
394394}
395395
396- static std::string StaticVarName (const clang::NamedDecl *decl) {
396+ static std::string staticVarName (const clang::NamedDecl *decl) {
397397 return " s_" + ReplaceAll (Mapper::ToString (decl), " ::" , " _" );
398398}
399399
@@ -407,7 +407,7 @@ bool Converter::ConvertVarDeclSkipInit(clang::VarDecl *decl) {
407407 }
408408
409409 if (decl->isFileVarDecl ()) {
410- name = StaticVarName (decl);
410+ name = staticVarName (decl);
411411 if ((decl->isThisDeclarationADefinition () ==
412412 clang::VarDecl::DeclarationOnly &&
413413 !decl->hasInit ()) ||
@@ -418,7 +418,7 @@ bool Converter::ConvertVarDeclSkipInit(clang::VarDecl *decl) {
418418 keyword_mut_);
419419 ENSURE (decl_ids_.insert (GetID (decl)).second );
420420 } else if (decl->isStaticLocal ()) {
421- name = StaticVarName (decl);
421+ name = staticVarName (decl);
422422 StrCat (keyword::kStatic , keyword_mut_);
423423 } else if (decl->isLocalVarDecl ()) {
424424 StrCat (keyword::kLet );
@@ -2383,7 +2383,7 @@ std::string Converter::ConvertDeclRefExpr(clang::DeclRefExpr *expr) {
23832383 }
23842384
23852385 if (IsGlobalVar (expr)) {
2386- return StaticVarName (expr->getDecl ());
2386+ return staticVarName (expr->getDecl ());
23872387 }
23882388
23892389 return GetNamedDeclAsString (decl);
0 commit comments