Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/test/AST/ast-dump-expr.cpp
Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Lines | void UnaryExpressions(int *p) { | ||||
// CHECK: CXXNewExpr 0x{{[^ ]*}} <line:[[@LINE-1]]:3, col:17> 'int *' Function 0x{{[^ ]*}} 'operator new' 'void *(std::size_t, void *)' | // CHECK: CXXNewExpr 0x{{[^ ]*}} <line:[[@LINE-1]]:3, col:17> 'int *' Function 0x{{[^ ]*}} 'operator new' 'void *(std::size_t, void *)' | ||||
// CHECK-NEXT: InitListExpr 0x{{[^ ]*}} <col:14, col:17> 'int' | // CHECK-NEXT: InitListExpr 0x{{[^ ]*}} <col:14, col:17> 'int' | ||||
// CHECK-NEXT: IntegerLiteral 0x{{[^ ]*}} <col:15> 'int' 12 | // CHECK-NEXT: IntegerLiteral 0x{{[^ ]*}} <col:15> 'int' 12 | ||||
// CHECK-NEXT: ImplicitCastExpr {{.*}} 'void *' <BitCast> | // CHECK-NEXT: ImplicitCastExpr {{.*}} 'void *' <BitCast> | ||||
// CHECK-NEXT: ImplicitCastExpr {{.*}} 'int *' <LValueToRValue> | // CHECK-NEXT: ImplicitCastExpr {{.*}} 'int *' <LValueToRValue> | ||||
// CHECK-NEXT: DeclRefExpr 0x{{[^ ]*}} <col:8> 'int *' lvalue ParmVar 0x{{[^ ]*}} 'p' 'int *' | // CHECK-NEXT: DeclRefExpr 0x{{[^ ]*}} <col:8> 'int *' lvalue ParmVar 0x{{[^ ]*}} 'p' 'int *' | ||||
::delete p; | ::delete p; | ||||
// CHECK: CXXDeleteExpr 0x{{[^ ]*}} <line:[[@LINE-1]]:3, col:12> 'void' global Function 0x{{[^ ]*}} 'operator delete' 'void (void *) noexcept' | // CHECK: CXXDeleteExpr 0x{{[^ ]*}} <line:[[@LINE-1]]:3, col:12> 'void' global Function 0x{{[^ ]*}} 'operator delete' 'void (void *, unsigned long) noexcept' | ||||
// CHECK-NEXT: ImplicitCastExpr | // CHECK-NEXT: ImplicitCastExpr | ||||
// CHECK-NEXT: DeclRefExpr 0x{{[^ ]*}} <col:12> 'int *' lvalue ParmVar 0x{{[^ ]*}} 'p' 'int *' | // CHECK-NEXT: DeclRefExpr 0x{{[^ ]*}} <col:12> 'int *' lvalue ParmVar 0x{{[^ ]*}} 'p' 'int *' | ||||
delete [] p; | delete [] p; | ||||
// CHECK: CXXDeleteExpr 0x{{[^ ]*}} <line:[[@LINE-1]]:3, col:13> 'void' array Function 0x{{[^ ]*}} 'operator delete[]' 'void (void *) noexcept' | // CHECK: CXXDeleteExpr 0x{{[^ ]*}} <line:[[@LINE-1]]:3, col:13> 'void' array Function 0x{{[^ ]*}} 'operator delete[]' 'void (void *) noexcept' | ||||
// CHECK-NEXT: ImplicitCastExpr | // CHECK-NEXT: ImplicitCastExpr | ||||
// CHECK-NEXT: DeclRefExpr 0x{{[^ ]*}} <col:13> 'int *' lvalue ParmVar 0x{{[^ ]*}} 'p' 'int *' | // CHECK-NEXT: DeclRefExpr 0x{{[^ ]*}} <col:13> 'int *' lvalue ParmVar 0x{{[^ ]*}} 'p' 'int *' | ||||
} | } | ||||
▲ Show 20 Lines • Show All 407 Lines • Show Last 20 Lines |