|
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 1007 CONSTANTEXPR(ConstantExpr, FullExpr)
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);
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,
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) {
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;
include/llvm/Support/TrailingObjects.h 134 : public TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy,
137 typedef TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy, MoreTys...>
141 static const bool value = alignof(PrevTy) < alignof(NextTy);
162 getTrailingObjectsImpl(const BaseTy *Obj,
177 getTrailingObjectsImpl(BaseTy *Obj,
179 auto *Ptr = TopTrailingObj::getTrailingObjectsImpl(
232 BaseTy, TrailingObjects<BaseTy, TrailingTys...>,
232 BaseTy, TrailingObjects<BaseTy, TrailingTys...>,
233 BaseTy, TrailingTys...> {
242 BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
242 BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
242 BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
257 static const BaseTy *
258 getTrailingObjectsImpl(const BaseTy *Obj,
259 TrailingObjectsBase::OverloadToken<BaseTy>) {
263 static BaseTy *
264 getTrailingObjectsImpl(BaseTy *Obj,
265 TrailingObjectsBase::OverloadToken<BaseTy>) {
277 callNumTrailingObjects(const BaseTy *Obj,
278 TrailingObjectsBase::OverloadToken<BaseTy>) {
283 static size_t callNumTrailingObjects(const BaseTy *Obj,
284 TrailingObjectsBase::OverloadToken<T>) {
345 return sizeof(BaseTy) + ParentType::additionalSizeToAllocImpl(0, Counts...);
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);
259 const T &getUnchecked() const {
260 return BaseConverter<T>::getUnchecked(NodeKind, Storage.buffer);
394 static const T *get(ASTNodeKind NodeKind, const char Storage[]) {
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/Expr.h 955 private llvm::TrailingObjects<ConstantExpr, APValue, uint64_t> {
966 return ConstantExprBits.ResultKind == ConstantExpr::RSK_APValue;
969 return ConstantExprBits.ResultKind == ConstantExpr::RSK_Int64;
997 static ConstantExpr *Create(const ASTContext &Context, Expr *E,
999 static ConstantExpr *Create(const ASTContext &Context, Expr *E,
1001 static ConstantExpr *CreateEmpty(const ASTContext &Context,
tools/clang/include/clang/AST/JSONNodeDumper.h 275 void VisitConstantExpr(const ConstantExpr *CE);
tools/clang/include/clang/AST/TextNodeDumper.h 231 void VisitConstantExpr(const ConstantExpr *Node);
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 1639 extern const internal::VariadicDynCastAllOfMatcher<Stmt, ConstantExpr>
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h 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)
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>());
994 bool matchesChildOf(const T &Node, const DynTypedMatcher &Matcher,
997 static_assert(std::is_base_of<Decl, T>::value ||
998 std::is_base_of<Stmt, T>::value ||
999 std::is_base_of<NestedNameSpecifier, T>::value ||
1000 std::is_base_of<NestedNameSpecifierLoc, T>::value ||
1001 std::is_base_of<TypeLoc, T>::value ||
1002 std::is_base_of<QualType, T>::value,
1146 template <typename To> operator Matcher<To>() const {
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 {
1285 class HasMatcher : public WrapperMatcherInterface<T> {
1290 bool matches(const T &Node, ASTMatchFinder *Finder,
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) {
1557 : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>,
1558 makeDynCastAllOfComposite<SourceT, TargetT>> {
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/AST/ASTImporter.cpp 561 ExpectedStmt VisitConstantExpr(ConstantExpr *E);
6462 ExpectedStmt ASTNodeImporter::VisitConstantExpr(ConstantExpr *E) {
6475 return ConstantExpr::Create(Importer.getToContext(), ToSubExpr,
6477 return ConstantExpr::Create(Importer.getToContext(), ToSubExpr);
tools/clang/lib/AST/Expr.cpp 238 static void AssertResultStorageKind(ConstantExpr::ResultStorageKind Kind) {
244 ConstantExpr::ResultStorageKind
249 return ConstantExpr::RSK_None;
252 return ConstantExpr::RSK_Int64;
255 return ConstantExpr::RSK_APValue;
259 ConstantExpr::ResultStorageKind
262 return ConstantExpr::RSK_Int64;
263 return ConstantExpr::RSK_APValue;
270 if (StorageKind == ConstantExpr::RSK_APValue)
279 ConstantExpr *ConstantExpr::Create(const ASTContext &Context, Expr *E,
284 StorageKind == ConstantExpr::RSK_APValue,
285 StorageKind == ConstantExpr::RSK_Int64);
286 void *Mem = Context.Allocate(Size, alignof(ConstantExpr));
287 ConstantExpr *Self = new (Mem) ConstantExpr(E, StorageKind);
287 ConstantExpr *Self = new (Mem) ConstantExpr(E, StorageKind);
291 ConstantExpr *ConstantExpr::Create(const ASTContext &Context, Expr *E,
294 ConstantExpr *Self = Create(Context, E, StorageKind);
304 ConstantExpr *ConstantExpr::CreateEmpty(const ASTContext &Context,
309 StorageKind == ConstantExpr::RSK_APValue,
310 StorageKind == ConstantExpr::RSK_Int64);
311 void *Mem = Context.Allocate(Size, alignof(ConstantExpr));
312 ConstantExpr *Self = new (Mem) ConstantExpr(StorageKind, Empty);
312 ConstantExpr *Self = new (Mem) ConstantExpr(StorageKind, Empty);
341 case ConstantExpr::RSK_APValue:
343 case ConstantExpr::RSK_Int64:
353 case ConstantExpr::RSK_APValue:
355 case ConstantExpr::RSK_Int64:
359 case ConstantExpr::RSK_None:
2902 else if (auto *CE = dyn_cast<ConstantExpr>(E))
2902 else if (auto *CE = dyn_cast<ConstantExpr>(E))
3179 const Expr *Exp = cast<ConstantExpr>(this)->getSubExpr();
3412 return cast<ConstantExpr>(this)->getSubExpr()->HasSideEffects(
tools/clang/lib/AST/ExprClassification.cpp 199 return ClassifyInternal(Ctx, cast<ConstantExpr>(E)->getSubExpr());
tools/clang/lib/AST/ExprConstant.cpp 6701 bool VisitConstantExpr(const ConstantExpr *E)
9707 bool VisitConstantExpr(const ConstantExpr *E);
10487 bool IntExprEvaluator::VisitConstantExpr(const ConstantExpr *E) {
13931 return CheckICE(cast<ConstantExpr>(E)->getSubExpr(), Ctx);
tools/clang/lib/AST/ItaniumMangle.cpp 3632 E = cast<ConstantExpr>(E)->getSubExpr();
tools/clang/lib/AST/JSONNodeDumper.cpp 1273 void JSONNodeDumper::VisitConstantExpr(const ConstantExpr *CE) {
tools/clang/lib/AST/StmtPrinter.cpp 945 void StmtPrinter::VisitConstantExpr(ConstantExpr *Node) {
tools/clang/lib/AST/StmtProfile.cpp 1033 void StmtProfiler::VisitConstantExpr(const ConstantExpr *S) {
tools/clang/lib/AST/TextNodeDumper.cpp 686 void TextNodeDumper::VisitConstantExpr(const ConstantExpr *Node) {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp 670 const internal::VariadicDynCastAllOfMatcher<Stmt, ConstantExpr> constantExpr;
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>());
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 579 CFGBlock *VisitConstantExpr(ConstantExpr *E, AddStmtChoice asc);
2246 return VisitConstantExpr(cast<ConstantExpr>(S), asc);
4572 CFGBlock *CFGBuilder::VisitConstantExpr(ConstantExpr *E, AddStmtChoice asc) {
4637 E = cast<ConstantExpr>(E)->getSubExpr();
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp 239 return translate(cast<ConstantExpr>(S)->getSubExpr(), Ctx);
tools/clang/lib/CodeGen/Address.h 108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGExpr.cpp 1277 return EmitLValue(cast<ConstantExpr>(E)->getSubExpr());
tools/clang/lib/CodeGen/CGExprAgg.cpp 127 void VisitConstantExpr(ConstantExpr *E) {
tools/clang/lib/CodeGen/CGExprComplex.cpp 103 ComplexPairTy VisitConstantExpr(ConstantExpr *E) {
tools/clang/lib/CodeGen/CGExprConstant.cpp 1001 llvm::Constant *VisitConstantExpr(ConstantExpr *CE, QualType T) {
1760 ConstantLValue VisitConstantExpr(const ConstantExpr *E);
1905 ConstantLValueEmitter::VisitConstantExpr(const ConstantExpr *E) {
tools/clang/lib/CodeGen/CGExprScalar.cpp 432 Value *VisitConstantExpr(ConstantExpr *E) {
tools/clang/lib/Sema/SemaChecking.cpp12995 isConstantEvaluatedOverride, IsConstexpr || isa<ConstantExpr>(E));
tools/clang/lib/Sema/SemaDecl.cpp11277 if (auto *CE = dyn_cast<ConstantExpr>(Init))
tools/clang/lib/Sema/SemaExceptionSpec.cpp 1076 return canThrow(cast<ConstantExpr>(E)->getSubExpr());
tools/clang/lib/Sema/SemaExpr.cpp 6109 ILE->setInit(i, ConstantExpr::Create(Context, Init));
14956 if (!isa<ConstantExpr>(E))
14957 E = ConstantExpr::Create(Context, E);
14971 if (!isa<ConstantExpr>(E))
14972 E = ConstantExpr::Create(Context, E, EvalResult.Val);
16584 auto *CE = cast<ConstantExpr>(E);
16584 auto *CE = cast<ConstantExpr>(E);
16588 return ConstantExpr::Create(S.Context, Sub.get());
tools/clang/lib/Sema/SemaOverload.cpp 5604 return ConstantExpr::Create(S.Context, Result.get(), Value);
tools/clang/lib/Sema/SemaTemplateDeduction.cpp 180 else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(E))
180 else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(E))
5272 else if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(E))
5272 else if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(E))
tools/clang/lib/Serialization/ASTReaderStmt.cpp 534 void ASTStmtReader::VisitConstantExpr(ConstantExpr *E) {
538 case ConstantExpr::RSK_Int64: {
545 case ConstantExpr::RSK_APValue:
2595 S = ConstantExpr::CreateEmpty(
tools/clang/lib/Serialization/ASTWriterStmt.cpp 451 void ASTStmtWriter::VisitConstantExpr(ConstantExpr *E) {
455 case ConstantExpr::RSK_Int64:
460 case ConstantExpr::RSK_APValue:
tools/clang/lib/StaticAnalyzer/Core/Environment.cpp 48 E = cast<ConstantExpr>(E)->getSubExpr();
tools/clang/tools/libclang/CXCursor.cpp 356 return MakeCXCursor(cast<ConstantExpr>(S)->getSubExpr(),
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>