Home
last modified time | relevance | path

Searched refs:TQ_const (Results 1 – 22 of 22) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DForRangeCopyCheck.cpp91 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleConstValueCopy()
122 LoopVar, Context, DeclSpec::TQ::TQ_const)) in handleCopyIsOnlyConstReferenced()
DUnnecessaryCopyInitialization.cpp27 Var, Context, DeclSpec::TQ::TQ_const)) in recordFixes()
DUnnecessaryValueParamCheck.cpp168 CurrentParam, *Result.Context, DeclSpec::TQ::TQ_const)) in check()
/external/llvm-project/clang/lib/Sema/
DDeclSpec.cpp425 if (TypeQualifiers & TQ_const) in forEachCVRUQualifier()
426 Handle(TQ_const, "const", TQ_constLoc); in forEachCVRUQualifier()
606 case DeclSpec::TQ_const: return "const"; in getSpecifierName()
974 case TQ_const: TQ_constLoc = Loc; return false; in SetTypeQual()
DSemaType.cpp787 for (QualLoc Qual : {QualLoc(DeclSpec::TQ_const, DS.getConstSpecLoc()), in diagnoseAndRemoveTypeQualifiers()
1783 S, DS, TypeQuals, Result, DeclSpec::TQ_const | DeclSpec::TQ_volatile, in ConvertDeclSpecToType()
1802 DeclSpec::TQ_const | DeclSpec::TQ_volatile | DeclSpec::TQ_atomic, in ConvertDeclSpecToType()
1811 if (TypeQuals & DeclSpec::TQ_const && Result.isConstQualified()) { in ConvertDeclSpecToType()
1900 ~(DeclSpec::TQ_const | DeclSpec::TQ_volatile | DeclSpec::TQ_atomic); in BuildQualifiedType()
3065 { "const", DeclSpec::TQ_const, ConstQualLoc }, in diagnoseIgnoredQualifiers()
4769 DeclType.Cls.TypeQuals |= DeclSpec::TQ_const; in GetFullTypeForDeclarator()
DSemaLambda.cpp955 FTI.getOrCreateMethodQualifiers().SetTypeQual(DeclSpec::TQ_const, in ActOnStartOfLambdaDefinition()
DSemaDeclCXX.cpp3306 if (D.getDeclSpec().getTypeQualifiers() & DeclSpec::TQ_const) in ActOnCXXMemberDeclarator()
3314 DeclSpec::TQ_const, ConstexprLoc, PrevSpec, DiagID, getLangOpts()); in ActOnCXXMemberDeclarator()
16336 if (DS.getTypeQualifiers() & DeclSpec::TQ_const) in ActOnFriendTypeDecl()
DSemaDecl.cpp4777 if (DS.getTypeQualifiers() & DeclSpec::TQ_const) in ParsedFreeStandingDeclSpec()
5025 if (DS.getTypeQualifiers() & DeclSpec::TQ_const) in BuildAnonymousStructOrUnion()
DSemaCodeComplete.cpp5370 if (!(DS.getTypeQualifiers() & DeclSpec::TQ_const)) in AddTypeQualifierResults()
/external/clang/lib/Sema/
DDeclSpec.cpp493 case DeclSpec::TQ_const: return "const"; in getSpecifierName()
796 case TQ_const: TQ_constLoc = Loc; return false; in SetTypeQual()
DSemaLambda.cpp833 EPI.TypeQuals |= DeclSpec::TQ_const; in ActOnStartOfLambdaDefinition()
859 FTI.TypeQuals |= DeclSpec::TQ_const; in ActOnStartOfLambdaDefinition()
DSemaType.cpp736 for (QualLoc Qual : {QualLoc(DeclSpec::TQ_const, DS.getConstSpecLoc()), in diagnoseAndRemoveTypeQualifiers()
1684 S, DS, TypeQuals, Result, DeclSpec::TQ_const | DeclSpec::TQ_volatile, in ConvertDeclSpecToType()
1703 DeclSpec::TQ_const | DeclSpec::TQ_volatile | DeclSpec::TQ_atomic, in ConvertDeclSpecToType()
1712 if (TypeQuals & DeclSpec::TQ_const && Result.isConstQualified()) { in ConvertDeclSpecToType()
2669 { "const", DeclSpec::TQ_const, ConstQualLoc }, in diagnoseIgnoredQualifiers()
3832 DeclType.Cls.TypeQuals |= DeclSpec::TQ_const; in GetFullTypeForDeclarator()
DSemaDeclCXX.cpp2105 if (D.getDeclSpec().getTypeQualifiers() & DeclSpec::TQ_const) in ActOnCXXMemberDeclarator()
2113 DeclSpec::TQ_const, ConstexprLoc, PrevSpec, DiagID, getLangOpts()); in ActOnCXXMemberDeclarator()
DSemaDecl.cpp4053 if (DS.getTypeQualifiers() & DeclSpec::TQ_const) in ParsedFreeStandingDeclSpec()
4300 if (DS.getTypeQualifiers() & DeclSpec::TQ_const) in BuildAnonymousStructOrUnion()
DSemaCodeComplete.cpp3821 if (!(DS.getTypeQualifiers() & DeclSpec::TQ_const)) in CodeCompleteTypeQualifiers()
DSemaExpr.cpp11975 EPI.TypeQuals |= DeclSpec::TQ_const; in ActOnBlockArguments()
/external/clang/lib/Parse/
DParseStmtAsm.cpp683 if (DS.getTypeQualifiers() & DeclSpec::TQ_const) in ParseAsmStatement()
DParseDecl.cpp2961 DS.getTypeQualifiers() == DeclSpec::TQ_const && in ParseDeclarationSpecifiers()
3433 isInvalid = DS.SetTypeQual(DeclSpec::TQ_const, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
4811 isInvalid = DS.SetTypeQual(DeclSpec::TQ_const , Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
5113 if (DS.getTypeQualifiers() & DeclSpec::TQ_const) in ParseDeclaratorInternal()
DParseDeclCXX.cpp2195 DeclSpecCheck(DeclSpec::TQ_const, "const", DS.getConstSpecLoc(), in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq()
/external/llvm-project/clang-tools-extra/unittests/clang-tidy/
DAddConstTest.cpp30 *D, *Result.Context, DeclSpec::TQ::TQ_const, CT, CP); in check()
/external/llvm-project/clang/lib/Parse/
DParseDecl.cpp3266 DS.getTypeQualifiers() == DeclSpec::TQ_const && in ParseDeclarationSpecifiers()
3933 isInvalid = DS.SetTypeQual(DeclSpec::TQ_const, Loc, PrevSpec, DiagID, in ParseDeclarationSpecifiers()
5457 isInvalid = DS.SetTypeQual(DeclSpec::TQ_const , Loc, PrevSpec, DiagID, in ParseTypeQualifierListOpt()
5772 if (DS.getTypeQualifiers() & DeclSpec::TQ_const) in ParseDeclaratorInternal()
/external/llvm-project/clang/include/clang/Sema/
DDeclSpec.h305 TQ_const = 1, enumerator