| /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| UncountedLambdaCapturesChecker.cpp | 25 BugType Bug{this, "Lambda capture of uncounted variable", 71 void reportBug(const LambdaCapture &Capture, VarDecl *CapturedVar, 78 if (Capture.isExplicit()) { 90 printQuotedQualifiedName(Os, Capture.getCapturedVar()); 93 PathDiagnosticLocation BSLoc(Capture.getLocation(), BR->getSourceManager());
|
| /src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| CGBlocks.h | 160 class Capture { 165 /// Type of the capture field. Normally, this is identical to the type of 166 /// the capture's VarDecl, but can be different if there is an enclosing 200 static Capture makeIndex(unsigned index, CharUnits offset, 202 Capture v; 209 static Capture makeConstant(llvm::Value *value) { 210 Capture v; 242 llvm::DenseMap<const VarDecl*, Capture> Captures; 266 const Capture &getCapture(const VarDecl *var) const { 269 Capture &getCapture(const VarDecl *var) [all...] |
| CGBlocks.cpp | 85 const BlockDecl::Capture *CI; 86 const CGBlockInfo::Capture *Capture; 92 const BlockDecl::Capture &CI, 93 const CGBlockInfo::Capture &Capture) 95 DisposeFlags(DisposeFlags), CI(&CI), Capture(&Capture) {} 98 return Capture->getOffset() < Other.Capture->getOffset() 912 const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable); local 1247 const CGBlockInfo::Capture &capture = BlockInfo->getCapture(variable); local 1546 const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable); local 1586 const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable); local 1980 const CGBlockInfo::Capture &capture = *CopiedCapture.Capture; local 2175 const CGBlockInfo::Capture &capture = *DestroyedCapture.Capture; local [all...] |
| CGDebugInfo.cpp | 1432 // For C++11 Lambdas a Field will be the same as a Capture, but the Capture 4550 const BlockDecl::Capture *Capture; 4624 // 'this' capture. 4629 chunk.Capture = nullptr; 4634 for (const auto &capture : blockDecl->captures()) { 4635 const VarDecl *variable = capture.getVariable(); 4636 const CGBlockInfo::Capture &captureInfo = block.getCapture(variable); 4645 chunk.Capture = &capture 4654 const BlockDecl::Capture *capture = Chunk.Capture; local [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/Sema/ |
| ScopeInfo.h | 521 class Capture { 522 // There are three categories of capture: capturing 'this', capturing 524 // arbitrary initializer, and don't really capture in the traditional 527 // There are three ways to capture a local variable: 528 // - capture by copy in the C++11 sense, 529 // - capture by reference in the C++11 sense, and 530 // - __block capture. 531 // Lambdas explicitly specify capture by copy or capture by reference. 532 // For blocks, __block capture applies to variables with that annotation [all...] |
| Initialization.h | 176 /// The source location at which the capture occurs. 209 struct C Capture; 239 /// Create the initialization entity for a lambda capture. 242 new (&Capture) C; 243 Capture.VarID = VarID; 244 Capture.Location = Loc; 403 /// Create the initialization entity for a lambda capture. 530 /// For a lambda capture, return the capture's name. 532 assert(getKind() == EK_LambdaCapture && "Not a lambda capture!"); [all...] |
| Sema.h | 218 class Capture; 2738 // Block capture. 4979 void MarkCaptureUsedInEnclosingContext(VarDecl *Capture, SourceLocation Loc, 4989 /// Try to capture the given variable. 4991 /// \param Var The variable to capture. 4993 /// \param Loc The location at which the capture occurs. 4995 /// \param Kind The kind of capture, which may be implicit (for either a 4999 /// an explicit lambda capture. 5003 /// the capture can occur without performing the capture itself or complainin [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Sema/ |
| SemaLambda.cpp | 28 /// enclosing lambda (to the current lambda) that is 'capture-ready' for 31 /// of the capture-ready lambda's LambdaScopeInfo. 35 /// lambda that is ready to capture the \p VarToCapture being referenced in 38 /// that is the lambda with the highest index that is 'capture-ready'. 40 /// A lambda 'L' is capture-ready for 'V' (var or this) if: 44 /// stack), can all capture or have already captured V. 45 /// If \p VarToCapture is 'null' then we are trying to capture 'this'. 47 /// Note that a lambda that is deemed 'capture-ready' still needs to be checked 48 /// for whether it is 'capture-capable' (see 50 /// capture [all...] |
| SemaCUDA.cpp | 798 // Check the wrong-sided reference capture of lambda for CUDA/HIP. 799 // A lambda function may capture a stack variable by reference when it is 800 // defined and uses the capture by reference when the lambda is called. When 801 // the capture and use happen on different sides, the capture is invalid and 804 const sema::Capture &Capture) { 806 // side. In such lambda functions, a reference capture is invalid only 823 // emitted on device side. For such lambdas, a reference capture is invalid 830 if (!ShouldCheck || !Capture.isReferenceCapture() [all...] |
| ScopeInfo.cpp | 220 bool Capture::isInitCapture() const { 221 // Note that a nested capture of an init-capture is not itself an 222 // init-capture.
|
| SemaInit.cpp | 3317 return DeclarationName(Capture.VarID); 3435 OS << DeclarationName(Capture.VarID); 6796 const LambdaCapture *Capture; 6802 IndirectLocalPathEntry(EntryKind K, Expr *E, const LambdaCapture *Capture) 6803 : Kind(K), E(E), Capture(Capture) {} 7359 // The lifetime of an init-capture is that of the closure object constructed 7519 if (!Path[I].Capture->capturesVariable()) 7784 if (!Elem.Capture->capturesVariable()) 7786 // FIXME: We can't easily tell apart an init-capture from a neste [all...] |
| SemaStmt.cpp | 4646 SmallVectorImpl<CapturedStmt::Capture> &Captures, 4648 for (const sema::Capture &Cap : RSI->Captures) { 4652 // Form the initializer for the capture. 4656 // FIXME: Bail out now if the capture is not used and the initializer has 4659 // Create a field for this capture. 4662 // Add the capture to our list of captures. 4664 Captures.push_back(CapturedStmt::Capture(Cap.getLocation(), 4668 CapturedStmt::Capture(Cap.getLocation(), CapturedStmt::VCK_VLAType)); 4670 assert(Cap.isVariableCapture() && "unknown kind of capture"); 4675 Captures.push_back(CapturedStmt::Capture(Cap.getLocation() [all...] |
| SemaOpenMP.cpp | 486 void addLoopControlVariable(const ValueDecl *D, VarDecl *Capture); 618 /// Returns the capture region at the specified level. 1302 void DSAStackTy::addLoopControlVariable(const ValueDecl *D, VarDecl *Capture) { 1307 D, LCDeclInfo(StackElem.LCVMap.size() + 1, Capture)); 2126 // capture by value. 2129 // If the variable is implicitly firstprivate and scalar - capture by 2174 // Do not capture constexpr variables. 2185 // If we are attempting to capture a global variable in a directive with 2371 // to avoid possible capture in the region. 3439 // Try to capture inner this->member references to generate correct mapping [all...] |
| /src/external/apache2/llvm/dist/clang/lib/AST/ |
| Stmt.cpp | 1265 CapturedStmt::Capture::Capture(SourceLocation Loc, VariableCaptureKind Kind, 1270 assert(!Var && "'this' capture cannot have a variable!"); 1280 "Variable-length array type capture cannot have a variable!"); 1286 CapturedStmt::Capture::getCaptureKind() const { 1290 VarDecl *CapturedStmt::Capture::getCapturedVar() const { 1292 "No variable available for 'this' or VAT capture"); 1296 CapturedStmt::Capture *CapturedStmt::getStoredCaptures() const { 1299 // Offset of the first Capture object. 1300 unsigned FirstCaptureOffset = llvm::alignTo(Size, alignof(Capture)); [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Analysis/ |
| CalledOnceCheck.cpp | 646 for (const auto &Capture : Block->captures()) { 647 if (const auto *P = dyn_cast<ParmVarDecl>(Capture.getVariable())) { 1549 // Block expressions are tricky. It is a very common practice to capture 1573 for (const auto &Capture : Block->getBlockDecl()->captures()) { 1574 if (const auto *Param = dyn_cast<ParmVarDecl>(Capture.getVariable())) {
|
| /src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| JSONNodeDumper.h | 68 // We need to capture an owning-string in the lambda because the lambda 205 void Visit(const BlockDecl::Capture &C);
|
| TextNodeDumper.h | 187 void Visit(const BlockDecl::Capture &C);
|
| Stmt.h | 940 /// The default capture kind, which is a value of type 3473 /// The different capture forms: by 'this', by reference, capture for 3482 /// Describes the capture of either a variable, or 'this', or 3484 class Capture { 3491 /// Create a new capture. 3493 /// \param Loc The source location associated with this capture. 3495 /// \param Kind The kind of capture (this, ByRef, ...). 3498 Capture(SourceLocation Loc, VariableCaptureKind Kind, 3501 /// Determine the kind of capture [all...] |
| ASTNodeTraverser.h | 54 void Visit(const BlockDecl::Capture &C); 206 void Visit(const BlockDecl::Capture &C) {
|
| Decl.h | 995 /// init-capture. 1459 /// Whether this variable is the implicit variable for a lambda init-capture. 1469 /// init-capture pack. 1484 /// Indicates the capture is a __block variable that is captured by a block 1489 /// Indicates the capture is a __block variable that is never captured by an 4120 class Capture { 4135 Capture(VarDecl *variable, bool byRef, bool nested, Expr *copy) 4143 /// Whether this is a "by ref" capture, i.e. a capture of a __block 4155 /// Whether this is a nested capture, i.e. the variable capture [all...] |
| /src/external/apache2/llvm/dist/llvm/include/llvm/Frontend/OpenMP/ |
| OMPIRBuilder.h | 901 enum AtomicKind { Read, Write, Update, Capture }; 1038 /// \return Insertion point after generated atomic capture IR.
|
| /src/external/apache2/llvm/dist/clang/tools/libclang/ |
| CIndexCodeCompletion.cpp | 740 // Create a code-completion consumer to capture the results. 745 CaptureCompletionResults Capture(Opts, *Results, &TU); 761 IncludeBriefComments, Capture,
|
| /src/external/apache2/llvm/dist/clang/lib/Frontend/ |
| ASTUnit.cpp | 643 /// there is no diagnostic client to capture them already. 1354 llvm::Optional<CaptureDroppedDiagnostics> Capture; 1356 Capture.emplace(CaptureDiagnostics, *Diagnostics, &NewPreambleDiags, 1730 CaptureDroppedDiagnostics Capture(CaptureDiagnostics, *Diags, 2175 CaptureDroppedDiagnostics Capture(CaptureDiagsKind::All,
|
| /src/external/apache2/llvm/dist/clang/lib/Serialization/ |
| ASTReaderDecl.cpp | 200 /// Class used to capture the result of searching for an existing 1556 SmallVector<BlockDecl::Capture, 16> captures; 1565 captures.push_back(BlockDecl::Capture(decl, byRef, nested, copyExpr)); 1741 using Capture = LambdaCapture; 1753 Lambda.Captures = (Capture *)Reader.getContext().Allocate( 1754 sizeof(Capture) * Lambda.NumCaptures); 1755 Capture *ToCapture = Lambda.Captures; 1765 *ToCapture++ = Capture(Loc, IsImplicit, Kind, nullptr,SourceLocation()); 1771 *ToCapture++ = Capture(Loc, IsImplicit, Kind, Var, EllipsisLoc);
|
| ASTWriter.cpp | 2007 // We add one to the size so that we capture the trailing NULL 5582 const LambdaCapture &Capture = Lambda.Captures[I]; 5583 AddSourceLocation(Capture.getLocation()); 5584 Record->push_back(Capture.isImplicit()); 5585 Record->push_back(Capture.getCaptureKind()); 5586 switch (Capture.getCaptureKind()) { 5594 Capture.capturesVariable() ? Capture.getCapturedVar() : nullptr; 5596 AddSourceLocation(Capture.isPackExpansion() ? Capture.getEllipsisLoc( [all...] |