Searched refs:OldVar (Results 1 – 7 of 7) sorted by relevance
/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
D | UnnecessaryCopyInitialization.cpp | 98 const auto *OldVar = Result.Nodes.getNodeAs<VarDecl>("oldVarDecl"); in check() local 120 if (OldVar == nullptr) { in check() 129 handleCopyFromLocalVar(*NewVar, *OldVar, *BlockStmt, IssueFix, in check() 158 const VarDecl &NewVar, const VarDecl &OldVar, const Stmt &BlockStmt, in handleCopyFromLocalVar() argument 161 !isOnlyUsedAsConst(OldVar, BlockStmt, Context)) in handleCopyFromLocalVar() 167 << &NewVar << &OldVar; in handleCopyFromLocalVar()
|
D | UnnecessaryCopyInitialization.h | 40 void handleCopyFromLocalVar(const VarDecl &NewVar, const VarDecl &OldVar,
|
/external/clang/lib/Sema/ |
D | SemaTemplateInstantiateDecl.cpp | 3785 VarDecl *NewVar, VarDecl *OldVar, in BuildVariableInstantiation() argument 3796 if (OldVar->isLocalExternDecl()) { in BuildVariableInstantiation() 3799 } else if (OldVar->isOutOfLine()) in BuildVariableInstantiation() 3800 NewVar->setLexicalDeclContext(OldVar->getLexicalDeclContext()); in BuildVariableInstantiation() 3801 NewVar->setTSCSpec(OldVar->getTSCSpec()); in BuildVariableInstantiation() 3802 NewVar->setInitStyle(OldVar->getInitStyle()); in BuildVariableInstantiation() 3803 NewVar->setCXXForRangeDecl(OldVar->isCXXForRangeDecl()); in BuildVariableInstantiation() 3804 NewVar->setConstexpr(OldVar->isConstexpr()); in BuildVariableInstantiation() 3805 NewVar->setInitCapture(OldVar->isInitCapture()); in BuildVariableInstantiation() 3807 OldVar->isPreviousDeclInSameBlockScope()); in BuildVariableInstantiation() [all …]
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaTemplateInstantiateDecl.cpp | 4962 VarDecl *NewVar, VarDecl *OldVar, in BuildVariableInstantiation() argument 4971 isa<VarTemplatePartialSpecializationDecl>(OldVar) && in BuildVariableInstantiation() 4977 (OldVar->getDescribedVarTemplate() || in BuildVariableInstantiation() 4978 isa<VarTemplatePartialSpecializationDecl>(OldVar)); in BuildVariableInstantiation() 4985 if (OldVar->isLocalExternDecl()) { in BuildVariableInstantiation() 4988 } else if (OldVar->isOutOfLine()) in BuildVariableInstantiation() 4989 NewVar->setLexicalDeclContext(OldVar->getLexicalDeclContext()); in BuildVariableInstantiation() 4990 NewVar->setTSCSpec(OldVar->getTSCSpec()); in BuildVariableInstantiation() 4991 NewVar->setInitStyle(OldVar->getInitStyle()); in BuildVariableInstantiation() 4992 NewVar->setCXXForRangeDecl(OldVar->isCXXForRangeDecl()); in BuildVariableInstantiation() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | CodeExtractor.cpp | 1533 DILocalVariable *OldVar = DVI->getVariable(); in fixupDebugInfoPostExtraction() local 1534 DINode *&NewVar = RemappedMetadata[OldVar]; in fixupDebugInfoPostExtraction() 1537 NewSP, OldVar->getName(), OldVar->getFile(), OldVar->getLine(), in fixupDebugInfoPostExtraction() 1538 OldVar->getType(), /*AlwaysPreserve=*/false, DINode::FlagZero, in fixupDebugInfoPostExtraction() 1539 OldVar->getAlignInBits()); in fixupDebugInfoPostExtraction()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 7277 BuildVariableInstantiation(VarDecl *NewVar, VarDecl *OldVar, 7284 VarDecl *Var, VarDecl *OldVar,
|
/external/llvm-project/clang/include/clang/Sema/ |
D | Sema.h | 9265 BuildVariableInstantiation(VarDecl *NewVar, VarDecl *OldVar, 9274 VarDecl *Var, VarDecl *OldVar,
|