|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
gen/tools/clang/include/clang/AST/StmtNodes.inc 109 FORSTMT(ForStmt, Stmt)
References
include/llvm/ADT/STLExtras.h 75 typename std::add_pointer<typename std::add_const<T>::type>::type;
include/llvm/Support/Casting.h 58 return To::classof(&Val);
77 return isa_impl<To, From>::doit(Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
168 using ret_type = const To &; // Normal case, return Ty&
172 using ret_type = To *; // Pointer arg case, return Ty*
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
258 return cast_convert_val<X, Y,
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
include/llvm/Support/PointerLikeTypeTraits.h 56 static inline void *getAsVoidPointer(T *P) { return P; }
57 static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
59 enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
91 typedef PointerLikeTypeTraits<T *> NonConst;
93 static inline const void *getAsVoidPointer(const T *P) {
96 static inline const T *getFromVoidPointer(const void *P) {
tools/clang/include/clang/AST/ASTTypeTraits.h 65 return ASTNodeKind(KindToKindId<T>::Id);
234 static DynTypedNode create(const T &Node) {
235 return BaseConverter<T>::create(Node);
251 const T *get() const {
252 return BaseConverter<T>::get(NodeKind, Storage.buffer);
259 const T &getUnchecked() const {
260 return BaseConverter<T>::getUnchecked(NodeKind, Storage.buffer);
394 static const T *get(ASTNodeKind NodeKind, const char Storage[]) {
395 if (ASTNodeKind::getFromNodeKind<T>().isBaseOf(NodeKind))
399 static const T &getUnchecked(ASTNodeKind NodeKind, const char Storage[]) {
401 return *cast<T>(static_cast<const BaseT *>(
474 : public DynCastPtrConverter<T, Stmt> {};
tools/clang/include/clang/AST/StmtOpenMP.h 1091 if (auto *For = dyn_cast<ForStmt>(Body)) {
1100 if (auto *For = dyn_cast<ForStmt>(Body)) {
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 110 const T *getNodeAs(StringRef ID) const {
111 return MyBoundNodes.getNodeAs<T>(ID);
1838 extern const internal::VariadicDynCastAllOfMatcher<Stmt, ForStmt> forStmt;
4419 const Stmt *const Statement = internal::GetBodyMatcher<NodeType>::get(Node);
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h 160 const T *getNodeAs(StringRef ID) const {
165 return It->second.get<T>();
302 virtual bool matches(const T &Node,
309 return matches(DynNode.getUnchecked<T>(), Finder, Builder);
345 DynTypedMatcher(MatcherInterface<T> *Implementation)
346 : SupportedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()),
436 return canConvertTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
445 template <typename T> Matcher<T> convertTo() const {
447 return unconditionalConvertTo<T>();
479 class WrapperMatcherInterface : public MatcherInterface<T> {
499 explicit Matcher(MatcherInterface<T> *Implementation)
507 typename std::enable_if<std::is_base_of<From, T>::value &&
508 !std::is_same<From, T>::value>::type * = nullptr)
520 std::is_same<T, QualType>::value &&
529 static_assert(std::is_base_of<To, T>::value, "Invalid dynCast call.");
534 bool matches(const T &Node,
581 return Other.dynCastTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
596 inline Matcher<T> makeMatcher(MatcherInterface<T> *Implementation) {
596 inline Matcher<T> makeMatcher(MatcherInterface<T> *Implementation) {
1026 bool matchesAncestorOf(const T &Node,
1030 static_assert(std::is_base_of<Decl, T>::value ||
1031 std::is_base_of<NestedNameSpecifierLoc, T>::value ||
1032 std::is_base_of<Stmt, T>::value ||
1033 std::is_base_of<TypeLoc, T>::value,
1067 using head = T1;
1073 using tail = TypeList<Ts...>;
1084 std::is_base_of<typename AnyTypeList::head, T>::value ||
1085 TypeListContainsSuperOf<typename AnyTypeList::tail, T>::value;
1146 template <typename To> operator Matcher<To>() const {
1202 operator Matcher<T>() const {
1203 static_assert(TypeListContainsSuperOf<ReturnTypes, T>::value,
1243 operator Matcher<T>() const {
1245 ast_type_traits::ASTNodeKind::getFromNodeKind<T>())
1246 .template unconditionalConvertTo<T>();
1255 class BindableMatcher : public Matcher<T> {
1257 explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {}
1258 explicit BindableMatcher(MatcherInterface<T> *Implementation)
1265 Matcher<T> bind(StringRef ID) const {
1335 template <typename T> operator Matcher<T>() const {
1337 Op, ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
1338 getMatchers<T>(std::index_sequence_for<Ps...>()))
1339 .template unconditionalConvertTo<T>();
1370 inline Matcher<T> DynTypedMatcher::unconditionalConvertTo() const {
1376 BindableMatcher<T> makeAllOfComposite(
1377 ArrayRef<const Matcher<T> *> InnerMatchers) {
1388 using PI = llvm::pointee_iterator<const Matcher<T> *const *>;
1395 ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
1397 .template unconditionalConvertTo<T>());
1408 ArrayRef<const Matcher<InnerT> *> InnerMatchers) {
1438 class HasParentMatcher : public WrapperMatcherInterface<T> {
1446 bool matches(const T &Node, ASTMatchFinder *Finder,
1458 class HasAncestorMatcher : public WrapperMatcherInterface<T> {
1466 bool matches(const T &Node, ASTMatchFinder *Finder,
1557 : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>,
1558 makeDynCastAllOfComposite<SourceT, TargetT>> {
1767 static const Stmt *get(const Ty &Node) {
tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h 199 ast_matchers::internal::Matcher<T> getTypedMatcher() const {
202 ->template convertTo<T>();
227 : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {}
228 typedef ast_matchers::internal::Matcher<T> MatcherT;
232 return DynTypedMatcher(Matcher.convertTo<T>());
tools/clang/lib/ARCMigrate/Transforms.cpp 278 bool VisitForStmt(ForStmt *S) {
tools/clang/lib/AST/ASTImporter.cpp 519 ExpectedStmt VisitForStmt(ForStmt *S);
5917 ExpectedStmt ASTNodeImporter::VisitForStmt(ForStmt *S) {
5933 return new (Importer.getToContext()) ForStmt(
tools/clang/lib/AST/ExprConstant.cpp 4537 const ForStmt *FS = cast<ForStmt>(S);
4537 const ForStmt *FS = cast<ForStmt>(S);
4715 const ForStmt *FS = cast<ForStmt>(S);
4715 const ForStmt *FS = cast<ForStmt>(S);
tools/clang/lib/AST/ParentMap.cpp 197 return DirectChild == cast<ForStmt>(P)->getCond();
tools/clang/lib/AST/StmtPrinter.cpp 321 void StmtPrinter::VisitForStmt(ForStmt *Node) {
tools/clang/lib/AST/StmtProfile.cpp 281 void StmtProfiler::VisitForStmt(const ForStmt *S) {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp 694 const internal::VariadicDynCastAllOfMatcher<Stmt, ForStmt> forStmt;
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h 75 return Value.isMatcher() && Value.getMatcher().hasTypedMatcher<T>();
78 static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) {
79 return Value.getMatcher().getTypedMatcher<T>();
83 return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
361 RetTypes.push_back(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
466 ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func,
469 DerivedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<DerivedT>()) {
778 ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT>
tools/clang/lib/Analysis/CFG.cpp 574 CFGBlock *VisitForStmt(ForStmt *F);
2231 return VisitForStmt(cast<ForStmt>(S));
3282 CFGBlock *CFGBuilder::VisitForStmt(ForStmt *F) {
5097 const VarDecl *var = cast<ForStmt>(stmt)->getConditionVariable();
5197 void VisitForStmt(ForStmt *F) {
5911 E = cast<ForStmt>(Terminator)->getCond();
tools/clang/lib/Analysis/LiveVariables.cpp 355 AddLiveStmt(val.liveStmts, LV.SSetFact, cast<ForStmt>(S)->getCond());
tools/clang/lib/Analysis/ReachableCode.cpp 636 if (const ForStmt *FS = dyn_cast<ForStmt>(LoopTarget)) {
636 if (const ForStmt *FS = dyn_cast<ForStmt>(LoopTarget)) {
tools/clang/lib/CodeGen/Address.h 108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGStmt.cpp 142 case Stmt::ForStmtClass: EmitForStmt(cast<ForStmt>(*S), Attrs); break;
859 void CodeGenFunction::EmitForStmt(const ForStmt &S,
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp 150 if (auto *For = dyn_cast<ForStmt>(Body)) {
1376 if (auto *For = dyn_cast<ForStmt>(Body)) {
tools/clang/lib/CodeGen/CodeGenFunction.cpp 1289 isa<ForStmt>(S))
1311 isa<DoStmt>(S) || isa<ForStmt>(S) || isa<CompoundStmt>(S) ||
tools/clang/lib/CodeGen/CodeGenFunction.h 2879 void EmitForStmt(const ForStmt &S,
tools/clang/lib/CodeGen/CodeGenPGO.cpp 514 void VisitForStmt(const ForStmt *S) {
tools/clang/lib/CodeGen/CoverageMappingGen.cpp 1000 void VisitForStmt(const ForStmt *S) {
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp 5427 isa<DoStmt>(S) || isa<ForStmt>(S))
5615 isa<DoStmt>(S) || isa<ForStmt>(S)) {
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp 4551 isa<DoStmt>(S) || isa<ForStmt>(S))
4717 isa<DoStmt>(S) || isa<ForStmt>(S)) {
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp 918 Range = cast<ForStmt>(Term)->getCond()->getSourceRange();
tools/clang/lib/Sema/SemaChecking.cpp14067 if (const ForStmt *FS = dyn_cast<ForStmt>(S)) {
14067 if (const ForStmt *FS = dyn_cast<ForStmt>(S)) {
tools/clang/lib/Sema/SemaDeclAttr.cpp 8140 return cast<ForStmt>(Parent)->getBody() == S;
tools/clang/lib/Sema/SemaOpenMP.cpp 6560 auto *For = dyn_cast_or_null<ForStmt>(S);
6560 auto *For = dyn_cast_or_null<ForStmt>(S);
6953 if (auto *For = dyn_cast<ForStmt>(CurStmt)) {
6953 if (auto *For = dyn_cast<ForStmt>(CurStmt)) {
6980 if (auto *For = dyn_cast<ForStmt>(CurStmt)) {
6980 if (auto *For = dyn_cast<ForStmt>(CurStmt)) {
tools/clang/lib/Sema/SemaStmt.cpp 1658 void VisitForStmt(const ForStmt *S) {
1805 ForStmt(Context, First, Second.get().second, Second.get().first, Third,
tools/clang/lib/Sema/TreeTransform.h 6945 TreeTransform<Derived>::TransformForStmt(ForStmt *S) {
tools/clang/lib/Serialization/ASTReaderStmt.cpp 293 void ASTStmtReader::VisitForStmt(ForStmt *S) {
2553 S = new (Context) ForStmt(Empty);
tools/clang/lib/Serialization/ASTWriterStmt.cpp 209 void ASTStmtWriter::VisitForStmt(ForStmt *S) {
tools/clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp 86 void VisitForStmt(ForStmt *S);
98 void checkLoopConditionForFloat(const ForStmt *FS);
194 void WalkAST::VisitForStmt(ForStmt *FS) {
243 void WalkAST::checkLoopConditionForFloat(const ForStmt *FS) {
tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp 374 const ForStmt *ForStmt1 = cast<ForStmt>(Stmt1);
374 const ForStmt *ForStmt1 = cast<ForStmt>(Stmt1);
375 const ForStmt *ForStmt2 = cast<ForStmt>(Stmt2);
375 const ForStmt *ForStmt2 = cast<ForStmt>(Stmt2);
tools/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp 248 void VisitForStmt(ForStmt *S) {
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp 677 if (cast<ForStmt>(Parent)->getBody() == S)
1054 const auto *FS = cast<ForStmt>(Term);
1054 const auto *FS = cast<ForStmt>(Term);
1242 if (const auto *FS = dyn_cast<ForStmt>(Loop))
1242 if (const auto *FS = dyn_cast<ForStmt>(Loop))
1364 return cast<ForStmt>(S)->getCond() == Cond;
1395 if (const auto *FS = dyn_cast<ForStmt>(FL))
1395 if (const auto *FS = dyn_cast<ForStmt>(FL))
1540 if (!(isa<ForStmt>(s1Start) || isa<WhileStmt>(s1Start) ||
tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp 350 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred);
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp 1940 (isa<ForStmt>(Term) || isa<WhileStmt>(Term) || isa<DoStmt>(Term))))
tools/clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp 72 return S && (isa<ForStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S));
tools/clang/lib/StaticAnalyzer/Core/LoopWidening.cpp 33 return cast<ForStmt>(LoopStmt)->getCond();
tools/clang/lib/Tooling/Refactoring/Extract/SourceExtraction.cpp 37 if (const auto *For = dyn_cast<ForStmt>(S))
37 if (const auto *For = dyn_cast<ForStmt>(S))
tools/clang/tools/extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp 78 if (const auto *ForLoop = dyn_cast<ForStmt>(LoopStmt))
78 if (const auto *ForLoop = dyn_cast<ForStmt>(LoopStmt))
tools/clang/tools/extra/clang-tidy/cert/FloatLoopCounter.cpp 26 const auto *FS = Result.Nodes.getNodeAs<ForStmt>("for");
26 const auto *FS = Result.Nodes.getNodeAs<ForStmt>("for");
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp 524 const ForStmt *Loop, RangeDescriptor Descriptor) {
655 const ForStmt *Loop,
748 ASTContext *Context, const BoundNodes &Nodes, const ForStmt *Loop,
763 const ForStmt *Loop,
813 const ForStmt *Loop;
817 if ((Loop = Nodes.getNodeAs<ForStmt>(LoopNameArray))) {
819 } else if ((Loop = Nodes.getNodeAs<ForStmt>(LoopNameIterator))) {
822 Loop = Nodes.getNodeAs<ForStmt>(LoopNamePseudoArray);
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.h 41 bool AliasFromForInit, const ForStmt *Loop,
44 StringRef getContainerString(ASTContext *Context, const ForStmt *Loop,
59 const ForStmt *Loop, LoopFixerKind FixerKind,
65 const ForStmt *Loop, LoopFixerKind FixerKind);
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp 105 bool DeclFinderASTVisitor::VisitForStmt(ForStmt *TheLoop) {
807 else if (isa<ForStmt>(CurrStmtParent)) {
808 if (cast<ForStmt>(CurrStmtParent)->getConditionVariableDeclStmt() == S)
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.h 41 typedef llvm::DenseMap<const clang::ForStmt *, const clang::VarDecl *>
197 bool VisitForStmt(clang::ForStmt *F);
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp 185 const auto *ForLoop = Result.Nodes.getNodeAs<ForStmt>(LoopCounterName);
185 const auto *ForLoop = Result.Nodes.getNodeAs<ForStmt>(LoopCounterName);
tools/clang/tools/extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp 139 if (auto S = Result.Nodes.getNodeAs<ForStmt>("for")) {
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp 229 if (isa<IfStmt>(S) || isa<ConditionalOperator>(S) || isa<ForStmt>(S) ||
tools/clang/tools/extra/clang-tidy/readability/MisleadingIndentationCheck.cpp 68 } else if (const auto *CurrentFor = dyn_cast<ForStmt>(CurrentStmt)) {
68 } else if (const auto *CurrentFor = dyn_cast<ForStmt>(CurrentStmt)) {
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp 417 return isa<ForStmt>(S) || isa<DoStmt>(S) || isa<WhileStmt>(S) ||
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp 135 isa<DoStmt>(Stmt) || isa<ForStmt>(Stmt) || isa<IfStmt>(Stmt) ||
352 if (const auto* FS = llvm::dyn_cast<ForStmt>(Outer))
352 if (const auto* FS = llvm::dyn_cast<ForStmt>(Outer))
tools/clang/tools/libclang/CIndex.cpp 1993 void VisitForStmt(const ForStmt *FS);
2610 void EnqueueVisitor::VisitForStmt(const ForStmt *FS) {
usr/include/c++/7.4.0/type_traits 215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type
326 : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
354 : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
381 : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
567 : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
581 : public __or_<is_lvalue_reference<_Tp>,
582 is_rvalue_reference<_Tp>>::type
588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
602 is_void<_Tp>>>::type
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
631 : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
798 typedef decltype(__test<_Tp>(0)) type;
811 remove_all_extents<_Tp>::type>::type
825 : public __is_destructible_safe<_Tp>::type
1447 : public __and_<is_destructible<_Tp>, integral_constant<bool,
1554 { typedef _Tp type; };
1558 { typedef _Tp type; };
1563 { typedef _Tp type; };
1574 remove_const<typename remove_volatile<_Tp>::type>::type type;
1580 { typedef _Tp const type; };
1629 { typedef _Tp type; };
1659 { typedef _Tp&& type; };
1955 { typedef _Tp type; };
1999 { typedef typename remove_reference<_Tp>::type* type; };
2003 : public __add_pointer_helper<_Tp>