Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DInconsistentDeclarationParameterNameCheck.cpp200 for (const DifferingParamInfo &ParamInfo : DifferingParams) { in joinParameterNames() local
205 Str.append({"'", ChooseParamName(ParamInfo), "'"}); in joinParameterNames()
214 auto ChooseOtherName = [](const DifferingParamInfo &ParamInfo) { in formatDifferingParamsDiagnostic() argument
215 return ParamInfo.OtherName; in formatDifferingParamsDiagnostic()
217 auto ChooseSourceName = [](const DifferingParamInfo &ParamInfo) { in formatDifferingParamsDiagnostic() argument
218 return ParamInfo.SourceName; in formatDifferingParamsDiagnostic()
229 for (const DifferingParamInfo &ParamInfo : DifferingParams) { in formatDifferingParamsDiagnostic() local
230 if (ParamInfo.GenerateFixItHint) { in formatDifferingParamsDiagnostic()
232 CharSourceRange::getTokenRange(ParamInfo.OtherNameRange), in formatDifferingParamsDiagnostic()
233 ParamInfo.SourceName); in formatDifferingParamsDiagnostic()
H A DNonConstParameterCheck.cpp146 const ParmInfo &ParamInfo = It.second; in diagnoseNonConstParameters() local
149 if (!ParamInfo.IsReferenced) in diagnoseNonConstParameters()
153 if (!ParamInfo.CanBeConst) in diagnoseNonConstParameters()
/llvm-project-15.0.7/clang/include/clang/APINotes/
H A DTypes.h410 class ParamInfo : public VariableInfo {
423 ParamInfo() in ParamInfo() function
447 ParamInfo &operator|=(const ParamInfo &RHS) {
461 friend bool operator==(const ParamInfo &, const ParamInfo &);
466 inline bool operator==(const ParamInfo &LHS, const ParamInfo &RHS) {
473 inline bool operator!=(const ParamInfo &LHS, const ParamInfo &RHS) {
510 std::vector<ParamInfo> Params;
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DCFLSteensAliasAnalysis.cpp176 auto ParamInfo = Sets.find(InstantiatedValue{&Param, 0}); in FunctionInfo() local
177 if (ParamInfo) in FunctionInfo()
178 AddToRetParamRelations(I + 1, ParamInfo->Index); in FunctionInfo()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaLambda.cpp892 Declarator &ParamInfo, in ActOnStartOfLambdaDefinition() argument
920 if (ParamInfo.getNumTypeObjects() == 0) { in ActOnStartOfLambdaDefinition()
948 assert(ParamInfo.isFunctionDeclarator() && in ActOnStartOfLambdaDefinition()
950 DeclaratorChunk::FunctionTypeInfo &FTI = ParamInfo.getFunctionTypeInfo(); in ActOnStartOfLambdaDefinition()
961 MethodTyInfo = GetTypeForDeclarator(ParamInfo, CurScope); in ActOnStartOfLambdaDefinition()
963 EndLoc = ParamInfo.getSourceRange().getEnd(); in ActOnStartOfLambdaDefinition()
983 ParamInfo.getDeclSpec().getConstexprSpecifier(), in ActOnStartOfLambdaDefinition()
984 ParamInfo.getTrailingRequiresClause()); in ActOnStartOfLambdaDefinition()
997 ProcessDeclAttributes(CurScope, Method, ParamInfo); in ActOnStartOfLambdaDefinition()
H A DDeclSpec.cpp163 ParamInfo *Params, in getFunction()
243 new (I.Fun.Params) ParamInfo[NumParams]; in getFunction()
247 I.Fun.Params = new DeclaratorChunk::ParamInfo[NumParams]; in getFunction()
H A DSemaExpr.cpp16191 void Sema::ActOnBlockArguments(SourceLocation CaretLoc, Declarator &ParamInfo, in ActOnBlockArguments() argument
16193 assert(ParamInfo.getIdentifier() == nullptr && in ActOnBlockArguments()
16195 assert(ParamInfo.getContext() == DeclaratorContext::BlockLiteral); in ActOnBlockArguments()
16198 TypeSourceInfo *Sig = GetTypeForDeclarator(ParamInfo, CurScope); in ActOnBlockArguments()
16279 CurBlock->TheDecl, ParamInfo.getBeginLoc(), I); in ActOnBlockArguments()
16292 ProcessDeclAttributes(CurScope, CurBlock->TheDecl, ParamInfo); in ActOnBlockArguments()
H A DSemaDeclObjC.cpp4715 ObjCArgInfo *ArgInfo, DeclaratorChunk::ParamInfo *CParamInfo, in ActOnMethodDeclaration()
H A DSemaDeclCXX.cpp3999 for (auto &Param : ArrayRef<DeclaratorChunk::ParamInfo>(FTI.Params, in ActOnStartTrailingRequiresClause()
/llvm-project-15.0.7/clang/lib/APINotes/
H A DAPINotesTypes.cpp64 LLVM_DUMP_METHOD void ParamInfo::dump(llvm::raw_ostream &OS) const { in dump()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseExpr.cpp3541 Declarator ParamInfo(DS, ParsedAttributesView::none(), in ParseBlockLiteralExpression() local
3551 ParseParenDeclarator(ParamInfo); in ParseBlockLiteralExpression()
3555 SourceLocation Tmp = ParamInfo.getSourceRange().getEnd(); in ParseBlockLiteralExpression()
3556 ParamInfo.SetIdentifier(nullptr, CaretLoc); in ParseBlockLiteralExpression()
3557 ParamInfo.SetRangeEnd(Tmp); in ParseBlockLiteralExpression()
3558 if (ParamInfo.isInvalidType()) { in ParseBlockLiteralExpression()
3566 MaybeParseGNUAttributes(ParamInfo); in ParseBlockLiteralExpression()
3569 Actions.ActOnBlockArguments(CaretLoc, ParamInfo, getCurScope()); in ParseBlockLiteralExpression()
3575 ParamInfo.AddTypeInfo( in ParseBlockLiteralExpression()
3593 CaretLoc, ParamInfo), in ParseBlockLiteralExpression()
[all …]
H A DParseExprCXX.cpp1324 MutableArrayRef<DeclaratorChunk::ParamInfo> ParamInfo, in ParseLambdaExpressionAfterIntroducer()
1385 /*IsAmbiguous=*/false, LParenLoc, ParamInfo.data(), in ParseLambdaExpressionAfterIntroducer()
1386 ParamInfo.size(), EllipsisLoc, RParenLoc, in ParseLambdaExpressionAfterIntroducer()
1408 SmallVector<DeclaratorChunk::ParamInfo, 16> ParamInfo; in ParseLambdaExpressionAfterIntroducer() local
1415 ParseParameterDeclarationClause(D.getContext(), Attr, ParamInfo, in ParseLambdaExpressionAfterIntroducer()
1430 ParamInfo, EllipsisLoc); in ParseLambdaExpressionAfterIntroducer()
1450 std::vector<DeclaratorChunk::ParamInfo> EmptyParamInfo; in ParseLambdaExpressionAfterIntroducer()
3425 llvm::SmallVector<DeclaratorChunk::ParamInfo, 2> LocalParameters; in ParseRequiresExpression()
3431 for (auto &ParamInfo : LocalParameters) in ParseRequiresExpression() local
3432 LocalParameterDecls.push_back(cast<ParmVarDecl>(ParamInfo.Param)); in ParseRequiresExpression()
H A DParseDecl.cpp6688 SmallVector<DeclaratorChunk::ParamInfo, 16> ParamInfo; in ParseFunctionDeclarator() local
6717 ParseFunctionDeclaratorIdentifierList(D, ParamInfo); in ParseFunctionDeclarator()
6730 ParseParameterDeclarationClause(D.getContext(), FirstArgAttrs, ParamInfo, in ParseFunctionDeclarator()
6738 HasProto = ParamInfo.size() || getLangOpts().requiresStrictPrototypes() || in ParseFunctionDeclarator()
6841 HasProto, IsAmbiguous, LParenLoc, ParamInfo.data(), in ParseFunctionDeclarator()
6842 ParamInfo.size(), EllipsisLoc, RParenLoc, in ParseFunctionDeclarator()
6909 SmallVectorImpl<DeclaratorChunk::ParamInfo> &ParamInfo) { in ParseFunctionDeclaratorIdentifierList() argument
6930 ParamInfo.clear(); in ParseFunctionDeclaratorIdentifierList()
6945 ParamInfo.push_back(DeclaratorChunk::ParamInfo(ParmII, in ParseFunctionDeclaratorIdentifierList()
6989 SmallVectorImpl<DeclaratorChunk::ParamInfo> &ParamInfo, in ParseParameterDeclarationClause() argument
[all …]
H A DParseObjc.cpp1388 SmallVector<DeclaratorChunk::ParamInfo, 8> CParamInfo; in ParseObjCMethodDecl()
1501 CParamInfo.push_back(DeclaratorChunk::ParamInfo(ParmII, in ParseObjCMethodDecl()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDecl.h1920 ParmVarDecl **ParamInfo = nullptr;
2515 return {ParamInfo, getNumParams()}; in parameters()
2518 return {ParamInfo, getNumParams()}; in parameters()
2539 return ParamInfo[i]; in getParamDecl()
2543 return ParamInfo[i]; in getParamDecl()
4273 ParmVarDecl **ParamInfo = nullptr;
4306 return {ParamInfo, getNumParams()}; in parameters()
4309 return {ParamInfo, getNumParams()}; in parameters()
4327 return ParamInfo[i]; in getParamDecl()
4331 return ParamInfo[i]; in getParamDecl()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DDeclSpec.h1252 struct ParamInfo { struct
1264 ParamInfo() = default;
1265 ParamInfo(IdentifierInfo *ident, SourceLocation iloc,
1341 ParamInfo *Params;
1628 ParamInfo *Params, unsigned NumParams,
1883 DeclaratorChunk::ParamInfo InlineParams[16];
H A DSema.h5900 void ActOnBlockArguments(SourceLocation CaretLoc, Declarator &ParamInfo,
7020 Declarator &ParamInfo, Scope *CurScope);
10079 ObjCArgInfo *ArgInfo, DeclaratorChunk::ParamInfo *CParamInfo,
/llvm-project-15.0.7/llvm/include/llvm/AsmParser/
H A DLLParser.h492 struct ParamInfo { struct
496 ParamInfo(LocTy loc, Value *v, AttributeSet attrs) in ParamInfo() argument
499 bool parseParameterList(SmallVectorImpl<ParamInfo> &ArgList,
/llvm-project-15.0.7/clang/lib/AST/
H A DDecl.cpp3454 assert(!ParamInfo && "Already has param info!"); in setParams()
3459 ParamInfo = new (C) ParmVarDecl*[NewParamInfo.size()]; in setParams()
3460 std::copy(NewParamInfo.begin(), NewParamInfo.end(), ParamInfo); in setParams()
3638 NP > 0 ? ParamInfo[0]->getSourceRange().getBegin() : EllipsisLoc; in getParametersSourceRange()
3641 : ParamInfo[NP - 1]->getSourceRange().getEnd(); in getParametersSourceRange()
4837 assert(!ParamInfo && "Already has param info!"); in setParams()
4842 ParamInfo = new (getASTContext()) ParmVarDecl*[NewParamInfo.size()]; in setParams()
4843 std::copy(NewParamInfo.begin(), NewParamInfo.end(), ParamInfo); in setParams()
/llvm-project-15.0.7/clang/include/clang/Parse/
H A DParser.h2999 SmallVectorImpl<DeclaratorChunk::ParamInfo> &ParamInfo);
3003 SmallVectorImpl<DeclaratorChunk::ParamInfo> &ParamInfo,
/llvm-project-15.0.7/llvm/lib/AsmParser/
H A DLLParser.cpp2491 bool LLParser::parseParameterList(SmallVectorImpl<ParamInfo> &ArgList, in parseParameterList()
2531 ArgList.push_back(ParamInfo( in parseParameterList()
6375 SmallVector<ParamInfo, 16> ArgList; in parseInvoke()
6684 SmallVector<ParamInfo, 16> ArgList; in parseCallBr()
7102 SmallVector<ParamInfo, 16> ArgList; in parseCall()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGCall.cpp134 for (const auto &ParamInfo : proto->getExtParameterInfos()) { in addExtParameterInfosForCall() local
135 paramInfos.push_back(ParamInfo); in addExtParameterInfosForCall()
137 if (ParamInfo.hasPassObjectSize()) in addExtParameterInfosForCall()