Lines Matching refs:NamingStyles
417 ArrayRef<llvm::Optional<IdentifierNamingCheck::NamingStyle>> NamingStyles, in findStyleKind() argument
422 if (isa<ObjCIvarDecl>(D) && NamingStyles[SK_ObjcIvar]) in findStyleKind()
425 if (isa<TypedefDecl>(D) && NamingStyles[SK_Typedef]) in findStyleKind()
428 if (isa<TypeAliasDecl>(D) && NamingStyles[SK_TypeAlias]) in findStyleKind()
435 if (Decl->isInline() && NamingStyles[SK_InlineNamespace]) in findStyleKind()
438 if (NamingStyles[SK_Namespace]) in findStyleKind()
442 if (isa<EnumDecl>(D) && NamingStyles[SK_Enum]) in findStyleKind()
447 NamingStyles[SK_ScopedEnumConstant]) in findStyleKind()
450 if (NamingStyles[SK_EnumConstant]) in findStyleKind()
453 if (NamingStyles[SK_Constant]) in findStyleKind()
467 NamingStyles[SK_AbstractClass]) in findStyleKind()
470 if (Decl->isStruct() && NamingStyles[SK_Struct]) in findStyleKind()
473 if (Decl->isStruct() && NamingStyles[SK_Class]) in findStyleKind()
476 if (Decl->isClass() && NamingStyles[SK_Class]) in findStyleKind()
479 if (Decl->isClass() && NamingStyles[SK_Struct]) in findStyleKind()
482 if (Decl->isUnion() && NamingStyles[SK_Union]) in findStyleKind()
485 if (Decl->isEnum() && NamingStyles[SK_Enum]) in findStyleKind()
495 if (NamingStyles[SK_ConstantMember]) in findStyleKind()
498 if (NamingStyles[SK_Constant]) in findStyleKind()
502 if (Decl->getAccess() == AS_private && NamingStyles[SK_PrivateMember]) in findStyleKind()
505 if (Decl->getAccess() == AS_protected && NamingStyles[SK_ProtectedMember]) in findStyleKind()
508 if (Decl->getAccess() == AS_public && NamingStyles[SK_PublicMember]) in findStyleKind()
511 if (NamingStyles[SK_Member]) in findStyleKind()
522 if (Decl->isConstexpr() && NamingStyles[SK_ConstexprVariable]) in findStyleKind()
526 if (Type.getTypePtr()->isAnyPointerType() && NamingStyles[SK_ConstantPointerParameter]) in findStyleKind()
529 if (NamingStyles[SK_ConstantParameter]) in findStyleKind()
532 if (NamingStyles[SK_Constant]) in findStyleKind()
536 if (Decl->isParameterPack() && NamingStyles[SK_ParameterPack]) in findStyleKind()
539 … if (!Type.isNull() && Type.getTypePtr()->isAnyPointerType() && NamingStyles[SK_PointerParameter]) in findStyleKind()
542 if (NamingStyles[SK_Parameter]) in findStyleKind()
551 if (Decl->isConstexpr() && NamingStyles[SK_ConstexprVariable]) in findStyleKind()
555 if (Decl->isStaticDataMember() && NamingStyles[SK_ClassConstant]) in findStyleKind()
558 …if (Decl->isFileVarDecl() && Type.getTypePtr()->isAnyPointerType() && NamingStyles[SK_GlobalConsta… in findStyleKind()
561 if (Decl->isFileVarDecl() && NamingStyles[SK_GlobalConstant]) in findStyleKind()
564 if (Decl->isStaticLocal() && NamingStyles[SK_StaticConstant]) in findStyleKind()
567 …if (Decl->isLocalVarDecl() && Type.getTypePtr()->isAnyPointerType() && NamingStyles[SK_LocalConsta… in findStyleKind()
570 if (Decl->isLocalVarDecl() && NamingStyles[SK_LocalConstant]) in findStyleKind()
573 if (Decl->isFunctionOrMethodVarDecl() && NamingStyles[SK_LocalConstant]) in findStyleKind()
576 if (NamingStyles[SK_Constant]) in findStyleKind()
580 if (Decl->isStaticDataMember() && NamingStyles[SK_ClassMember]) in findStyleKind()
583 …if (Decl->isFileVarDecl() && Type.getTypePtr()->isAnyPointerType() && NamingStyles[SK_GlobalPointe… in findStyleKind()
586 if (Decl->isFileVarDecl() && NamingStyles[SK_GlobalVariable]) in findStyleKind()
589 if (Decl->isStaticLocal() && NamingStyles[SK_StaticVariable]) in findStyleKind()
592 …if (Decl->isLocalVarDecl() && Type.getTypePtr()->isAnyPointerType() && NamingStyles[SK_LocalPointe… in findStyleKind()
595 if (Decl->isLocalVarDecl() && NamingStyles[SK_LocalVariable]) in findStyleKind()
598 if (Decl->isFunctionOrMethodVarDecl() && NamingStyles[SK_LocalVariable]) in findStyleKind()
601 if (NamingStyles[SK_Variable]) in findStyleKind()
619 if (Decl->isConstexpr() && NamingStyles[SK_ConstexprMethod]) in findStyleKind()
622 if (Decl->isConstexpr() && NamingStyles[SK_ConstexprFunction]) in findStyleKind()
625 if (Decl->isStatic() && NamingStyles[SK_ClassMethod]) in findStyleKind()
628 if (Decl->isVirtual() && NamingStyles[SK_VirtualMethod]) in findStyleKind()
631 if (Decl->getAccess() == AS_private && NamingStyles[SK_PrivateMethod]) in findStyleKind()
634 if (Decl->getAccess() == AS_protected && NamingStyles[SK_ProtectedMethod]) in findStyleKind()
637 if (Decl->getAccess() == AS_public && NamingStyles[SK_PublicMethod]) in findStyleKind()
640 if (NamingStyles[SK_Method]) in findStyleKind()
643 if (NamingStyles[SK_Function]) in findStyleKind()
653 if (Decl->isConstexpr() && NamingStyles[SK_ConstexprFunction]) in findStyleKind()
656 if (Decl->isGlobal() && NamingStyles[SK_GlobalFunction]) in findStyleKind()
659 if (NamingStyles[SK_Function]) in findStyleKind()
664 if (NamingStyles[SK_TypeTemplateParameter]) in findStyleKind()
667 if (NamingStyles[SK_TemplateParameter]) in findStyleKind()
674 if (NamingStyles[SK_ValueTemplateParameter]) in findStyleKind()
677 if (NamingStyles[SK_TemplateParameter]) in findStyleKind()
684 if (NamingStyles[SK_TemplateTemplateParameter]) in findStyleKind()
687 if (NamingStyles[SK_TemplateParameter]) in findStyleKind()
698 ArrayRef<llvm::Optional<IdentifierNamingCheck::NamingStyle>> NamingStyles, in getFailureInfo() argument
700 if (SK == SK_Invalid || !NamingStyles[SK]) in getFailureInfo()
703 const IdentifierNamingCheck::NamingStyle &Style = *NamingStyles[SK]; in getFailureInfo()