зеркало из https://github.com/microsoft/clang-1.git
Expose more statement, expression, and declaration kinds in libclang,
from Manuel Holtgrewe! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141200 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
818eafb6ac
Коммит
42b2984771
|
@ -451,6 +451,19 @@ CursorKind.USING_DIRECTIVE = CursorKind(34)
|
|||
# A C++ using declaration
|
||||
CursorKind.USING_DECLARATION = CursorKind(35)
|
||||
|
||||
# A Type alias decl.
|
||||
CursorKind.TYPE_ALIAS_DECL = CursorKind(36)
|
||||
|
||||
# A Objective-C synthesize decl
|
||||
CursorKind.OBJC_SYNTHESIZE_DECL = CursorKind(37)
|
||||
|
||||
# A Objective-C dynamic decl
|
||||
CursorKind.OBJC_DYNAMIC_DECL = CursorKind(38)
|
||||
|
||||
# A C++ access specifier decl.
|
||||
CursorKind.CXX_ACCESS_SPEC_DECL = CursorKind(39)
|
||||
|
||||
|
||||
###
|
||||
# Reference Kinds
|
||||
|
||||
|
@ -524,6 +537,154 @@ CursorKind.OBJC_MESSAGE_EXPR = CursorKind(104)
|
|||
# An expression that represents a block literal.
|
||||
CursorKind.BLOCK_EXPR = CursorKind(105)
|
||||
|
||||
# An integer literal.
|
||||
CursorKind.INTEGER_LITERAL = CursorKind(106)
|
||||
|
||||
# A floating point number literal.
|
||||
CursorKind.FLOATING_LITERAL = CursorKind(107)
|
||||
|
||||
# An imaginary number literal.
|
||||
CursorKind.IMAGINARY_LITERAL = CursorKind(108)
|
||||
|
||||
# A string literal.
|
||||
CursorKind.STRING_LITERAL = CursorKind(109)
|
||||
|
||||
# A character literal.
|
||||
CursorKind.CHARACTER_LITERAL = CursorKind(110)
|
||||
|
||||
# A parenthesized expression, e.g. "(1)".
|
||||
#
|
||||
# This AST node is only formed if full location information is requested.
|
||||
CursorKind.PAREN_EXPR = CursorKind(111)
|
||||
|
||||
# This represents the unary-expression's (except sizeof and
|
||||
# alignof).
|
||||
CursorKind.UNARY_OPERATOR = CursorKind(112)
|
||||
|
||||
# [C99 6.5.2.1] Array Subscripting.
|
||||
CursorKind.ARRAY_SUBSCRIPT_EXPR = CursorKind(113)
|
||||
|
||||
# A builtin binary operation expression such as "x + y" or
|
||||
# "x <= y".
|
||||
CursorKind.BINARY_OPERATOR = CursorKind(114)
|
||||
|
||||
# Compound assignment such as "+=".
|
||||
CursorKind.COMPOUND_ASSIGNMENT_OPERATOR = CursorKind(115)
|
||||
|
||||
# The ?: ternary operator.
|
||||
CursorKind.CONDITONAL_OPERATOR = CursorKind(116)
|
||||
|
||||
# An explicit cast in C (C99 6.5.4) or a C-style cast in C++
|
||||
# (C++ [expr.cast]), which uses the syntax (Type)expr.
|
||||
#
|
||||
# For example: (int)f.
|
||||
CursorKind.CSTYLE_CAST_EXPR = CursorKind(117)
|
||||
|
||||
# [C99 6.5.2.5]
|
||||
CursorKind.COMPOUND_LITERAL_EXPR = CursorKind(118)
|
||||
|
||||
# Describes an C or C++ initializer list.
|
||||
CursorKind.INIT_LIST_EXPR = CursorKind(119)
|
||||
|
||||
# The GNU address of label extension, representing &&label.
|
||||
CursorKind.ADDR_LABEL_EXPR = CursorKind(120)
|
||||
|
||||
# This is the GNU Statement Expression extension: ({int X=4; X;})
|
||||
CursorKind.StmtExpr = CursorKind(121)
|
||||
|
||||
# Represents a C1X generic selection.
|
||||
CursorKind.GENERIC_SELECTION_EXPR = CursorKind(122)
|
||||
|
||||
# Implements the GNU __null extension, which is a name for a null
|
||||
# pointer constant that has integral type (e.g., int or long) and is the same
|
||||
# size and alignment as a pointer.
|
||||
#
|
||||
# The __null extension is typically only used by system headers, which define
|
||||
# NULL as __null in C++ rather than using 0 (which is an integer that may not
|
||||
# match the size of a pointer).
|
||||
CursorKind.GNU_NULL_EXPR = CursorKind(123)
|
||||
|
||||
# C++'s static_cast<> expression.
|
||||
CursorKind.CXX_STATIC_CAST_EXPR = CursorKind(124)
|
||||
|
||||
# C++'s dynamic_cast<> expression.
|
||||
CursorKind.CXX_DYNAMIC_CAST_EXPR = CursorKind(125)
|
||||
|
||||
# C++'s reinterpret_cast<> expression.
|
||||
CursorKind.CXX_REINTERPRET_CAST_EXPR = CursorKind(126)
|
||||
|
||||
# C++'s const_cast<> expression.
|
||||
CursorKind.CXX_CONST_CAST_EXPR = CursorKind(127)
|
||||
|
||||
# Represents an explicit C++ type conversion that uses "functional"
|
||||
# notion (C++ [expr.type.conv]).
|
||||
#
|
||||
# Example:
|
||||
# \code
|
||||
# x = int(0.5);
|
||||
# \endcode
|
||||
CursorKind.CXX_FUNCTIONAL_CAST_EXPR = CursorKind(128)
|
||||
|
||||
# A C++ typeid expression (C++ [expr.typeid]).
|
||||
CursorKind.CXX_TYPEID_EXPR = CursorKind(129)
|
||||
|
||||
# [C++ 2.13.5] C++ Boolean Literal.
|
||||
CursorKind.CXX_BOOL_LITERAL_EXPR = CursorKind(130)
|
||||
|
||||
# [C++0x 2.14.7] C++ Pointer Literal.
|
||||
CursorKind.CXX_NULL_PTR_LITERAL_EXPR = CursorKind(131)
|
||||
|
||||
# Represents the "this" expression in C++
|
||||
CursorKind.CXX_THIS_EXPR = CursorKind(132)
|
||||
|
||||
# [C++ 15] C++ Throw Expression.
|
||||
#
|
||||
# This handles 'throw' and 'throw' assignment-expression. When
|
||||
# assignment-expression isn't present, Op will be null.
|
||||
CursorKind.CXX_THROW_EXPR = CursorKind(133)
|
||||
|
||||
# A new expression for memory allocation and constructor calls, e.g:
|
||||
# "new CXXNewExpr(foo)".
|
||||
CursorKind.CXX_NEW_EXPR = CursorKind(134)
|
||||
|
||||
# A delete expression for memory deallocation and destructor calls,
|
||||
# e.g. "delete[] pArray".
|
||||
CursorKind.CXX_DELETE_EXPR = CursorKind(135)
|
||||
|
||||
# Represents a unary expression.
|
||||
CursorKind.CXX_UNARY_EXPR = CursorKind(136)
|
||||
|
||||
# ObjCStringLiteral, used for Objective-C string literals i.e. "foo".
|
||||
CursorKind.OBJC_STRING_LITERAL = CursorKind(137)
|
||||
|
||||
# ObjCEncodeExpr, used for in Objective-C.
|
||||
CursorKind.OBJC_ENCODE_EXPR = CursorKind(138)
|
||||
|
||||
# ObjCSelectorExpr used for in Objective-C.
|
||||
CursorKind.OBJC_SELECTOR_EXPR = CursorKind(139)
|
||||
|
||||
# Objective-C's protocol expression.
|
||||
CursorKind.OBJC_PROTOCOL_EXPR = CursorKind(140)
|
||||
|
||||
# An Objective-C "bridged" cast expression, which casts between
|
||||
# Objective-C pointers and C pointers, transferring ownership in the process.
|
||||
#
|
||||
# \code
|
||||
# NSString *str = (__bridge_transfer NSString *)CFCreateString();
|
||||
# \endcode
|
||||
CursorKind.OBJC_BRIDGE_CAST_EXPR = CursorKind(141)
|
||||
|
||||
# Represents a C++0x pack expansion that produces a sequence of
|
||||
# expressions.
|
||||
#
|
||||
# A pack expansion expression contains a pattern (which itself is an
|
||||
# expression) followed by an ellipsis. For example:
|
||||
CursorKind.PACK_EXPANSION_EXPR = CursorKind(142)
|
||||
|
||||
# Represents an expression that computes the length of a parameter
|
||||
# pack.
|
||||
CursorKind.SIZE_OF_PACK_EXPR = CursorKind(143)
|
||||
|
||||
# A statement whose specific kind is not exposed via this interface.
|
||||
#
|
||||
# Unexposed statements have the same operations as any other kind of statement;
|
||||
|
@ -534,6 +695,92 @@ CursorKind.UNEXPOSED_STMT = CursorKind(200)
|
|||
# A labelled statement in a function.
|
||||
CursorKind.LABEL_STMT = CursorKind(201)
|
||||
|
||||
# A compound statement
|
||||
CursorKind.COMPOUND_STMT = CursorKind(202)
|
||||
|
||||
# A case statement.
|
||||
CursorKind.CASE_STMT = CursorKind(203)
|
||||
|
||||
# A default statement.
|
||||
CursorKind.DEFAULT_STMT = CursorKind(204)
|
||||
|
||||
# An if statement.
|
||||
CursorKind.IF_STMT = CursorKind(205)
|
||||
|
||||
# A switch statement.
|
||||
CursorKind.SWITCH_STMT = CursorKind(206)
|
||||
|
||||
# A while statement.
|
||||
CursorKind.WHILE_STMT = CursorKind(207)
|
||||
|
||||
# A do statement.
|
||||
CursorKind.DO_STMT = CursorKind(208)
|
||||
|
||||
# A for statement.
|
||||
CursorKind.FOR_STMT = CursorKind(209)
|
||||
|
||||
# A goto statement.
|
||||
CursorKind.GOTO_STMT = CursorKind(210)
|
||||
|
||||
# An indirect goto statement.
|
||||
CursorKind.INDIRECT_GOTO_STMT = CursorKind(211)
|
||||
|
||||
# A continue statement.
|
||||
CursorKind.CONTINUE_STMT = CursorKind(212)
|
||||
|
||||
# A break statement.
|
||||
CursorKind.BREAK_STMT = CursorKind(213)
|
||||
|
||||
# A return statement.
|
||||
CursorKind.RETURN_STMT = CursorKind(214)
|
||||
|
||||
# A GNU-style inline assembler statement.
|
||||
CursorKind.ASM_STMT = CursorKind(215)
|
||||
|
||||
# Objective-C's overall @try-@catch-@finally statement.
|
||||
CursorKind.OBJC_AT_TRY_STMT = CursorKind(216)
|
||||
|
||||
# Objective-C's @catch statement.
|
||||
CursorKind.OBJC_AT_CATCH_STMT = CursorKind(217)
|
||||
|
||||
# Objective-C's @finally statement.
|
||||
CursorKind.OBJC_AT_FINALLY_STMT = CursorKind(218)
|
||||
|
||||
# Objective-C's @throw statement.
|
||||
CursorKind.OBJC_AT_THROW_STMT = CursorKind(219)
|
||||
|
||||
# Objective-C's @synchronized statement.
|
||||
CursorKind.OBJC_AT_SYNCHRONIZED_STMT = CursorKind(220)
|
||||
|
||||
# Objective-C's autorealease pool statement.
|
||||
CursorKind.OBJC_AUTORELEASE_POOL_STMT = CursorKind(221)
|
||||
|
||||
# Objective-C's for collection statement.
|
||||
CursorKind.OBJC_FOR_COLLECTION_STMT = CursorKind(222)
|
||||
|
||||
# C++'s catch statement.
|
||||
CursorKind.CXX_CATCH_STMT = CursorKind(223)
|
||||
|
||||
# C++'s try statement.
|
||||
CursorKind.CXX_TRY_STMT = CursorKind(224)
|
||||
|
||||
# C++'s for (* : *) statement.
|
||||
CursorKind.CXX_FOR_RANGE_STMT = CursorKind(225)
|
||||
|
||||
# Windows Structured Exception Handling's try statement.
|
||||
CursorKind.SEH_TRY_STMT = CursorKind(226)
|
||||
|
||||
# Windows Structured Exception Handling's except statement.
|
||||
CursorKind.SEH_EXCEPT_STMT = CursorKind(227)
|
||||
|
||||
# Windows Structured Exception Handling's finally statement.
|
||||
CursorKind.SEH_FINALLY_STMT = CursorKind(228)
|
||||
|
||||
# The null statement.
|
||||
CursorKind.NULL_STMT = CursorKind(230)
|
||||
|
||||
# Adaptor class for mixing declarations with statements and expressions.
|
||||
CursorKind.DECL_STMT = CursorKind(231)
|
||||
|
||||
###
|
||||
# Other Kinds
|
||||
|
@ -616,7 +863,9 @@ class Cursor(Structure):
|
|||
# FIXME: clang_getCursorSpelling should be fixed to not assert on
|
||||
# this, for consistency with clang_getCursorUSR.
|
||||
return None
|
||||
return Cursor_spelling(self)
|
||||
if not hasattr(self, '_spelling'):
|
||||
self._spelling = Cursor_spelling(self)
|
||||
return self._spelling
|
||||
|
||||
@property
|
||||
def displayname(self):
|
||||
|
@ -627,7 +876,9 @@ class Cursor(Structure):
|
|||
such as the parameters of a function or template or the arguments of a
|
||||
class template specialization.
|
||||
"""
|
||||
return Cursor_displayname(self)
|
||||
if not hasattr(self, '_displayname'):
|
||||
self._displayname = Cursor_displayname(self)
|
||||
return self._displayname
|
||||
|
||||
@property
|
||||
def location(self):
|
||||
|
@ -635,7 +886,9 @@ class Cursor(Structure):
|
|||
Return the source location (the starting character) of the entity
|
||||
pointed at by the cursor.
|
||||
"""
|
||||
return Cursor_loc(self)
|
||||
if not hasattr(self, '_loc'):
|
||||
self._loc = Cursor_loc(self)
|
||||
return self._loc
|
||||
|
||||
@property
|
||||
def extent(self):
|
||||
|
@ -643,7 +896,9 @@ class Cursor(Structure):
|
|||
Return the source range (the range of text) occupied by the entity
|
||||
pointed at by the cursor.
|
||||
"""
|
||||
return Cursor_extent(self)
|
||||
if not hasattr(self, '_extent'):
|
||||
self._extent = Cursor_extent(self)
|
||||
return self._extent
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
|
@ -651,7 +906,9 @@ class Cursor(Structure):
|
|||
Retrieve the type (if any) of of the entity pointed at by the
|
||||
cursor.
|
||||
"""
|
||||
return Cursor_type(self)
|
||||
if not hasattr(self, '_type'):
|
||||
self._type = Cursor_type(self)
|
||||
return self._type
|
||||
|
||||
def get_children(self):
|
||||
"""Return an iterator for accessing the children of this cursor."""
|
||||
|
|
|
@ -1311,6 +1311,7 @@ enum CXCursorKind {
|
|||
CXCursor_ObjCDynamicDecl = 38,
|
||||
/** \brief An access specifier. */
|
||||
CXCursor_CXXAccessSpecifier = 39,
|
||||
|
||||
CXCursor_FirstDecl = CXCursor_UnexposedDecl,
|
||||
CXCursor_LastDecl = CXCursor_CXXAccessSpecifier,
|
||||
|
||||
|
@ -1451,7 +1452,207 @@ enum CXCursorKind {
|
|||
/** \brief An expression that represents a block literal. */
|
||||
CXCursor_BlockExpr = 105,
|
||||
|
||||
CXCursor_LastExpr = 105,
|
||||
/** \brief An integer literal.
|
||||
*/
|
||||
CXCursor_IntegerLiteral = 106,
|
||||
|
||||
/** \brief A floating point number literal.
|
||||
*/
|
||||
CXCursor_FloatingLiteral = 107,
|
||||
|
||||
/** \brief An imaginary number literal.
|
||||
*/
|
||||
CXCursor_ImaginaryLiteral = 108,
|
||||
|
||||
/** \brief A string literal.
|
||||
*/
|
||||
CXCursor_StringLiteral = 109,
|
||||
|
||||
/** \brief A character literal.
|
||||
*/
|
||||
CXCursor_CharacterLiteral = 110,
|
||||
|
||||
/** \brief A parenthesized expression, e.g. "(1)".
|
||||
*
|
||||
* This AST node is only formed if full location information is requested.
|
||||
*/
|
||||
CXCursor_ParenExpr = 111,
|
||||
|
||||
/** \brief This represents the unary-expression's (except sizeof and
|
||||
* alignof).
|
||||
*/
|
||||
CXCursor_UnaryOperator = 112,
|
||||
|
||||
/** \brief [C99 6.5.2.1] Array Subscripting.
|
||||
*/
|
||||
CXCursor_ArraySubscriptExpr = 113,
|
||||
|
||||
/** \brief A builtin binary operation expression such as "x + y" or
|
||||
* "x <= y".
|
||||
*/
|
||||
CXCursor_BinaryOperator = 114,
|
||||
|
||||
/** \brief Compound assignment such as "+=".
|
||||
*/
|
||||
CXCursor_CompoundAssignOperator = 115,
|
||||
|
||||
/** \brief The ?: ternary operator.
|
||||
*/
|
||||
CXCursor_ConditionalOperator = 116,
|
||||
|
||||
/** \brief An explicit cast in C (C99 6.5.4) or a C-style cast in C++
|
||||
* (C++ [expr.cast]), which uses the syntax (Type)expr.
|
||||
*
|
||||
* For example: (int)f.
|
||||
*/
|
||||
CXCursor_CStyleCastExpr = 117,
|
||||
|
||||
/** \brief [C99 6.5.2.5]
|
||||
*/
|
||||
CXCursor_CompoundLiteralExpr = 118,
|
||||
|
||||
/** \brief Describes an C or C++ initializer list.
|
||||
*/
|
||||
CXCursor_InitListExpr = 119,
|
||||
|
||||
/** \brief The GNU address of label extension, representing &&label.
|
||||
*/
|
||||
CXCursor_AddrLabelExpr = 120,
|
||||
|
||||
/** \brief This is the GNU Statement Expression extension: ({int X=4; X;})
|
||||
*/
|
||||
CXCursor_StmtExpr = 121,
|
||||
|
||||
/** \brief Represents a C1X generic selection.
|
||||
*/
|
||||
CXCursor_GenericSelectionExpr = 122,
|
||||
|
||||
/** \brief Implements the GNU __null extension, which is a name for a null
|
||||
* pointer constant that has integral type (e.g., int or long) and is the same
|
||||
* size and alignment as a pointer.
|
||||
*
|
||||
* The __null extension is typically only used by system headers, which define
|
||||
* NULL as __null in C++ rather than using 0 (which is an integer that may not
|
||||
* match the size of a pointer).
|
||||
*/
|
||||
CXCursor_GNUNullExpr = 123,
|
||||
|
||||
/** \brief C++'s static_cast<> expression.
|
||||
*/
|
||||
CXCursor_CXXStaticCastExpr = 124,
|
||||
|
||||
/** \brief C++'s dynamic_cast<> expression.
|
||||
*/
|
||||
CXCursor_CXXDynamicCastExpr = 125,
|
||||
|
||||
/** \brief C++'s reinterpret_cast<> expression.
|
||||
*/
|
||||
CXCursor_CXXReinterpretCastExpr = 126,
|
||||
|
||||
/** \brief C++'s const_cast<> expression.
|
||||
*/
|
||||
CXCursor_CXXConstCastExpr = 127,
|
||||
|
||||
/** \brief Represents an explicit C++ type conversion that uses "functional"
|
||||
* notion (C++ [expr.type.conv]).
|
||||
*
|
||||
* Example:
|
||||
* \code
|
||||
* x = int(0.5);
|
||||
* \endcode
|
||||
*/
|
||||
CXCursor_CXXFunctionalCastExpr = 128,
|
||||
|
||||
/** \brief A C++ typeid expression (C++ [expr.typeid]).
|
||||
*/
|
||||
CXCursor_CXXTypeidExpr = 129,
|
||||
|
||||
/** \brief [C++ 2.13.5] C++ Boolean Literal.
|
||||
*/
|
||||
CXCursor_CXXBoolLiteralExpr = 130,
|
||||
|
||||
/** \brief [C++0x 2.14.7] C++ Pointer Literal.
|
||||
*/
|
||||
CXCursor_CXXNullPtrLiteralExpr = 131,
|
||||
|
||||
/** \brief Represents the "this" expression in C++
|
||||
*/
|
||||
CXCursor_CXXThisExpr = 132,
|
||||
|
||||
/** \brief [C++ 15] C++ Throw Expression.
|
||||
*
|
||||
* This handles 'throw' and 'throw' assignment-expression. When
|
||||
* assignment-expression isn't present, Op will be null.
|
||||
*/
|
||||
CXCursor_CXXThrowExpr = 133,
|
||||
|
||||
/** \brief A new expression for memory allocation and constructor calls, e.g:
|
||||
* "new CXXNewExpr(foo)".
|
||||
*/
|
||||
CXCursor_CXXNewExpr = 134,
|
||||
|
||||
/** \brief A delete expression for memory deallocation and destructor calls,
|
||||
* e.g. "delete[] pArray".
|
||||
*/
|
||||
CXCursor_CXXDeleteExpr = 135,
|
||||
|
||||
/** \brief A unary expression.
|
||||
*/
|
||||
CXCursor_UnaryExpr = 136,
|
||||
|
||||
/** \brief ObjCStringLiteral, used for Objective-C string literals i.e. "foo".
|
||||
*/
|
||||
CXCursor_ObjCStringLiteral = 137,
|
||||
|
||||
/** \brief ObjCEncodeExpr, used for in Objective-C.
|
||||
*/
|
||||
CXCursor_ObjCEncodeExpr = 138,
|
||||
|
||||
/** \brief ObjCSelectorExpr used for in Objective-C.
|
||||
*/
|
||||
CXCursor_ObjCSelectorExpr = 139,
|
||||
|
||||
/** \brief Objective-C's protocol expression.
|
||||
*/
|
||||
CXCursor_ObjCProtocolExpr = 140,
|
||||
|
||||
/** \brief An Objective-C "bridged" cast expression, which casts between
|
||||
* Objective-C pointers and C pointers, transferring ownership in the process.
|
||||
*
|
||||
* \code
|
||||
* NSString *str = (__bridge_transfer NSString *)CFCreateString();
|
||||
* \endcode
|
||||
*/
|
||||
CXCursor_ObjCBridgedCastExpr = 141,
|
||||
|
||||
/** \brief Represents a C++0x pack expansion that produces a sequence of
|
||||
* expressions.
|
||||
*
|
||||
* A pack expansion expression contains a pattern (which itself is an
|
||||
* expression) followed by an ellipsis. For example:
|
||||
*
|
||||
* \code
|
||||
* template<typename F, typename ...Types>
|
||||
* void forward(F f, Types &&...args) {
|
||||
* f(static_cast<Types&&>(args)...);
|
||||
* }
|
||||
* \endcode
|
||||
*/
|
||||
CXCursor_PackExpansionExpr = 142,
|
||||
|
||||
/** \brief Represents an expression that computes the length of a parameter
|
||||
* pack.
|
||||
*
|
||||
* \code
|
||||
* template<typename ...Types>
|
||||
* struct count {
|
||||
* static const unsigned value = sizeof...(Types);
|
||||
* };
|
||||
* \endcode
|
||||
*/
|
||||
CXCursor_SizeOfPackExpr = 143,
|
||||
|
||||
CXCursor_LastExpr = CXCursor_SizeOfPackExpr,
|
||||
|
||||
/* Statements */
|
||||
CXCursor_FirstStmt = 200,
|
||||
|
@ -1478,8 +1679,130 @@ enum CXCursorKind {
|
|||
*
|
||||
*/
|
||||
CXCursor_LabelStmt = 201,
|
||||
|
||||
CXCursor_LastStmt = CXCursor_LabelStmt,
|
||||
|
||||
/** \brief A group of statements like { stmt stmt }.
|
||||
*
|
||||
* This cursor kind is used to describe compound statements, e.g. function
|
||||
* bodies.
|
||||
*/
|
||||
CXCursor_CompoundStmt = 202,
|
||||
|
||||
/** \brief A case statment.
|
||||
*/
|
||||
CXCursor_CaseStmt = 203,
|
||||
|
||||
/** \brief A default statement.
|
||||
*/
|
||||
CXCursor_DefaultStmt = 204,
|
||||
|
||||
/** \brief An if statement
|
||||
*/
|
||||
CXCursor_IfStmt = 205,
|
||||
|
||||
/** \brief A switch statement.
|
||||
*/
|
||||
CXCursor_SwitchStmt = 206,
|
||||
|
||||
/** \brief A while statement.
|
||||
*/
|
||||
CXCursor_WhileStmt = 207,
|
||||
|
||||
/** \brief A do statement.
|
||||
*/
|
||||
CXCursor_DoStmt = 208,
|
||||
|
||||
/** \brief A for statement.
|
||||
*/
|
||||
CXCursor_ForStmt = 209,
|
||||
|
||||
/** \brief A goto statement.
|
||||
*/
|
||||
CXCursor_GotoStmt = 210,
|
||||
|
||||
/** \brief An indirect goto statement.
|
||||
*/
|
||||
CXCursor_IndirectGotoStmt = 211,
|
||||
|
||||
/** \brief A continue statement.
|
||||
*/
|
||||
CXCursor_ContinueStmt = 212,
|
||||
|
||||
/** \brief A break statement.
|
||||
*/
|
||||
CXCursor_BreakStmt = 213,
|
||||
|
||||
/** \brief A return statement.
|
||||
*/
|
||||
CXCursor_ReturnStmt = 214,
|
||||
|
||||
/** \brief A GNU inline assembly statement extension.
|
||||
*/
|
||||
CXCursor_AsmStmt = 215,
|
||||
|
||||
/** \brief Objective-C's overall @try-@catc-@finall statement.
|
||||
*/
|
||||
CXCursor_ObjCAtTryStmt = 216,
|
||||
|
||||
/** \brief Objective-C's @catch statement.
|
||||
*/
|
||||
CXCursor_ObjCAtCatchStmt = 217,
|
||||
|
||||
/** \brief Objective-C's @finally statement.
|
||||
*/
|
||||
CXCursor_ObjCAtFinallyStmt = 218,
|
||||
|
||||
/** \brief Objective-C's @throw statement.
|
||||
*/
|
||||
CXCursor_ObjCAtThrowStmt = 219,
|
||||
|
||||
/** \brief Objective-C's @synchronized statement.
|
||||
*/
|
||||
CXCursor_ObjCAtSynchronizedStmt = 220,
|
||||
|
||||
/** \brief Objective-C's autorelease pool statement.
|
||||
*/
|
||||
CXCursor_ObjCAutoreleasePoolStmt = 221,
|
||||
|
||||
/** \brief Objective-C's collection statement.
|
||||
*/
|
||||
CXCursor_ObjCForCollectionStmt = 222,
|
||||
|
||||
/** \brief C++'s catch statement.
|
||||
*/
|
||||
CXCursor_CXXCatchStmt = 223,
|
||||
|
||||
/** \brief C++'s try statement.
|
||||
*/
|
||||
CXCursor_CXXTryStmt = 224,
|
||||
|
||||
/** \brief C++'s for (* : *) statement.
|
||||
*/
|
||||
CXCursor_CXXForRangeStmt = 225,
|
||||
|
||||
/** \brief Windows Structured Exception Handling's try statement.
|
||||
*/
|
||||
CXCursor_SEHTryStmt = 226,
|
||||
|
||||
/** \brief Windows Structured Exception Handling's except statement.
|
||||
*/
|
||||
CXCursor_SEHExceptStmt = 227,
|
||||
|
||||
/** \brief Windows Structured Exception Handling's finally statement.
|
||||
*/
|
||||
CXCursor_SEHFinallyStmt = 228,
|
||||
|
||||
/** \brief The null satement ";": C99 6.8.3p3.
|
||||
*
|
||||
* This cursor kind is used to describe the null statement.
|
||||
*/
|
||||
CXCursor_NullStmt = 230,
|
||||
|
||||
/** \brief Adaptor class for mixing declarations with statements and
|
||||
* expressions.
|
||||
*/
|
||||
CXCursor_DeclStmt = 231,
|
||||
|
||||
CXCursor_LastStmt = CXCursor_DeclStmt,
|
||||
|
||||
/**
|
||||
* \brief Cursor that represents the translation unit itself.
|
||||
|
|
|
@ -25,7 +25,7 @@ void function(Foo * arg)
|
|||
// CHECK-scan: [13:15 - 13:18] ObjCClassRef=Foo:10:12
|
||||
// CHECK-scan: [13:18 - 13:24] ParmDecl=arg:13:21 (Definition)
|
||||
// CHECK-scan: [13:24 - 14:1] FunctionDecl=function:13:6 (Definition)
|
||||
// CHECK-scan: [14:1 - 16:2] UnexposedStmt=
|
||||
// CHECK-scan: [14:1 - 16:2] CompoundStmt=
|
||||
|
||||
// CHECK-load: TestClassDecl.m:10:12: ObjCInterfaceDecl=Foo:10:12 Extent=[10:1 - 11:5]
|
||||
// CHECK-load: TestClassDecl.m:13:6: FunctionDecl=function:13:6 (Definition) Extent=[13:1 - 16:2]
|
||||
|
|
|
@ -20,7 +20,7 @@ void function(Foo * arg)
|
|||
// CHECK-scan: [10:15 - 10:18] ObjCClassRef=Foo:8:8
|
||||
// CHECK-scan: [10:18 - 10:24] ParmDecl=arg:10:21 (Definition)
|
||||
// CHECK-scan: [10:24 - 11:1] FunctionDecl=function:10:6 (Definition)
|
||||
// CHECK-scan: [11:1 - 13:2] UnexposedStmt=
|
||||
// CHECK: [11:1 - 13:2] CompundStmt=
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -200,7 +200,7 @@ struct X9 : X8 {
|
|||
// CHECK: Punctuation: "::" [35:30 - 35:32] VarDecl=max_size:35:32 (Definition)
|
||||
// CHECK: Identifier: "max_size" [35:32 - 35:40] VarDecl=max_size:35:32 (Definition)
|
||||
// CHECK: Punctuation: "=" [35:41 - 35:42] VarDecl=max_size:35:32 (Definition)
|
||||
// CHECK: Literal: "17" [35:43 - 35:45] UnexposedExpr=
|
||||
// CHECK: Literal: "17" [35:43 - 35:45] IntegerLiteral=
|
||||
// CHECK: Punctuation: ";" [35:45 - 35:46]
|
||||
|
||||
// CHECK: Keyword: "using" [40:3 - 40:8] UsingDeclaration=iterator:40:46
|
||||
|
@ -250,56 +250,56 @@ struct X9 : X8 {
|
|||
|
||||
// Pseudo-destructor
|
||||
// CHECK: Identifier: "t" [57:5 - 57:6] DeclRefExpr=t:56:13
|
||||
// CHECK: Punctuation: "->" [57:6 - 57:8] UnexposedExpr=
|
||||
// CHECK: Punctuation: "::" [57:8 - 57:10] UnexposedExpr=
|
||||
// CHECK: Punctuation: "->" [57:6 - 57:8] MemberRefExpr=
|
||||
// CHECK: Punctuation: "::" [57:8 - 57:10] MemberRefExpr=
|
||||
// CHECK: Identifier: "outer_alias" [57:10 - 57:21] NamespaceRef=outer_alias:10:11
|
||||
// CHECK: Punctuation: "::" [57:21 - 57:23] UnexposedExpr=
|
||||
// CHECK: Punctuation: "::" [57:21 - 57:23] MemberRefExpr=
|
||||
// CHECK: Identifier: "inner" [57:23 - 57:28] NamespaceRef=inner:45:13
|
||||
// CHECK: Punctuation: "::" [57:28 - 57:30] UnexposedExpr=
|
||||
// CHECK: Keyword: "template" [57:30 - 57:38] UnexposedExpr=
|
||||
// CHECK: Punctuation: "::" [57:28 - 57:30] MemberRefExpr=
|
||||
// CHECK: Keyword: "template" [57:30 - 57:38] MemberRefExpr=
|
||||
// CHECK: Identifier: "vector" [57:39 - 57:45] TemplateRef=vector:4:12
|
||||
// CHECK: Punctuation: "<" [57:45 - 57:46] UnexposedExpr=
|
||||
// CHECK: Punctuation: "<" [57:45 - 57:46] MemberRefExpr=
|
||||
// CHECK: Identifier: "T" [57:46 - 57:47] TypeRef=T:54:19
|
||||
// CHECK: Punctuation: ">" [57:47 - 57:48] UnexposedExpr=
|
||||
// CHECK: Punctuation: "::" [57:48 - 57:50] UnexposedExpr=
|
||||
// CHECK: Punctuation: "~" [57:50 - 57:51] UnexposedExpr=
|
||||
// CHECK: Punctuation: ">" [57:47 - 57:48] MemberRefExpr=
|
||||
// CHECK: Punctuation: "::" [57:48 - 57:50] MemberRefExpr=
|
||||
// CHECK: Punctuation: "~" [57:50 - 57:51] MemberRefExpr=
|
||||
// CHECK: Identifier: "vector" [57:51 - 57:57] TemplateRef=vector:4:12
|
||||
// CHECK: Punctuation: "<" [57:57 - 57:58] UnexposedExpr=
|
||||
// CHECK: Punctuation: "<" [57:57 - 57:58] MemberRefExpr=
|
||||
// CHECK: Identifier: "T" [57:58 - 57:59] TypeRef=T:54:19
|
||||
// CHECK: Punctuation: ">" [57:59 - 57:60] CallExpr=
|
||||
// CHECK: Punctuation: "(" [57:60 - 57:61] CallExpr=
|
||||
// CHECK: Punctuation: ")" [57:61 - 57:62] CallExpr=
|
||||
|
||||
// Unresolved member and non-member references
|
||||
// CHECK: Punctuation: "::" [75:5 - 75:7] UnexposedExpr=[63:10, 64:10]
|
||||
// CHECK: Punctuation: "::" [75:5 - 75:7] DeclRefExpr=[63:10, 64:10]
|
||||
// CHECK: Identifier: "outer_alias" [75:7 - 75:18] NamespaceRef=outer_alias:10:11
|
||||
// CHECK: Punctuation: "::" [75:18 - 75:20] UnexposedExpr=[63:10, 64:10]
|
||||
// CHECK: Punctuation: "::" [75:18 - 75:20] DeclRefExpr=[63:10, 64:10]
|
||||
// CHECK: Identifier: "inner" [75:20 - 75:25] NamespaceRef=inner:62:13
|
||||
// CHECK: Punctuation: "::" [75:25 - 75:27] UnexposedExpr=[63:10, 64:10]
|
||||
// CHECK: Punctuation: "::" [75:25 - 75:27] DeclRefExpr=[63:10, 64:10]
|
||||
// CHECK: Identifier: "f" [75:27 - 75:28] OverloadedDeclRef=f[63:10, 64:10]
|
||||
// CHECK: Punctuation: "(" [75:28 - 75:29] CallExpr=
|
||||
// CHECK: Identifier: "t" [75:29 - 75:30] DeclRefExpr=t:74:12
|
||||
// CHECK: Punctuation: ")" [75:30 - 75:31] CallExpr=
|
||||
// CHECK: Punctuation: "::" [76:5 - 76:7] UnexposedExpr=[71:8, 72:8]
|
||||
// CHECK: Punctuation: "::" [76:5 - 76:7] MemberRefExpr=[71:8, 72:8]
|
||||
// CHECK: Identifier: "X4" [76:7 - 76:9] TemplateRef=X4:69:8
|
||||
// CHECK: Punctuation: "<" [76:9 - 76:10] UnexposedExpr=[71:8, 72:8]
|
||||
// CHECK: Punctuation: "<" [76:9 - 76:10] MemberRefExpr=[71:8, 72:8]
|
||||
// CHECK: Identifier: "type" [76:10 - 76:14] TypeRef=type:70:13
|
||||
// CHECK: Punctuation: ">" [76:14 - 76:15] UnexposedExpr=[71:8, 72:8]
|
||||
// CHECK: Punctuation: "::" [76:15 - 76:17] UnexposedExpr=[71:8, 72:8]
|
||||
// CHECK: Punctuation: ">" [76:14 - 76:15] MemberRefExpr=[71:8, 72:8]
|
||||
// CHECK: Punctuation: "::" [76:15 - 76:17] MemberRefExpr=[71:8, 72:8]
|
||||
// CHECK: Identifier: "g" [76:17 - 76:18] OverloadedDeclRef=g[71:8, 72:8]
|
||||
// CHECK: Punctuation: "(" [76:18 - 76:19] CallExpr=
|
||||
// CHECK: Identifier: "t" [76:19 - 76:20] DeclRefExpr=t:74:12
|
||||
// CHECK: Punctuation: ")" [76:20 - 76:21] CallExpr=
|
||||
// CHECK: Punctuation: ";" [76:21 - 76:22] UnexposedStmt=
|
||||
// CHECK: Keyword: "this" [77:5 - 77:9] UnexposedExpr=
|
||||
// CHECK: Punctuation: "->" [77:9 - 77:11] UnexposedExpr=
|
||||
// CHECK: Punctuation: "::" [77:11 - 77:13] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [76:21 - 76:22] CompoundStmt=
|
||||
// CHECK: Keyword: "this" [77:5 - 77:9] CXXThisExpr=
|
||||
// CHECK: Punctuation: "->" [77:9 - 77:11] MemberRefExpr=
|
||||
// CHECK: Punctuation: "::" [77:11 - 77:13] MemberRefExpr=
|
||||
// CHECK: Identifier: "X4" [77:13 - 77:15] TemplateRef=X4:69:8
|
||||
// CHECK: Punctuation: "<" [77:15 - 77:16] UnexposedExpr=
|
||||
// CHECK: Punctuation: "<" [77:15 - 77:16] MemberRefExpr=
|
||||
// CHECK: Identifier: "type" [77:16 - 77:20] TypeRef=type:70:13
|
||||
// CHECK: Punctuation: ">" [77:20 - 77:21] UnexposedExpr=
|
||||
// CHECK: Punctuation: "::" [77:21 - 77:23] UnexposedExpr=
|
||||
// CHECK: Identifier: "g" [77:23 - 77:24] UnexposedExpr=
|
||||
// CHECK: Punctuation: ">" [77:20 - 77:21] MemberRefExpr=
|
||||
// CHECK: Punctuation: "::" [77:21 - 77:23] MemberRefExpr=
|
||||
// CHECK: Identifier: "g" [77:23 - 77:24] MemberRefExpr=
|
||||
// CHECK: Punctuation: "(" [77:24 - 77:25] CallExpr=
|
||||
// CHECK: Identifier: "t" [77:25 - 77:26] DeclRefExpr=t:74:12
|
||||
// CHECK: Punctuation: ")" [77:26 - 77:27] CallExpr=
|
||||
|
@ -314,7 +314,7 @@ struct X9 : X8 {
|
|||
// CHECK: Punctuation: "(" [90:28 - 90:29] CallExpr=f:63:10
|
||||
// CHECK: Identifier: "t" [90:29 - 90:30] DeclRefExpr=t:89:15
|
||||
// CHECK: Punctuation: ")" [90:30 - 90:31] CallExpr=f:63:10
|
||||
// CHECK: Punctuation: ";" [90:31 - 90:32] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [90:31 - 90:32] CompoundStmt=
|
||||
// CHECK: Punctuation: "::" [91:5 - 91:7] MemberRefExpr=g:86:8
|
||||
// CHECK: Identifier: "X4" [91:7 - 91:9] TemplateRef=X4:69:8
|
||||
// CHECK: Punctuation: "<" [91:9 - 91:10] MemberRefExpr=g:86:8
|
||||
|
@ -325,8 +325,8 @@ struct X9 : X8 {
|
|||
// CHECK: Punctuation: "(" [91:18 - 91:19] CallExpr=g:86:8
|
||||
// CHECK: Identifier: "t" [91:19 - 91:20] DeclRefExpr=t:89:15
|
||||
// CHECK: Punctuation: ")" [91:20 - 91:21] CallExpr=g:86:8
|
||||
// CHECK: Punctuation: ";" [91:21 - 91:22] UnexposedStmt=
|
||||
// CHECK: Keyword: "this" [92:5 - 92:9] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [91:21 - 91:22] CompoundStmt=
|
||||
// CHECK: Keyword: "this" [92:5 - 92:9] CXXThisExpr=
|
||||
// CHECK: Punctuation: "->" [92:9 - 92:11] MemberRefExpr=g:86:8
|
||||
// CHECK: Punctuation: "::" [92:11 - 92:13] MemberRefExpr=g:86:8
|
||||
// CHECK: Identifier: "X4" [92:13 - 92:15] TemplateRef=X4:69:8
|
||||
|
|
|
@ -9,7 +9,7 @@ void test() {
|
|||
}
|
||||
|
||||
// RUN: c-index-test -test-annotate-tokens=%s:1:1:5:1 -fno-delayed-template-parsing -std=c++0x %s | FileCheck %s
|
||||
// CHECK: Identifier: "args" [3:20 - 3:24] UnexposedExpr=args:2:15
|
||||
// CHECK: Identifier: "args" [3:20 - 3:24] SizeOfPackExpr=args:2:15
|
||||
// CHECK: Identifier: "Args" [3:38 - 3:42] TypeRef=Args:1:22
|
||||
|
||||
// RUN: c-index-test -test-annotate-tokens=%s:8:1:9:1 -std=c++0x %s | FileCheck -check-prefix=CHECK-DECLTYPE %s
|
||||
|
|
|
@ -104,17 +104,17 @@ const char *fname = __FILE__;
|
|||
// CHECK: Identifier: "test_macro_args" [13:6 - 13:21] FunctionDecl=test_macro_args:13:6 (Definition)
|
||||
// CHECK: Punctuation: "(" [13:21 - 13:22] FunctionDecl=test_macro_args:13:6 (Definition)
|
||||
// CHECK: Punctuation: ")" [13:22 - 13:23] FunctionDecl=test_macro_args:13:6 (Definition)
|
||||
// CHECK: Punctuation: "{" [13:24 - 13:25] UnexposedStmt=
|
||||
// CHECK: Punctuation: "{" [13:24 - 13:25] CompoundStmt=
|
||||
// CHECK: Keyword: "int" [14:3 - 14:6] VarDecl=z:14:7 (Definition)
|
||||
// CHECK: Identifier: "z" [14:7 - 14:8] VarDecl=z:14:7 (Definition)
|
||||
// CHECK: Punctuation: "=" [14:9 - 14:10] VarDecl=z:14:7 (Definition)
|
||||
// CHECK: Literal: "1" [14:11 - 14:12] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [14:12 - 14:13] UnexposedStmt=
|
||||
// CHECK: Literal: "1" [14:11 - 14:12] IntegerLiteral=
|
||||
// CHECK: Punctuation: ";" [14:12 - 14:13] DeclStmt=
|
||||
// CHECK: Keyword: "int" [15:3 - 15:6] VarDecl=t:15:7 (Definition)
|
||||
// CHECK: Identifier: "t" [15:7 - 15:8] VarDecl=t:15:7 (Definition)
|
||||
// CHECK: Punctuation: "=" [15:9 - 15:10] VarDecl=t:15:7 (Definition)
|
||||
// CHECK: Literal: "2" [15:11 - 15:12] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [15:12 - 15:13] UnexposedStmt=
|
||||
// CHECK: Literal: "2" [15:11 - 15:12] IntegerLiteral=
|
||||
// CHECK: Punctuation: ";" [15:12 - 15:13] DeclStmt=
|
||||
// CHECK: Keyword: "int" [16:3 - 16:6] VarDecl=k:16:7 (Definition)
|
||||
// CHECK: Identifier: "k" [16:7 - 16:8] VarDecl=k:16:7 (Definition)
|
||||
// CHECK: Punctuation: "=" [16:9 - 16:10] VarDecl=k:16:7 (Definition)
|
||||
|
@ -125,26 +125,26 @@ const char *fname = __FILE__;
|
|||
// CHECK: Identifier: "z" [16:27 - 16:28] DeclRefExpr=z:14:7
|
||||
// FIXME: The token below should really be annotated as "macro expansion=REVERSE_MACRO:10:9"
|
||||
// CHECK: Punctuation: ")" [16:28 - 16:29] VarDecl=k:16:7 (Definition)
|
||||
// CHECK: Punctuation: ";" [16:29 - 16:30] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [16:29 - 16:30] DeclStmt=
|
||||
// CHECK: Keyword: "int" [17:3 - 17:6] VarDecl=j:17:7 (Definition)
|
||||
// CHECK: Identifier: "j" [17:7 - 17:8] VarDecl=j:17:7 (Definition)
|
||||
// CHECK: Punctuation: "=" [17:9 - 17:10] VarDecl=j:17:7 (Definition)
|
||||
// CHECK: Identifier: "TWICE_MACRO" [17:11 - 17:22] macro expansion=TWICE_MACRO:11:9
|
||||
// CHECK: Punctuation: "(" [17:22 - 17:23]
|
||||
// CHECK: Identifier: "k" [17:23 - 17:24] DeclRefExpr=k:16:7
|
||||
// CHECK: Punctuation: "+" [17:25 - 17:26] UnexposedExpr=
|
||||
// CHECK: Punctuation: "+" [17:25 - 17:26] BinaryOperator=
|
||||
// CHECK: Identifier: "k" [17:27 - 17:28] DeclRefExpr=k:16:7
|
||||
// FIXME: The token below should really be annotated as "macro expansion=TWICE_MACRO:11:9"
|
||||
// CHECK: Punctuation: ")" [17:28 - 17:29] VarDecl=j:17:7 (Definition)
|
||||
// CHECK: Punctuation: ";" [17:29 - 17:30] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [17:29 - 17:30] DeclStmt=
|
||||
// CHECK: Keyword: "int" [18:3 - 18:6] VarDecl=w:18:7 (Definition)
|
||||
// CHECK: Identifier: "w" [18:7 - 18:8] VarDecl=w:18:7 (Definition)
|
||||
// CHECK: Punctuation: "=" [18:9 - 18:10] VarDecl=w:18:7 (Definition)
|
||||
// CHECK: Identifier: "j" [18:11 - 18:12] DeclRefExpr=j:17:7
|
||||
// CHECK: Punctuation: "+" [18:13 - 18:14] UnexposedExpr=
|
||||
// CHECK: Punctuation: "+" [18:13 - 18:14] BinaryOperator=
|
||||
// CHECK: Identifier: "j" [18:15 - 18:16] DeclRefExpr=j:17:7
|
||||
// CHECK: Punctuation: ";" [18:16 - 18:17] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [19:1 - 19:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [18:16 - 18:17] DeclStmt=
|
||||
// CHECK: Punctuation: "}" [19:1 - 19:2] CompoundStmt=
|
||||
// CHECK: Punctuation: "#" [21:1 - 21:2] preprocessing directive=
|
||||
// CHECK: Identifier: "define" [21:2 - 21:8] preprocessing directive=
|
||||
// CHECK: Identifier: "fun_with_macro_bodies" [21:9 - 21:30] macro definition=fun_with_macro_bodies
|
||||
|
@ -169,29 +169,29 @@ const char *fname = __FILE__;
|
|||
// CHECK: Identifier: "test" [23:6 - 23:10] FunctionDecl=test:23:6 (Definition)
|
||||
// CHECK: Punctuation: "(" [23:10 - 23:11] FunctionDecl=test:23:6 (Definition)
|
||||
// CHECK: Punctuation: ")" [23:11 - 23:12] FunctionDecl=test:23:6 (Definition)
|
||||
// CHECK: Punctuation: "{" [23:13 - 23:14] UnexposedStmt=
|
||||
// CHECK: Punctuation: "{" [23:13 - 23:14] CompoundStmt=
|
||||
// CHECK: Keyword: "int" [24:3 - 24:6] VarDecl=x:24:7 (Definition)
|
||||
// CHECK: Identifier: "x" [24:7 - 24:8] VarDecl=x:24:7 (Definition)
|
||||
// CHECK: Punctuation: "=" [24:9 - 24:10] VarDecl=x:24:7 (Definition)
|
||||
// CHECK: Literal: "10" [24:11 - 24:13] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [24:13 - 24:14] UnexposedStmt=
|
||||
// CHECK: Literal: "10" [24:11 - 24:13] IntegerLiteral=
|
||||
// CHECK: Punctuation: ";" [24:13 - 24:14] DeclStmt=
|
||||
// CHECK: Identifier: "fun_with_macro_bodies" [25:3 - 25:24] macro expansion=fun_with_macro_bodies:21:9
|
||||
// CHECK: Punctuation: "(" [25:24 - 25:25] UnexposedStmt=
|
||||
// CHECK: Punctuation: "(" [25:24 - 25:25] CompoundStmt=
|
||||
// CHECK: Identifier: "x" [25:25 - 25:26] DeclRefExpr=x:24:7
|
||||
// CHECK: Punctuation: "," [25:26 - 25:27]
|
||||
// CHECK: Punctuation: "{" [25:28 - 25:29] UnexposedStmt=
|
||||
// CHECK: Keyword: "int" [25:30 - 25:33] UnexposedStmt=
|
||||
// CHECK: Punctuation: "{" [25:28 - 25:29] CompoundStmt=
|
||||
// CHECK: Keyword: "int" [25:30 - 25:33] DeclStmt=
|
||||
// CHECK: Identifier: "z" [25:34 - 25:35] VarDecl=z:25:34 (Definition)
|
||||
// CHECK: Punctuation: "=" [25:36 - 25:37] VarDecl=z:25:34 (Definition)
|
||||
// CHECK: Identifier: "x" [25:38 - 25:39] DeclRefExpr=x:24:7
|
||||
// CHECK: Punctuation: ";" [25:39 - 25:40] UnexposedStmt=
|
||||
// CHECK: Punctuation: "++" [25:41 - 25:43] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [25:39 - 25:40] DeclStmt=
|
||||
// CHECK: Punctuation: "++" [25:41 - 25:43] UnaryOperator=
|
||||
// CHECK: Identifier: "z" [25:43 - 25:44] DeclRefExpr=z:25:3
|
||||
// CHECK: Punctuation: ";" [25:44 - 25:45] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [25:46 - 25:47] UnexposedStmt=
|
||||
// CHECK: Punctuation: ")" [25:47 - 25:48] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [25:48 - 25:49] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [26:1 - 26:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [25:44 - 25:45] CompoundStmt=
|
||||
// CHECK: Punctuation: "}" [25:46 - 25:47] CompoundStmt=
|
||||
// CHECK: Punctuation: ")" [25:47 - 25:48] DoStmt=
|
||||
// CHECK: Punctuation: ";" [25:48 - 25:49] CompoundStmt=
|
||||
// CHECK: Punctuation: "}" [26:1 - 26:2] CompoundStmt=
|
||||
// CHECK: {{28:1.*inclusion directive=pragma-once.h.*multi-include guarded}}
|
||||
// CHECK: {{29:1.*inclusion directive=guarded.h.*multi-include guarded}}
|
||||
// CHECK: Identifier: "__FILE__" [31:21 - 31:29] macro expansion=__FILE__
|
||||
|
|
|
@ -14,7 +14,7 @@ void f(void *ptr) {
|
|||
// CHECK: Punctuation: "*" [3:13 - 3:14] ParmDecl=ptr:3:14 (Definition)
|
||||
// CHECK: Identifier: "ptr" [3:14 - 3:17] ParmDecl=ptr:3:14 (Definition)
|
||||
// CHECK: Punctuation: ")" [3:17 - 3:18] FunctionDecl=f:3:6 (Definition)
|
||||
// CHECK: Punctuation: "{" [3:19 - 3:20] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [4:1 - 4:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: "{" [3:19 - 3:20] CompoundStmt=
|
||||
// CHECK: Punctuation: "}" [4:1 - 4:2] CompoundStmt=
|
||||
|
||||
|
||||
|
|
|
@ -12,5 +12,5 @@ void Foo::m(Foo *f) {}
|
|||
// CHECK: Punctuation: "*" [3:17 - 3:18] ParmDecl=f:3:18 (Definition)
|
||||
// CHECK: Identifier: "f" [3:18 - 3:19] ParmDecl=f:3:18 (Definition)
|
||||
// CHECK: Punctuation: ")" [3:19 - 3:20] CXXMethod=m:3:11 (Definition)
|
||||
// CHECK: Punctuation: "{" [3:21 - 3:22] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [3:22 - 3:23] UnexposedStmt=
|
||||
// CHECK: Punctuation: "{" [3:21 - 3:22] CompoundStmt=
|
||||
// CHECK: Punctuation: "}" [3:22 - 3:23] CompoundStmt=
|
||||
|
|
|
@ -38,35 +38,32 @@ enum Color g(int i, ...) {
|
|||
// CHECK: Punctuation: "*" [4:4 - 4:5] VarDecl=t_ptr:4:6 (Definition)
|
||||
// CHECK: Identifier: "t_ptr" [4:6 - 4:11] VarDecl=t_ptr:4:6 (Definition)
|
||||
// CHECK: Punctuation: "=" [4:12 - 4:13] VarDecl=t_ptr:4:6 (Definition)
|
||||
// CHECK: Punctuation: "(" [4:14 - 4:15] UnexposedExpr=
|
||||
// CHECK: Punctuation: "(" [4:14 - 4:15] CStyleCastExpr=
|
||||
// CHECK: Identifier: "T" [4:15 - 4:16] TypeRef=T:1:13
|
||||
// CHECK: Punctuation: "*" [4:17 - 4:18] UnexposedExpr=
|
||||
// CHECK: Punctuation: ")" [4:18 - 4:19] UnexposedExpr=
|
||||
// CHECK: Identifier: "ptr" [4:19 - 4:22] DeclRefExpr=ptr:3:14
|
||||
// CHECK: Punctuation: ";" [4:22 - 4:23] UnexposedStmt=
|
||||
// CHECK: Punctuation: "(" [5:3 - 5:4] UnexposedExpr=
|
||||
// CHECK: Keyword: "void" [5:4 - 5:8] UnexposedExpr=
|
||||
// CHECK: Punctuation: ")" [5:8 - 5:9] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [4:22 - 4:23] DeclStmt=
|
||||
// CHECK: Punctuation: "(" [5:3 - 5:4] CStyleCastExpr=
|
||||
// CHECK: Keyword: "void" [5:4 - 5:8] CStyleCastExpr=
|
||||
// CHECK: Punctuation: ")" [5:8 - 5:9] CStyleCastExpr=
|
||||
// CHECK: Keyword: "sizeof" [5:9 - 5:15] UnexposedExpr=
|
||||
// CHECK: Punctuation: "(" [5:15 - 5:16] UnexposedExpr=
|
||||
// CHECK: Identifier: "T" [5:16 - 5:17] TypeRef=T:1:13
|
||||
// CHECK: Punctuation: ")" [5:17 - 5:18] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [5:18 - 5:19] UnexposedStmt=
|
||||
// CHECK: Comment: "/* A comment */" [6:3 - 6:18] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [5:18 - 5:19] CompoundStmt=
|
||||
// CHECK: Keyword: "struct" [7:3 - 7:9] VarDecl=x:7:12 (Definition)
|
||||
// CHECK: Identifier: "X" [7:10 - 7:11] TypeRef=struct X:2:8
|
||||
// CHECK: Identifier: "x" [7:12 - 7:13] VarDecl=x:7:12 (Definition)
|
||||
// CHECK: Punctuation: "=" [7:14 - 7:15] VarDecl=x:7:12 (Definition)
|
||||
// CHECK: Punctuation: "(" [7:16 - 7:17] UnexposedExpr=
|
||||
// CHECK: Keyword: "struct" [7:17 - 7:23] UnexposedExpr=
|
||||
// CHECK: Punctuation: "(" [7:16 - 7:17] CompoundLiteralExpr=
|
||||
// CHECK: Keyword: "struct" [7:17 - 7:23] CompoundLiteralExpr=
|
||||
// CHECK: Identifier: "X" [7:24 - 7:25] TypeRef=struct X:2:8
|
||||
// CHECK: Punctuation: ")" [7:25 - 7:26] UnexposedExpr=
|
||||
// CHECK: Punctuation: "{" [7:26 - 7:27] UnexposedExpr=
|
||||
// CHECK: Literal: "1" [7:27 - 7:28] UnexposedExpr=
|
||||
// CHECK: Punctuation: "," [7:28 - 7:29] UnexposedExpr=
|
||||
// CHECK: Literal: "2" [7:30 - 7:31] UnexposedExpr=
|
||||
// CHECK: Punctuation: "}" [7:31 - 7:32] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [7:32 - 7:33] UnexposedStmt=
|
||||
// CHECK: Punctuation: ")" [7:25 - 7:26] CompoundLiteralExpr=
|
||||
// CHECK: Punctuation: "{" [7:26 - 7:27] InitListExpr=
|
||||
// CHECK: Literal: "1" [7:27 - 7:28] IntegerLiteral=
|
||||
// CHECK: Punctuation: "," [7:28 - 7:29] InitListExpr=
|
||||
// CHECK: Literal: "2" [7:30 - 7:31] IntegerLiteral=
|
||||
// CHECK: Punctuation: "}" [7:31 - 7:32] InitListExpr=
|
||||
// CHECK: Punctuation: ";" [7:32 - 7:33] DeclStmt=
|
||||
// CHECK: Keyword: "void" [8:3 - 8:7] VarDecl=xx:8:9 (Definition)
|
||||
// CHECK: Punctuation: "*" [8:8 - 8:9] VarDecl=xx:8:9 (Definition)
|
||||
// CHECK: Identifier: "xx" [8:9 - 8:11] VarDecl=xx:8:9 (Definition)
|
||||
|
@ -74,17 +71,17 @@ enum Color g(int i, ...) {
|
|||
// CHECK: Identifier: "ptr" [8:14 - 8:17] DeclRefExpr=ptr:3:14
|
||||
// CHECK: Punctuation: "?" [8:18 - 8:19] UnexposedExpr=
|
||||
// CHECK: Punctuation: ":" [8:20 - 8:21] UnexposedExpr=
|
||||
// CHECK: Punctuation: "&" [8:22 - 8:23] UnexposedExpr=
|
||||
// CHECK: Punctuation: "&" [8:22 - 8:23] UnaryOperator=
|
||||
// CHECK: Identifier: "x" [8:23 - 8:24] DeclRefExpr=x:7:12
|
||||
// CHECK: Punctuation: ";" [8:24 - 8:25] UnexposedStmt=
|
||||
// CHECK: Keyword: "const" [9:3 - 9:8] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [8:24 - 8:25] DeclStmt=
|
||||
// CHECK: Keyword: "const" [9:3 - 9:8] DeclStmt=
|
||||
// CHECK: Keyword: "char" [9:9 - 9:13] VarDecl=hello:9:16 (Definition)
|
||||
// CHECK: Punctuation: "*" [9:14 - 9:15] VarDecl=hello:9:16 (Definition)
|
||||
// CHECK: Identifier: "hello" [9:16 - 9:21] VarDecl=hello:9:16 (Definition)
|
||||
// CHECK: Punctuation: "=" [9:22 - 9:23] VarDecl=hello:9:16 (Definition)
|
||||
// CHECK: Literal: ""Hello"" [9:24 - 9:31] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [9:31 - 9:32] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [10:1 - 10:2] UnexposedStmt=
|
||||
// CHECK: Literal: ""Hello"" [9:24 - 9:31] StringLiteral=
|
||||
// CHECK: Punctuation: ";" [9:31 - 9:32] DeclStmt=
|
||||
// CHECK: Punctuation: "}" [10:1 - 10:2] CompoundStmt=
|
||||
// CHECK: Keyword: "__builtin_va_arg" [15:9 - 15:25] UnexposedExpr=
|
||||
// CHECK: Identifier: "Int" [15:30 - 15:33] TypeRef=Int:12:13
|
||||
// CHECK: Keyword: "__builtin_types_compatible_p" [16:9 - 16:37] UnexposedExpr=
|
||||
|
@ -94,15 +91,15 @@ enum Color g(int i, ...) {
|
|||
// CHECK: Keyword: "struct" [18:3 - 18:9] VarDecl=x:18:12 (Definition)
|
||||
// CHECK: Identifier: "X" [18:10 - 18:11] TypeRef=struct X:2:8
|
||||
// CHECK: Identifier: "x" [18:12 - 18:13] VarDecl=x:18:12 (Definition)
|
||||
// CHECK: Keyword: "do" [19:3 - 19:5] UnexposedStmt=
|
||||
// CHECK: Keyword: "do" [19:3 - 19:5] DoStmt=
|
||||
// CHECK: Identifier: "x" [20:5 - 20:6] DeclRefExpr=x:18:12
|
||||
// CHECK: Punctuation: "." [20:6 - 20:7] MemberRefExpr=a:2:16
|
||||
// CHECK: Identifier: "a" [20:7 - 20:8] MemberRefExpr=a:2:16
|
||||
// CHECK: Punctuation: "++" [20:8 - 20:10] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [20:10 - 20:11] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [21:3 - 21:4] UnexposedStmt=
|
||||
// CHECK: Keyword: "while" [21:5 - 21:10] UnexposedStmt=
|
||||
// CHECK: Punctuation: "(" [21:11 - 21:12] UnexposedStmt=
|
||||
// CHECK: Punctuation: "++" [20:8 - 20:10] UnaryOperator=
|
||||
// CHECK: Punctuation: ";" [20:10 - 20:11] CompoundStmt=
|
||||
// CHECK: Punctuation: "}" [21:3 - 21:4] CompoundStmt=
|
||||
// CHECK: Keyword: "while" [21:5 - 21:10] DoStmt=
|
||||
// CHECK: Punctuation: "(" [21:11 - 21:12] DoStmt=
|
||||
// CHECK: Identifier: "x" [21:12 - 21:13] DeclRefExpr=x:18:12
|
||||
// CHECK: Punctuation: "." [21:13 - 21:14] MemberRefExpr=a:2:16
|
||||
// CHECK: Identifier: "a" [21:14 - 21:15] MemberRefExpr=a:2:16
|
||||
|
@ -110,30 +107,30 @@ enum Color g(int i, ...) {
|
|||
// CHECK: Keyword: "enum" [23:3 - 23:7] VarDecl=c:23:14 (Definition)
|
||||
// CHECK: Identifier: "Color" [23:8 - 23:13] TypeRef=enum Color:11:6
|
||||
// CHECK: Identifier: "c" [23:14 - 23:15] VarDecl=c:23:14 (Definition)
|
||||
// CHECK: Punctuation: ";" [23:15 - 23:16] UnexposedStmt=
|
||||
// CHECK: Keyword: "switch" [24:3 - 24:9] UnexposedStmt=
|
||||
// CHECK: Punctuation: "(" [24:10 - 24:11] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [23:15 - 23:16] DeclStmt=
|
||||
// CHECK: Keyword: "switch" [24:3 - 24:9] SwitchStmt=
|
||||
// CHECK: Punctuation: "(" [24:10 - 24:11] SwitchStmt=
|
||||
// CHECK: Identifier: "c" [24:11 - 24:12] DeclRefExpr=c:23:14
|
||||
// CHECK: Punctuation: ")" [24:12 - 24:13] UnexposedStmt=
|
||||
// CHECK: Punctuation: "{" [24:14 - 24:15] UnexposedStmt=
|
||||
// CHECK: Keyword: "case" [25:3 - 25:7] UnexposedStmt=
|
||||
// CHECK: Punctuation: ")" [24:12 - 24:13] SwitchStmt=
|
||||
// CHECK: Punctuation: "{" [24:14 - 24:15] CompoundStmt=
|
||||
// CHECK: Keyword: "case" [25:3 - 25:7] CaseStmt=
|
||||
// CHECK: Identifier: "Red" [25:8 - 25:11] DeclRefExpr=Red:11:14
|
||||
// CHECK: Punctuation: ":" [25:11 - 25:12] UnexposedStmt=
|
||||
// CHECK: Keyword: "return" [26:5 - 26:11] UnexposedStmt=
|
||||
// CHECK: Punctuation: ":" [25:11 - 25:12] CaseStmt=
|
||||
// CHECK: Keyword: "return" [26:5 - 26:11] ReturnStmt=
|
||||
// CHECK: Identifier: "Green" [26:12 - 26:17] DeclRefExpr=Green:11:19
|
||||
// CHECK: Punctuation: ";" [26:17 - 26:18] UnexposedStmt=
|
||||
// CHECK: Keyword: "case" [28:3 - 28:7] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [26:17 - 26:18] CompoundStmt=
|
||||
// CHECK: Keyword: "case" [28:3 - 28:7] CaseStmt=
|
||||
// CHECK: Identifier: "Green" [28:8 - 28:13] DeclRefExpr=Green:11:19
|
||||
// CHECK: Punctuation: ":" [28:13 - 28:14] UnexposedStmt=
|
||||
// CHECK: Keyword: "return" [29:5 - 29:11] UnexposedStmt=
|
||||
// CHECK: Punctuation: ":" [28:13 - 28:14] CaseStmt=
|
||||
// CHECK: Keyword: "return" [29:5 - 29:11] ReturnStmt=
|
||||
// CHECK: Identifier: "Blue" [29:12 - 29:16] DeclRefExpr=Blue:11:26
|
||||
// CHECK: Punctuation: ";" [29:16 - 29:17] UnexposedStmt=
|
||||
// CHECK: Keyword: "case" [31:3 - 31:7] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [29:16 - 29:17] CompoundStmt=
|
||||
// CHECK: Keyword: "case" [31:3 - 31:7] CaseStmt=
|
||||
// CHECK: Identifier: "Blue" [31:8 - 31:12] DeclRefExpr=Blue:11:26
|
||||
// CHECK: Punctuation: ":" [31:12 - 31:13] UnexposedStmt=
|
||||
// CHECK: Keyword: "return" [32:5 - 32:11] UnexposedStmt=
|
||||
// CHECK: Punctuation: ":" [31:12 - 31:13] CaseStmt=
|
||||
// CHECK: Keyword: "return" [32:5 - 32:11] ReturnStmt=
|
||||
// CHECK: Identifier: "Red" [32:12 - 32:15] DeclRefExpr=Red:11:14
|
||||
// CHECK: Punctuation: ";" [32:15 - 32:16] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [32:15 - 32:16] CompoundStmt=
|
||||
|
||||
// RUN: c-index-test -test-annotate-tokens=%s:4:1:165:32 %s | FileCheck %s
|
||||
// RUN: c-index-test -test-annotate-tokens=%s:4:1:165:38 %s | FileCheck %s
|
||||
|
|
|
@ -32,19 +32,19 @@ void test3(S2 s2) {
|
|||
// CHECK: Identifier: "bonk" [2:11 - 2:15] TypeRef=struct bonk:1:8
|
||||
// CHECK: Identifier: "X" [2:16 - 2:17] ParmDecl=X:2:16 (Definition)
|
||||
// CHECK: Punctuation: ")" [2:17 - 2:18] FunctionDecl=test:2:6 (Definition)
|
||||
// CHECK: Punctuation: "{" [2:19 - 2:20] UnexposedStmt=
|
||||
// CHECK: Punctuation: "{" [2:19 - 2:20] CompoundStmt=
|
||||
// CHECK: Identifier: "X" [3:5 - 3:6] DeclRefExpr=X:2:16
|
||||
// CHECK: Punctuation: "=" [3:7 - 3:8] CallExpr=operator=:1:8
|
||||
// CHECK: Identifier: "X" [3:9 - 3:10] DeclRefExpr=X:2:16
|
||||
// CHECK: Punctuation: ";" [3:10 - 3:11] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [3:10 - 3:11] CompoundStmt=
|
||||
// CHECK: Keyword: "__is_base_of" [4:5 - 4:17] UnexposedExpr=
|
||||
// CHECK: Punctuation: "(" [4:17 - 4:18] UnexposedExpr=
|
||||
// CHECK: Identifier: "bonk" [4:18 - 4:22] TypeRef=struct bonk:1:8
|
||||
// CHECK: Punctuation: "," [4:22 - 4:23] UnexposedExpr=
|
||||
// CHECK: Identifier: "bonk" [4:24 - 4:28] TypeRef=struct bonk:1:8
|
||||
// CHECK: Punctuation: ")" [4:28 - 4:29] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [4:29 - 4:30] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [5:1 - 5:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [4:29 - 4:30] CompoundStmt=
|
||||
// CHECK: Punctuation: "}" [5:1 - 5:2] CompoundStmt=
|
||||
// CHECK: Keyword: "struct" [7:1 - 7:7] StructDecl=X:7:8 (Definition)
|
||||
// CHECK: Identifier: "X" [7:8 - 7:9] StructDecl=X:7:8 (Definition)
|
||||
// CHECK: Punctuation: "{" [7:10 - 7:11] StructDecl=X:7:8 (Definition)
|
||||
|
@ -69,18 +69,18 @@ void test3(S2 s2) {
|
|||
// CHECK: Identifier: "X" [11:12 - 11:13] TypeRef=struct X:7:8
|
||||
// CHECK: Identifier: "x" [11:14 - 11:15] ParmDecl=x:11:14 (Definition)
|
||||
// CHECK: Punctuation: ")" [11:15 - 11:16] FunctionDecl=test2:11:6 (Definition)
|
||||
// CHECK: Punctuation: "{" [11:17 - 11:18] UnexposedStmt=
|
||||
// CHECK: Punctuation: "{" [11:17 - 11:18] CompoundStmt=
|
||||
// CHECK: Punctuation: "++" [12:3 - 12:5] CallExpr=operator++:8:5
|
||||
// CHECK: Punctuation: "(" [12:5 - 12:6] UnexposedExpr=
|
||||
// CHECK: Punctuation: "(" [12:5 - 12:6] ParenExpr=
|
||||
// CHECK: Identifier: "x" [12:6 - 12:7] DeclRefExpr=x:11:14
|
||||
// CHECK: Punctuation: ")" [12:7 - 12:8] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [12:8 - 12:9] UnexposedStmt=
|
||||
// CHECK: Punctuation: "(" [13:3 - 13:4] UnexposedExpr=
|
||||
// CHECK: Punctuation: ")" [12:7 - 12:8] ParenExpr=
|
||||
// CHECK: Punctuation: ";" [12:8 - 12:9] CompoundStmt=
|
||||
// CHECK: Punctuation: "(" [13:3 - 13:4] ParenExpr=
|
||||
// CHECK: Identifier: "x" [13:4 - 13:5] DeclRefExpr=x:11:14
|
||||
// CHECK: Punctuation: ")" [13:5 - 13:6] UnexposedExpr=
|
||||
// CHECK: Punctuation: ")" [13:5 - 13:6] ParenExpr=
|
||||
// CHECK: Punctuation: "++" [13:6 - 13:8] CallExpr=operator++:9:5
|
||||
// CHECK: Punctuation: ";" [13:8 - 13:9] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [14:1 - 14:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [13:8 - 13:9] CompoundStmt=
|
||||
// CHECK: Punctuation: "}" [14:1 - 14:2] CompoundStmt=
|
||||
// CHECK: Keyword: "struct" [16:1 - 16:7] StructDecl=S1:16:8 (Definition)
|
||||
// CHECK: Identifier: "S1" [16:8 - 16:10] StructDecl=S1:16:8 (Definition)
|
||||
// CHECK: Punctuation: "{" [16:11 - 16:12] StructDecl=S1:16:8 (Definition)
|
||||
|
@ -109,14 +109,14 @@ void test3(S2 s2) {
|
|||
// CHECK: Identifier: "S2" [18:12 - 18:14] TypeRef=struct S2:17:8
|
||||
// CHECK: Identifier: "s2" [18:15 - 18:17] ParmDecl=s2:18:15 (Definition)
|
||||
// CHECK: Punctuation: ")" [18:17 - 18:18] FunctionDecl=test3:18:6 (Definition)
|
||||
// CHECK: Punctuation: "{" [18:19 - 18:20] UnexposedStmt=
|
||||
// CHECK: Punctuation: "{" [18:19 - 18:20] CompoundStmt=
|
||||
// CHECK: Identifier: "s2" [19:3 - 19:5] DeclRefExpr=s2:18:15
|
||||
// CHECK: Punctuation: "->" [19:5 - 19:7] MemberRefExpr=f:16:18
|
||||
// CHECK: Identifier: "f" [19:7 - 19:8] MemberRefExpr=f:16:18
|
||||
// CHECK: Punctuation: "(" [19:8 - 19:9] CallExpr=f:16:18
|
||||
// CHECK: Punctuation: ")" [19:9 - 19:10] CallExpr=f:16:18
|
||||
// CHECK: Punctuation: ";" [19:10 - 19:11] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [19:10 - 19:11] CompoundStmt=
|
||||
// CHECK: Identifier: "X" [20:3 - 20:4] TypeRef=struct X:7:8
|
||||
// CHECK: Identifier: "foo" [20:5 - 20:8] VarDecl=foo:20:5 (Definition)
|
||||
// CHECK: Punctuation: ";" [20:8 - 20:9] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [21:1 - 21:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [20:8 - 20:9] DeclStmt=
|
||||
// CHECK: Punctuation: "}" [21:1 - 21:2] CompoundStmt=
|
||||
|
|
|
@ -174,20 +174,20 @@ static Rdar8595462_A * Rdar8595462_staticVar;
|
|||
// CHECK: Punctuation: "*" [6:20 - 6:21] ParmDecl=other:6:22 (Definition)
|
||||
// CHECK: Punctuation: ")" [6:21 - 6:22] ParmDecl=other:6:22 (Definition)
|
||||
// CHECK: Identifier: "other" [6:22 - 6:27] ParmDecl=other:6:22 (Definition)
|
||||
// CHECK: Punctuation: "{" [6:28 - 6:29] UnexposedStmt=
|
||||
// CHECK: Keyword: "return" [7:3 - 7:9] UnexposedStmt=
|
||||
// CHECK: Literal: "0" [7:10 - 7:11] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [7:11 - 7:12] UnexposedStmt=
|
||||
// CHECK: Punctuation: "(" [8:3 - 8:4] UnexposedExpr=
|
||||
// CHECK: Keyword: "void" [8:4 - 8:8] UnexposedExpr=
|
||||
// CHECK: Punctuation: ")" [8:8 - 8:9] UnexposedExpr=
|
||||
// CHECK: Punctuation: "@" [8:9 - 8:10] UnexposedExpr=
|
||||
// CHECK: Keyword: "encode" [8:10 - 8:16] UnexposedExpr=
|
||||
// CHECK: Punctuation: "(" [8:16 - 8:17] UnexposedExpr=
|
||||
// CHECK: Punctuation: "{" [6:28 - 6:29] CompoundStmt=
|
||||
// CHECK: Keyword: "return" [7:3 - 7:9] ReturnStmt=
|
||||
// CHECK: Literal: "0" [7:10 - 7:11] IntegerLiteral=
|
||||
// CHECK: Punctuation: ";" [7:11 - 7:12] CompoundStmt=
|
||||
// CHECK: Punctuation: "(" [8:3 - 8:4] CStyleCastExpr=
|
||||
// CHECK: Keyword: "void" [8:4 - 8:8] CStyleCastExpr=
|
||||
// CHECK: Punctuation: ")" [8:8 - 8:9] CStyleCastExpr=
|
||||
// CHECK: Punctuation: "@" [8:9 - 8:10] ObjCEncodeExpr=
|
||||
// CHECK: Keyword: "encode" [8:10 - 8:16] ObjCEncodeExpr=
|
||||
// CHECK: Punctuation: "(" [8:16 - 8:17] ObjCEncodeExpr=
|
||||
// CHECK: Identifier: "Foo" [8:17 - 8:20] ObjCClassRef=Foo:1:12
|
||||
// CHECK: Punctuation: ")" [8:20 - 8:21] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [8:21 - 8:22] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [9:1 - 9:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: ")" [8:20 - 8:21] ObjCEncodeExpr=
|
||||
// CHECK: Punctuation: ";" [8:21 - 8:22] CompoundStmt=
|
||||
// CHECK: Punctuation: "}" [9:1 - 9:2] CompoundStmt=
|
||||
// CHECK: Punctuation: "@" [10:1 - 10:2] ObjCImplementationDecl=Foo:5:17 (Definition)
|
||||
// CHECK: Keyword: "end" [10:2 - 10:5]
|
||||
// CHECK: Keyword: "typedef" [14:1 - 14:8]
|
||||
|
@ -218,13 +218,13 @@ static Rdar8595462_A * Rdar8595462_staticVar;
|
|||
// CHECK: Keyword: "void" [22:4 - 22:8] ObjCInstanceMethodDecl=method:22:1 (Definition)
|
||||
// CHECK: Punctuation: ")" [22:8 - 22:9] ObjCInstanceMethodDecl=method:22:1 (Definition)
|
||||
// CHECK: Identifier: "method" [22:10 - 22:16] ObjCInstanceMethodDecl=method:22:1 (Definition)
|
||||
// CHECK: Punctuation: "{" [23:1 - 23:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: "{" [23:1 - 23:2] CompoundStmt=
|
||||
// CHECK: Identifier: "barType" [24:5 - 24:12] TypeRef=barType:14:15
|
||||
// CHECK: Identifier: "local" [24:13 - 24:18] VarDecl=local:24:13 (Definition)
|
||||
// CHECK: Punctuation: "=" [24:19 - 24:20] VarDecl=local:24:13 (Definition)
|
||||
// CHECK: Identifier: "iVar" [24:21 - 24:25] MemberRefExpr=iVar:17:13
|
||||
// CHECK: Punctuation: ";" [24:25 - 24:26] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [25:1 - 25:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [24:25 - 24:26] DeclStmt=
|
||||
// CHECK: Punctuation: "}" [25:1 - 25:2] CompoundStmt=
|
||||
// CHECK: Punctuation: "@" [26:1 - 26:2] ObjCImplementationDecl=Bar:21:17 (Definition)
|
||||
// CHECK: Keyword: "end" [26:2 - 26:5]
|
||||
// CHECK: Punctuation: "@" [32:1 - 32:2] ObjCInterfaceDecl=IBActionTests:32:12
|
||||
|
@ -275,19 +275,19 @@ static Rdar8595462_A * Rdar8595462_staticVar;
|
|||
// CHECK: Identifier: "id" [38:31 - 38:33] TypeRef=id:0:0
|
||||
// CHECK: Punctuation: ")" [38:33 - 38:34] ParmDecl=arg:38:34 (Definition)
|
||||
// CHECK: Identifier: "arg" [38:34 - 38:37] ParmDecl=arg:38:34 (Definition)
|
||||
// CHECK: Punctuation: "{" [39:1 - 39:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: "{" [39:1 - 39:2] CompoundStmt=
|
||||
// CHECK: Identifier: "ibaction_test" [40:5 - 40:18] DeclRefExpr=ibaction_test:36:12
|
||||
// CHECK: Punctuation: "(" [40:18 - 40:19] CallExpr=ibaction_test:36:12
|
||||
// CHECK: Punctuation: ")" [40:19 - 40:20] CallExpr=ibaction_test:36:12
|
||||
// CHECK: Punctuation: ";" [40:20 - 40:21] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [40:20 - 40:21] CompoundStmt=
|
||||
// CHECK: Punctuation: "[" [41:5 - 41:6] ObjCMessageExpr=foo::34:1
|
||||
// CHECK: Identifier: "self" [41:6 - 41:10] DeclRefExpr=self:0:0
|
||||
// CHECK: Identifier: "foo" [41:11 - 41:14] ObjCMessageExpr=foo::34:1
|
||||
// CHECK: Punctuation: ":" [41:14 - 41:15] ObjCMessageExpr=foo::34:1
|
||||
// CHECK: Literal: "0" [41:15 - 41:16] UnexposedExpr=
|
||||
// CHECK: Literal: "0" [41:15 - 41:16] IntegerLiteral=
|
||||
// CHECK: Punctuation: "]" [41:16 - 41:17] ObjCMessageExpr=foo::34:1
|
||||
// CHECK: Punctuation: ";" [41:17 - 41:18] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [42:1 - 42:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [41:17 - 41:18] CompoundStmt=
|
||||
// CHECK: Punctuation: "}" [42:1 - 42:2] CompoundStmt=
|
||||
// CHECK: Punctuation: "-" [43:1 - 43:2] ObjCInstanceMethodDecl=foo::43:1 (Definition)
|
||||
// CHECK: Punctuation: "(" [43:3 - 43:4] ObjCInstanceMethodDecl=foo::43:1 (Definition)
|
||||
// CHECK: Keyword: "void" [43:4 - 43:8] ObjCInstanceMethodDecl=foo::43:1 (Definition)
|
||||
|
@ -298,13 +298,13 @@ static Rdar8595462_A * Rdar8595462_staticVar;
|
|||
// CHECK: Keyword: "int" [43:15 - 43:18] ParmDecl=x:43:19 (Definition)
|
||||
// CHECK: Punctuation: ")" [43:18 - 43:19] ParmDecl=x:43:19 (Definition)
|
||||
// CHECK: Identifier: "x" [43:19 - 43:20] ParmDecl=x:43:19 (Definition)
|
||||
// CHECK: Punctuation: "{" [44:1 - 44:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: "(" [45:3 - 45:4] UnexposedExpr=
|
||||
// CHECK: Keyword: "void" [45:4 - 45:8] UnexposedExpr=
|
||||
// CHECK: Punctuation: ")" [45:8 - 45:9] UnexposedExpr=
|
||||
// CHECK: Punctuation: "{" [44:1 - 44:2] CompoundStmt=
|
||||
// CHECK: Punctuation: "(" [45:3 - 45:4] CStyleCastExpr=
|
||||
// CHECK: Keyword: "void" [45:4 - 45:8] CStyleCastExpr=
|
||||
// CHECK: Punctuation: ")" [45:8 - 45:9] CStyleCastExpr=
|
||||
// CHECK: Identifier: "x" [45:10 - 45:11] DeclRefExpr=x:43:19
|
||||
// CHECK: Punctuation: ";" [45:11 - 45:12] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [46:1 - 46:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [45:11 - 45:12] CompoundStmt=
|
||||
// CHECK: Punctuation: "}" [46:1 - 46:2] CompoundStmt=
|
||||
// CHECK: Punctuation: "@" [47:1 - 47:2] ObjCImplementationDecl=IBActionTests:37:17 (Definition)
|
||||
// CHECK: Keyword: "end" [47:2 - 47:5]
|
||||
// CHECK: Punctuation: "@" [51:1 - 51:2] ObjCInterfaceDecl=IBOutletTests:51:12
|
||||
|
@ -376,17 +376,17 @@ static Rdar8595462_A * Rdar8595462_staticVar;
|
|||
// CHECK: Keyword: "int" [71:14 - 71:17] ParmDecl=arg:71:18 (Definition)
|
||||
// CHECK: Punctuation: ")" [71:17 - 71:18] ParmDecl=arg:71:18 (Definition)
|
||||
// CHECK: Identifier: "arg" [71:18 - 71:21] ParmDecl=arg:71:18 (Definition)
|
||||
// CHECK: Punctuation: "{" [71:22 - 71:23] UnexposedStmt=
|
||||
// CHECK: Keyword: "return" [72:3 - 72:9] UnexposedStmt=
|
||||
// CHECK: Punctuation: "{" [71:22 - 71:23] CompoundStmt=
|
||||
// CHECK: Keyword: "return" [72:3 - 72:9] ReturnStmt=
|
||||
// CHECK: Identifier: "arg" [72:10 - 72:13] DeclRefExpr=arg:71:18
|
||||
// CHECK: Punctuation: ";" [72:13 - 72:14] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [73:1 - 73:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [72:13 - 72:14] CompoundStmt=
|
||||
// CHECK: Punctuation: "}" [73:1 - 73:2] CompoundStmt=
|
||||
// CHECK: Punctuation: "-" [74:1 - 74:2] ObjCInstanceMethodDecl=method:74:1 (Definition)
|
||||
// CHECK: Punctuation: "(" [74:3 - 74:4] ObjCInstanceMethodDecl=method:74:1 (Definition)
|
||||
// CHECK: Keyword: "int" [74:4 - 74:7] ObjCInstanceMethodDecl=method:74:1 (Definition)
|
||||
// CHECK: Punctuation: ")" [74:7 - 74:8] ObjCInstanceMethodDecl=method:74:1 (Definition)
|
||||
// CHECK: Identifier: "method" [74:9 - 74:15] ObjCInstanceMethodDecl=method:74:1 (Definition)
|
||||
// CHECK: Punctuation: "{" [75:1 - 75:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: "{" [75:1 - 75:2] CompoundStmt=
|
||||
// CHECK: Keyword: "int" [76:5 - 76:8] VarDecl=local:76:9 (Definition)
|
||||
// CHECK: Identifier: "local" [76:9 - 76:14] VarDecl=local:76:9 (Definition)
|
||||
// CHECK: Punctuation: "=" [76:15 - 76:16] VarDecl=local:76:9 (Definition)
|
||||
|
@ -396,7 +396,7 @@ static Rdar8595462_A * Rdar8595462_staticVar;
|
|||
// CHECK: Punctuation: ":" [76:26 - 76:27] ObjCMessageExpr=foo::66:1
|
||||
// CHECK: Identifier: "VAL" [76:27 - 76:30] macro expansion=VAL:63:9
|
||||
// CHECK: Punctuation: "]" [76:30 - 76:31] ObjCMessageExpr=foo::66:1
|
||||
// CHECK: Punctuation: ";" [76:31 - 76:32] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [76:31 - 76:32] DeclStmt=
|
||||
// CHECK: Keyword: "int" [77:5 - 77:8] VarDecl=second:77:9 (Definition)
|
||||
// CHECK: Identifier: "second" [77:9 - 77:15] VarDecl=second:77:9 (Definition)
|
||||
// CHECK: Punctuation: "=" [77:16 - 77:17] VarDecl=second:77:9 (Definition)
|
||||
|
@ -404,13 +404,13 @@ static Rdar8595462_A * Rdar8595462_staticVar;
|
|||
// CHECK: Identifier: "self" [77:19 - 77:23] DeclRefExpr=self:0:0
|
||||
// CHECK: Identifier: "foo" [77:24 - 77:27] ObjCMessageExpr=foo::66:1
|
||||
// CHECK: Punctuation: ":" [77:27 - 77:28] ObjCMessageExpr=foo::66:1
|
||||
// CHECK: Literal: "0" [77:28 - 77:29] UnexposedExpr=
|
||||
// CHECK: Literal: "0" [77:28 - 77:29] IntegerLiteral=
|
||||
// CHECK: Punctuation: "]" [77:29 - 77:30] ObjCMessageExpr=foo::66:1
|
||||
// CHECK: Punctuation: ";" [77:30 - 77:31] UnexposedStmt=
|
||||
// CHECK: Keyword: "return" [78:5 - 78:11] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [77:30 - 77:31] DeclStmt=
|
||||
// CHECK: Keyword: "return" [78:5 - 78:11] ReturnStmt=
|
||||
// CHECK: Identifier: "local" [78:12 - 78:17] DeclRefExpr=local:76:9
|
||||
// CHECK: Punctuation: ";" [78:17 - 78:18] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [79:1 - 79:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [78:17 - 78:18] CompoundStmt=
|
||||
// CHECK: Punctuation: "}" [79:1 - 79:2] CompoundStmt=
|
||||
// CHECK: Punctuation: "-" [80:1 - 80:2] ObjCInstanceMethodDecl=othermethod::80:1 (Definition)
|
||||
// CHECK: Punctuation: "(" [80:3 - 80:4] ObjCInstanceMethodDecl=othermethod::80:1 (Definition)
|
||||
// CHECK: Keyword: "int" [80:4 - 80:7] ObjCInstanceMethodDecl=othermethod::80:1 (Definition)
|
||||
|
@ -422,14 +422,14 @@ static Rdar8595462_A * Rdar8595462_staticVar;
|
|||
// CHECK: Punctuation: "*" [80:35 - 80:36] ParmDecl=ibt:80:37 (Definition)
|
||||
// CHECK: Punctuation: ")" [80:36 - 80:37] ParmDecl=ibt:80:37 (Definition)
|
||||
// CHECK: Identifier: "ibt" [80:37 - 80:40] ParmDecl=ibt:80:37 (Definition)
|
||||
// CHECK: Punctuation: "{" [80:41 - 80:42] UnexposedStmt=
|
||||
// CHECK: Keyword: "return" [81:3 - 81:9] UnexposedStmt=
|
||||
// CHECK: Punctuation: "*" [81:10 - 81:11] UnexposedExpr=
|
||||
// CHECK: Punctuation: "{" [80:41 - 80:42] CompoundStmt=
|
||||
// CHECK: Keyword: "return" [81:3 - 81:9] ReturnStmt=
|
||||
// CHECK: Punctuation: "*" [81:10 - 81:11] UnaryOperator=
|
||||
// CHECK: Identifier: "ibt" [81:11 - 81:14] DeclRefExpr=ibt:80:37
|
||||
// CHECK: Punctuation: "." [81:14 - 81:15] MemberRefExpr=aPropOutlet:56:26
|
||||
// CHECK: Identifier: "aPropOutlet" [81:15 - 81:26] MemberRefExpr=aPropOutlet:56:26
|
||||
// CHECK: Punctuation: ";" [81:26 - 81:27] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [82:1 - 82:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [81:26 - 81:27] CompoundStmt=
|
||||
// CHECK: Punctuation: "}" [82:1 - 82:2] CompoundStmt=
|
||||
// CHECK: Punctuation: "@" [83:1 - 83:2] ObjCImplementationDecl=R7974151:70:17 (Definition)
|
||||
// CHECK: Keyword: "end" [83:2 - 83:5]
|
||||
// CHECK: Punctuation: "@" [85:1 - 85:2] ObjCProtocolDecl=Proto:85:11 (Definition)
|
||||
|
@ -441,17 +441,17 @@ static Rdar8595462_A * Rdar8595462_staticVar;
|
|||
// CHECK: Identifier: "f" [87:6 - 87:7] FunctionDecl=f:87:6 (Definition)
|
||||
// CHECK: Punctuation: "(" [87:7 - 87:8] FunctionDecl=f:87:6 (Definition)
|
||||
// CHECK: Punctuation: ")" [87:8 - 87:9] FunctionDecl=f:87:6 (Definition)
|
||||
// CHECK: Punctuation: "{" [87:10 - 87:11] UnexposedStmt=
|
||||
// CHECK: Punctuation: "(" [88:3 - 88:4] UnexposedExpr=
|
||||
// CHECK: Keyword: "void" [88:4 - 88:8] UnexposedExpr=
|
||||
// CHECK: Punctuation: ")" [88:8 - 88:9] UnexposedExpr=
|
||||
// CHECK: Punctuation: "@" [88:9 - 88:10] UnexposedExpr=Proto:85:1
|
||||
// CHECK: Keyword: "protocol" [88:10 - 88:18] UnexposedExpr=Proto:85:1
|
||||
// CHECK: Punctuation: "(" [88:18 - 88:19] UnexposedExpr=Proto:85:1
|
||||
// CHECK: Identifier: "Proto" [88:19 - 88:24] UnexposedExpr=Proto:85:1
|
||||
// CHECK: Punctuation: ")" [88:24 - 88:25] UnexposedExpr=Proto:85:1
|
||||
// CHECK: Punctuation: ";" [88:25 - 88:26] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [89:1 - 89:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: "{" [87:10 - 87:11] CompoundStmt=
|
||||
// CHECK: Punctuation: "(" [88:3 - 88:4] CStyleCastExpr=
|
||||
// CHECK: Keyword: "void" [88:4 - 88:8] CStyleCastExpr=
|
||||
// CHECK: Punctuation: ")" [88:8 - 88:9] CStyleCastExpr=
|
||||
// CHECK: Punctuation: "@" [88:9 - 88:10] ObjCProtocolExpr=Proto:85:1
|
||||
// CHECK: Keyword: "protocol" [88:10 - 88:18] ObjCProtocolExpr=Proto:85:1
|
||||
// CHECK: Punctuation: "(" [88:18 - 88:19] ObjCProtocolExpr=Proto:85:1
|
||||
// CHECK: Identifier: "Proto" [88:19 - 88:24] ObjCProtocolExpr=Proto:85:1
|
||||
// CHECK: Punctuation: ")" [88:24 - 88:25] ObjCProtocolExpr=Proto:85:1
|
||||
// CHECK: Punctuation: ";" [88:25 - 88:26] CompoundStmt=
|
||||
// CHECK: Punctuation: "}" [89:1 - 89:2] CompoundStmt=
|
||||
// CHECK: Punctuation: "@" [93:1 - 93:2] UnexposedDecl=[93:8]
|
||||
// CHECK: Keyword: "class" [93:2 - 93:7] UnexposedDecl=[93:8]
|
||||
// CHECK: Identifier: "Rdar8595462_A" [93:8 - 93:21] ObjCClassRef=Rdar8595462_A:93:8
|
||||
|
@ -469,17 +469,17 @@ static Rdar8595462_A * Rdar8595462_staticVar;
|
|||
// CHECK: Identifier: "Rdar8595462_aFunction" [98:17 - 98:38] FunctionDecl=Rdar8595462_aFunction:98:17 (Definition)
|
||||
// CHECK: Punctuation: "(" [98:38 - 98:39] FunctionDecl=Rdar8595462_aFunction:98:17 (Definition)
|
||||
// CHECK: Punctuation: ")" [98:39 - 98:40] FunctionDecl=Rdar8595462_aFunction:98:17 (Definition)
|
||||
// CHECK: Punctuation: "{" [98:41 - 98:42] UnexposedStmt=
|
||||
// CHECK: Punctuation: "{" [98:41 - 98:42] CompoundStmt=
|
||||
// CHECK: Identifier: "Rdar8595462_A" [99:3 - 99:16] ObjCClassRef=Rdar8595462_A:93:8
|
||||
// CHECK: Punctuation: "*" [99:17 - 99:18] VarDecl=localVar:99:19 (Definition)
|
||||
// CHECK: Identifier: "localVar" [99:19 - 99:27] VarDecl=localVar:99:19 (Definition)
|
||||
// CHECK: Punctuation: "=" [99:28 - 99:29] VarDecl=localVar:99:19 (Definition)
|
||||
// CHECK: Literal: "0" [99:30 - 99:31] UnexposedExpr=
|
||||
// CHECK: Punctuation: ";" [99:31 - 99:32] UnexposedStmt=
|
||||
// CHECK: Keyword: "return" [100:3 - 100:9] UnexposedStmt=
|
||||
// CHECK: Literal: "0" [99:30 - 99:31] IntegerLiteral=
|
||||
// CHECK: Punctuation: ";" [99:31 - 99:32] DeclStmt=
|
||||
// CHECK: Keyword: "return" [100:3 - 100:9] ReturnStmt=
|
||||
// CHECK: Identifier: "localVar" [100:10 - 100:18] DeclRefExpr=localVar:99:19
|
||||
// CHECK: Punctuation: ";" [100:18 - 100:19] UnexposedStmt=
|
||||
// CHECK: Punctuation: "}" [101:1 - 101:2] UnexposedStmt=
|
||||
// CHECK: Punctuation: ";" [100:18 - 100:19] CompoundStmt=
|
||||
// CHECK: Punctuation: "}" [101:1 - 101:2] CompoundStmt=
|
||||
// CHECK: Keyword: "static" [102:1 - 102:7] ObjCImplementationDecl=Rdar8595462_B:97:17 (Definition)
|
||||
// CHECK: Identifier: "Rdar8595462_A" [102:8 - 102:21] ObjCClassRef=Rdar8595462_A:93:8
|
||||
// CHECK: Punctuation: "*" [102:22 - 102:23] VarDecl=Rdar8595462_staticVar:102:24
|
||||
|
@ -521,11 +521,11 @@ static Rdar8595462_A * Rdar8595462_staticVar;
|
|||
// CHECK-INSIDE_BLOCK: Identifier: "self" [127:19 - 127:23] DeclRefExpr=self:0:0
|
||||
// CHECK-INSIDE_BLOCK: Identifier: "blah" [127:24 - 127:28] ObjCMessageExpr=blah::124:1
|
||||
// CHECK-INSIDE_BLOCK: Punctuation: ":" [127:28 - 127:29] ObjCMessageExpr=blah::124:1
|
||||
// CHECK-INSIDE_BLOCK: Literal: "5" [127:29 - 127:30] UnexposedExpr=
|
||||
// CHECK-INSIDE_BLOCK: Literal: "5" [127:29 - 127:30] IntegerLiteral=
|
||||
// CHECK-INSIDE_BLOCK: Punctuation: "," [127:30 - 127:31] ObjCMessageExpr=blah::124:1
|
||||
// CHECK-INSIDE_BLOCK: Identifier: "x" [127:32 - 127:33] DeclRefExpr=x:125:19
|
||||
// CHECK-INSIDE_BLOCK: Punctuation: "]" [127:33 - 127:34] ObjCMessageExpr=blah::124:1
|
||||
// CHECK-INSIDE_BLOCK: Punctuation: ";" [127:34 - 127:35] UnexposedStmt=
|
||||
// CHECK-INSIDE_BLOCK: Punctuation: ";" [127:34 - 127:35] DeclStmt=
|
||||
// CHECK-INSIDE_BLOCK: Identifier: "Rdar8778404" [128:5 - 128:16] ObjCClassRef=Rdar8778404:120:12
|
||||
// CHECK-INSIDE_BLOCK: Punctuation: "*" [128:17 - 128:18] VarDecl=a:128:18 (Definition)
|
||||
// CHECK-INSIDE_BLOCK: Identifier: "a" [128:18 - 128:19] VarDecl=a:128:18 (Definition)
|
||||
|
|
|
@ -10,25 +10,25 @@ void test() {
|
|||
}
|
||||
|
||||
// CHECK: blocks.c:6:6: FunctionDecl=test:6:6 (Definition) Extent=[6:1 - 10:2]
|
||||
// CHECK: blocks.c:6:13: UnexposedStmt= Extent=[6:13 - 10:2]
|
||||
// CHECK: blocks.c:7:3: UnexposedStmt= Extent=[7:3 - 7:26]
|
||||
// CHECK: blocks.c:6:13: CompoundStmt= Extent=[6:13 - 10:2]
|
||||
// CHECK: blocks.c:7:3: DeclStmt= Extent=[7:3 - 7:26]
|
||||
// CHECK: blocks.c:7:21: VarDecl=_foo:7:21 (Definition) Extent=[7:3 - 7:25]
|
||||
// CHECK: blocks.c:7:17: TypeRef=struct foo:4:8 Extent=[7:17 - 7:20]
|
||||
// CHECK: blocks.c:8:11: VarDecl=i:8:11 (Definition) Extent=[8:3 - 8:16]
|
||||
// CHECK: blocks.c:8:15: UnexposedExpr= Extent=[8:15 - 8:16]
|
||||
// CHECK: blocks.c:8:15: IntegerLiteral= Extent=[8:15 - 8:16]
|
||||
// CHECK: blocks.c:9:3: CallExpr= Extent=[9:3 - 9:65]
|
||||
// CHECK: blocks.c:9:3: UnexposedExpr= Extent=[9:3 - 9:58]
|
||||
// CHECK: blocks.c:9:3: BlockExpr= Extent=[9:3 - 9:58]
|
||||
// CHECK: blocks.c:9:5: TypeRef=int_t:3:13 Extent=[9:5 - 9:10]
|
||||
// CHECK: blocks.c:9:23: ParmDecl=foo:9:23 (Definition) Extent=[9:11 - 9:26]
|
||||
// CHECK: blocks.c:9:18: TypeRef=struct foo:4:8 Extent=[9:18 - 9:21]
|
||||
// CHECK: blocks.c:9:28: UnexposedStmt= Extent=[9:28 - 9:58]
|
||||
// CHECK: blocks.c:9:30: UnexposedStmt= Extent=[9:30 - 9:55]
|
||||
// CHECK: blocks.c:9:37: UnexposedExpr= Extent=[9:37 - 9:55]
|
||||
// CHECK: blocks.c:9:37: UnexposedExpr= Extent=[9:37 - 9:51]
|
||||
// CHECK: blocks.c:9:28: CompoundStmt= Extent=[9:28 - 9:58]
|
||||
// CHECK: blocks.c:9:30: ReturnStmt= Extent=[9:30 - 9:55]
|
||||
// CHECK: blocks.c:9:37: BinaryOperator= Extent=[9:37 - 9:55]
|
||||
// CHECK: blocks.c:9:37: CStyleCastExpr= Extent=[9:37 - 9:51]
|
||||
// CHECK: blocks.c:9:38: TypeRef=int_t:3:13 Extent=[9:38 - 9:43]
|
||||
// CHECK: blocks.c:9:50: MemberRefExpr=x:4:19 SingleRefName=[9:50 - 9:51] RefName=[9:50 - 9:51] Extent=[9:45 - 9:51]
|
||||
// CHECK: blocks.c:9:45: DeclRefExpr=foo:9:23 Extent=[9:45 - 9:48]
|
||||
// CHECK: blocks.c:9:54: DeclRefExpr=i:8:11 Extent=[9:54 - 9:55]
|
||||
// CHECK: blocks.c:9:59: UnexposedExpr= Extent=[9:59 - 9:64]
|
||||
// CHECK: blocks.c:9:59: UnaryOperator= Extent=[9:59 - 9:64]
|
||||
// CHECK: blocks.c:9:60: DeclRefExpr=_foo:7:21 Extent=[9:60 - 9:64]
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ struct X0 {};
|
|||
// CHECK: c-index-api-loadTU-test.m:50:13: VarDecl=d:50:13 (Definition) Extent=[50:2 - 50:14]
|
||||
// CHECK: c-index-api-loadTU-test.m:50:2: TypeRef=id:0:0 Extent=[50:2 - 50:4]
|
||||
// CHECK: c-index-api-loadTU-test.m:50:6: ObjCProtocolRef=Proto:25:11 Extent=[50:6 - 50:11]
|
||||
// CHECK: c-index-api-loadTU-test.m:51:2: UnexposedExpr= Extent=[51:2 - 51:7]
|
||||
// CHECK: c-index-api-loadTU-test.m:51:2: BinaryOperator= Extent=[51:2 - 51:7]
|
||||
// CHECK: c-index-api-loadTU-test.m:51:2: DeclRefExpr=d:50:13 Extent=[51:2 - 51:3]
|
||||
// CHECK: c-index-api-loadTU-test.m:51:6: UnexposedExpr=c:49:12 Extent=[51:6 - 51:7]
|
||||
// CHECK: c-index-api-loadTU-test.m:51:6: DeclRefExpr=c:49:12 Extent=[51:6 - 51:7]
|
||||
|
@ -137,7 +137,7 @@ struct X0 {};
|
|||
// CHECK: c-index-api-loadTU-test.m:54:3: UnexposedExpr=main:46:5 Extent=[54:3 - 54:7]
|
||||
// CHECK: c-index-api-loadTU-test.m:54:3: DeclRefExpr=main:46:5 Extent=[54:3 - 54:7]
|
||||
// CHECK: c-index-api-loadTU-test.m:54:8: DeclRefExpr=someEnum:43:3 Extent=[54:8 - 54:16]
|
||||
// CHECK: c-index-api-loadTU-test.m:54:18: UnexposedExpr= Extent=[54:18 - 54:36]
|
||||
// CHECK: c-index-api-loadTU-test.m:54:18: CStyleCastExpr= Extent=[54:18 - 54:36]
|
||||
// CHECK: c-index-api-loadTU-test.m:54:33: DeclRefExpr=bee:47:8 Extent=[54:33 - 54:36]
|
||||
// CHECK: c-index-api-loadTU-test.m:62:12: ObjCInterfaceDecl=TestAttributes:62:12 Extent=[62:1 - 67:5]
|
||||
// CHECK: c-index-api-loadTU-test.m:63:15: ObjCIvarDecl=anOutlet:63:15 (Definition) Extent=[58:18 - 63:23]
|
||||
|
|
|
@ -111,18 +111,18 @@ void f() {
|
|||
// CHECK: [44:19 - 44:21] FunctionDecl=main:44:5 (Definition)
|
||||
// CHECK: [44:21 - 44:40] ParmDecl=argv:44:34 (Definition)
|
||||
// CHECK: [44:40 - 44:42] FunctionDecl=main:44:5 (Definition)
|
||||
// CHECK: [44:42 - 45:2] UnexposedStmt=
|
||||
// CHECK: [44:42 - 45:2] CompoundStmt=
|
||||
// CHECK: [45:2 - 45:5] ObjCClassRef=Baz:31:12
|
||||
// CHECK: [45:5 - 45:11] VarDecl=bee:45:8 (Definition)
|
||||
// CHECK: [45:11 - 45:12] UnexposedStmt=
|
||||
// CHECK: [45:12 - 46:2] UnexposedStmt=
|
||||
// CHECK: [45:11 - 45:12] DeclStmt=
|
||||
// CHECK: [45:12 - 46:2] CompoundStmt=
|
||||
// CHECK: [46:2 - 46:4] TypeRef=id:0:0
|
||||
// CHECK: [46:4 - 46:9] VarDecl=a:46:5 (Definition)
|
||||
// CHECK: [46:9 - 46:10] ObjCMessageExpr=foo:7:1
|
||||
// CHECK: [46:10 - 46:13] DeclRefExpr=bee:45:8
|
||||
// CHECK: [46:13 - 46:18] ObjCMessageExpr=foo:7:1
|
||||
// CHECK: [46:18 - 46:19] UnexposedStmt=
|
||||
// CHECK: [46:19 - 47:2] UnexposedStmt=
|
||||
// CHECK: [46:18 - 46:19] DeclStmt=
|
||||
// CHECK: [46:19 - 47:2] CompoundStmt=
|
||||
// CHECK: [47:2 - 47:4] TypeRef=id:0:0
|
||||
// CHECK: [47:4 - 47:6] VarDecl=c:47:12 (Definition)
|
||||
// CHECK: [47:6 - 47:10] ObjCProtocolRef=SubP:27:1
|
||||
|
@ -130,22 +130,22 @@ void f() {
|
|||
// CHECK: [47:16 - 47:17] ObjCMessageExpr=fooC:8:1
|
||||
// CHECK: [47:17 - 47:20] ObjCClassRef=Foo:3:12
|
||||
// CHECK: [47:20 - 47:26] ObjCMessageExpr=fooC:8:1
|
||||
// CHECK: [47:26 - 47:27] UnexposedStmt=
|
||||
// CHECK: [47:27 - 48:2] UnexposedStmt=
|
||||
// CHECK: [47:26 - 47:27] DeclStmt=
|
||||
// CHECK: [47:27 - 48:2] CompoundStmt=
|
||||
// CHECK: [48:2 - 48:4] TypeRef=id:0:0
|
||||
// CHECK: [48:4 - 48:6] VarDecl=d:48:13 (Definition)
|
||||
// CHECK: [48:6 - 48:11] ObjCProtocolRef=Proto:23:1
|
||||
// CHECK: [48:11 - 48:14] VarDecl=d:48:13 (Definition)
|
||||
// CHECK: [48:14 - 48:15] UnexposedStmt=
|
||||
// CHECK: [48:15 - 49:2] UnexposedStmt=
|
||||
// CHECK: [48:14 - 48:15] DeclStmt=
|
||||
// CHECK: [48:15 - 49:2] CompoundStmt=
|
||||
// CHECK: [49:2 - 49:3] DeclRefExpr=d:48:13
|
||||
// CHECK: [49:3 - 49:6] UnexposedExpr=
|
||||
// CHECK: [49:3 - 49:6] BinaryOperator=
|
||||
// CHECK: [49:6 - 49:7] DeclRefExpr=c:47:12
|
||||
// CHECK: [49:7 - 50:2] UnexposedStmt=
|
||||
// CHECK: [49:7 - 50:2] CompoundStmt=
|
||||
// CHECK: [50:2 - 50:3] ObjCMessageExpr=pMethod:24:1
|
||||
// CHECK: [50:3 - 50:4] DeclRefExpr=d:48:13
|
||||
// CHECK: [50:4 - 50:13] ObjCMessageExpr=pMethod:24:1
|
||||
// CHECK: [50:13 - 51:2] UnexposedStmt=
|
||||
// CHECK: [50:13 - 51:2] CompoundStmt=
|
||||
// CHECK: [51:2 - 51:3] ObjCMessageExpr=catMethodWithFloat::19:1
|
||||
// CHECK: [51:3 - 51:6] DeclRefExpr=bee:45:8
|
||||
// CHECK: [51:6 - 51:26] ObjCMessageExpr=catMethodWithFloat::19:1
|
||||
|
@ -153,15 +153,15 @@ void f() {
|
|||
// CHECK: [51:27 - 51:30] DeclRefExpr=bee:45:8
|
||||
// CHECK: [51:30 - 51:43] ObjCMessageExpr=floatMethod:20:1
|
||||
// CHECK: [51:43 - 51:44] ObjCMessageExpr=catMethodWithFloat::19:1
|
||||
// CHECK: [51:44 - 52:3] UnexposedStmt=
|
||||
// CHECK: [51:44 - 52:3] CompoundStmt=
|
||||
// CHECK: [52:3 - 52:7] DeclRefExpr=main:44:5
|
||||
// CHECK: [52:7 - 52:8] CallExpr=main:44:5
|
||||
// CHECK: [52:8 - 52:16] DeclRefExpr=someEnum:41:3
|
||||
// CHECK: [52:16 - 52:18] CallExpr=main:44:5
|
||||
// CHECK: [52:18 - 52:33] UnexposedExpr=
|
||||
// CHECK: [52:18 - 52:33] CStyleCastExpr=
|
||||
// CHECK: [52:33 - 52:36] DeclRefExpr=bee:45:8
|
||||
// CHECK: [52:36 - 52:37] CallExpr=main:44:5
|
||||
// CHECK: [52:37 - 53:2] UnexposedStmt=
|
||||
// CHECK: [52:37 - 53:2] CompoundStmt=
|
||||
// CHECK: [55:9 - 55:26] macro definition=CONCAT
|
||||
// CHECK: [57:1 - 57:10] FunctionDecl=f:57:6 (Definition)
|
||||
// CHECK: [58:4 - 58:8] VarDecl=my_var:58:8 (Definition)
|
||||
|
|
|
@ -26,7 +26,7 @@ int main()
|
|||
}
|
||||
|
||||
// RUN: c-index-test -test-load-source all %s | FileCheck %s
|
||||
// CHECK: cursor-ref-names.cpp:17:5: UnexposedStmt= Extent=[17:5 - 17:14]
|
||||
// CHECK: cursor-ref-names.cpp:17:5: DeclStmt= Extent=[17:5 - 17:14]
|
||||
// CHECK: cursor-ref-names.cpp:17:9: VarDecl=inst:17:9 (Definition) Extent=[17:5 - 17:13]
|
||||
// CHECK: cursor-ref-names.cpp:17:5: TypeRef=struct Sub:7:8 Extent=[17:5 - 17:8]
|
||||
// CHECK: cursor-ref-names.cpp:17:9: CallExpr=Sub:7:8 Extent=[17:9 - 17:13]
|
||||
|
|
|
@ -135,7 +135,7 @@ struct SuperPair : Pair<int, int>, Pair<T, U> { };
|
|||
// CHECK-LOAD: index-templates.cpp:30:21: TypeRef=struct Z2:20:8 Extent=[30:21 - 30:23]
|
||||
// CHECK-LOAD: index-templates.cpp:35:16: VarDecl=OneDimension:35:16 (Definition) Extent=[35:1 - 35:32]
|
||||
// CHECK-LOAD: index-templates.cpp:35:31: UnexposedExpr= Extent=[35:31 - 35:32]
|
||||
// CHECK-LOAD: index-templates.cpp:35:31: UnexposedExpr= Extent=[35:31 - 35:32]
|
||||
// CHECK-LOAD: index-templates.cpp:35:31: IntegerLiteral= Extent=[35:31 - 35:32]
|
||||
// CHECK-LOAD: index-templates.cpp:37:8: ClassTemplate=array:37:8 (Definition) Extent=[36:1 - 37:17]
|
||||
// CHECK-LOAD: index-templates.cpp:36:19: TemplateTypeParameter=T:36:19 (Definition) Extent=[36:10 - 36:20]
|
||||
// CHECK-LOAD: index-templates.cpp:36:31: NonTypeTemplateParameter=Dimensions:36:31 (Definition) Extent=[36:22 - 36:56]
|
||||
|
|
|
@ -132,17 +132,17 @@ void casts(int *ip) {
|
|||
// CHECK: load-stmts.cpp:4:23: DeclRefExpr=x:3:12 Extent=[4:23 - 4:24]
|
||||
// CHECK: load-stmts.cpp:4:19: UnexposedExpr=z:4:19 Extent=[4:19 - 4:20]
|
||||
// CHECK: load-stmts.cpp:4:19: DeclRefExpr=z:4:19 Extent=[4:19 - 4:20]
|
||||
// CHECK: load-stmts.cpp:4:26: UnexposedExpr= Extent=[4:26 - 4:29]
|
||||
// CHECK: load-stmts.cpp:4:26: UnaryOperator= Extent=[4:26 - 4:29]
|
||||
// CHECK: load-stmts.cpp:4:28: DeclRefExpr=x:3:12 Extent=[4:28 - 4:29]
|
||||
// CHECK: load-stmts.cpp:6:10: VarDecl=z2:6:10 (Definition) Extent=[6:7 - 6:17]
|
||||
// CHECK: load-stmts.cpp:6:7: TypeRef=T:1:13 Extent=[6:7 - 6:8]
|
||||
// CHECK: load-stmts.cpp:6:15: UnexposedExpr= Extent=[6:15 - 6:17]
|
||||
// CHECK: load-stmts.cpp:6:15: UnaryOperator= Extent=[6:15 - 6:17]
|
||||
// CHECK: load-stmts.cpp:6:16: DeclRefExpr=x:3:12 Extent=[6:16 - 6:17]
|
||||
// CHECK: load-stmts.cpp:6:10: UnexposedExpr=z2:6:10 Extent=[6:10 - 6:12]
|
||||
// CHECK: load-stmts.cpp:6:10: DeclRefExpr=z2:6:10 Extent=[6:10 - 6:12]
|
||||
// CHECK: load-stmts.cpp:7:13: VarDecl=z3:7:13 (Definition) Extent=[7:10 - 7:20]
|
||||
// CHECK: load-stmts.cpp:7:10: TypeRef=T:1:13 Extent=[7:10 - 7:11]
|
||||
// CHECK: load-stmts.cpp:7:18: UnexposedExpr= Extent=[7:18 - 7:20]
|
||||
// CHECK: load-stmts.cpp:7:18: UnaryOperator= Extent=[7:18 - 7:20]
|
||||
// CHECK: load-stmts.cpp:7:19: DeclRefExpr=x:3:12 Extent=[7:19 - 7:20]
|
||||
// CHECK: load-stmts.cpp:7:13: UnexposedExpr=z3:7:13 Extent=[7:13 - 7:15]
|
||||
// CHECK: load-stmts.cpp:7:13: DeclRefExpr=z3:7:13 Extent=[7:13 - 7:15]
|
||||
|
@ -150,7 +150,7 @@ void casts(int *ip) {
|
|||
// CHECK: load-stmts.cpp:8:11: TypeRef=T:1:13 Extent=[8:11 - 8:12]
|
||||
// CHECK: load-stmts.cpp:8:18: DeclRefExpr=x:3:12 Extent=[8:18 - 8:19]
|
||||
// CHECK: load-stmts.cpp:8:13: DeclRefExpr=z4:8:13 Extent=[8:13 - 8:15]
|
||||
// CHECK: load-stmts.cpp:9:8: UnexposedExpr= Extent=[9:8 - 9:10]
|
||||
// CHECK: load-stmts.cpp:9:8: IntegerLiteral= Extent=[9:8 - 9:10]
|
||||
// CHECK: load-stmts.cpp:14:7: ClassDecl=A:14:7 (Definition) Extent=[14:1 - 16:2]
|
||||
// CHECK: load-stmts.cpp:15:8: CXXMethod=doA:15:8 Extent=[15:3 - 15:13]
|
||||
// CHECK: load-stmts.cpp:18:7: ClassDecl=B:18:7 (Definition) Extent=[18:1 - 20:2]
|
||||
|
@ -202,7 +202,7 @@ void casts(int *ip) {
|
|||
// CHECK: load-stmts.cpp:80:21: DeclRefExpr=j:79:44 Extent=[80:21 - 80:22]
|
||||
// CHECK: load-stmts.cpp:82:9: TypeRef=Integer:81:15 Extent=[82:9 - 82:16]
|
||||
// CHECK: load-stmts.cpp:82:17: DeclRefExpr=i:79:37 Extent=[82:17 - 82:18]
|
||||
// CHECK: load-stmts.cpp:83:3: UnexposedExpr= Extent=[83:3 - 83:13]
|
||||
// CHECK: load-stmts.cpp:83:3: CStyleCastExpr= Extent=[83:3 - 83:13]
|
||||
// CHECK: load-stmts.cpp:83:4: TypeRef=Integer:81:15 Extent=[83:4 - 83:11]
|
||||
// CHECK: load-stmts.cpp:83:12: UnexposedExpr=i:79:37 Extent=[83:12 - 83:13]
|
||||
// CHECK: load-stmts.cpp:83:12: DeclRefExpr=i:79:37 Extent=[83:12 - 83:13]
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
// CHECK: local-symbols.m:13:1: ObjCInstanceMethodDecl=bar:13:1 (Definition) [Overrides @9:1] Extent=[13:1 - 15:2]
|
||||
// CHECK: local-symbols.m:13:4: TypeRef=id:0:0 Extent=[13:4 - 13:6]
|
||||
// CHECK: local-symbols.m:14:10: UnexposedExpr= Extent=[14:10 - 14:11]
|
||||
// CHECK: local-symbols.m:14:10: UnexposedExpr= Extent=[14:10 - 14:11]
|
||||
// CHECK: local-symbols.m:14:10: IntegerLiteral= Extent=[14:10 - 14:11]
|
||||
// CHECK: local-symbols.m:20:11: ObjCProtocolDecl=Prot8380046:20:11 (Definition) Extent=[20:1 - 21:5]
|
||||
// CHECK: local-symbols.m:23:12: ObjCInterfaceDecl=R8380046:23:12 Extent=[23:1 - 24:5]
|
||||
// CHECK: local-symbols.m:26:12: ObjCCategoryDecl=:26:12 Extent=[26:1 - 27:5]
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -9,11 +9,11 @@ void f(int x) {
|
|||
// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 local -I %S/Inputs -include %t %s 2> %t.stderr.txt | FileCheck %s
|
||||
// RUN: FileCheck -check-prefix CHECK-DIAG %s < %t.stderr.txt
|
||||
// CHECK: preamble.h:1:12: FunctionDecl=bar:1:12 (Definition) Extent=[1:1 - 6:2]
|
||||
// CHECK: preamble.h:4:3: UnexposedExpr= Extent=[4:3 - 4:13]
|
||||
// CHECK: preamble.h:4:3: BinaryOperator= Extent=[4:3 - 4:13]
|
||||
// CHECK: preamble.h:4:3: DeclRefExpr=ptr:2:8 Extent=[4:3 - 4:6]
|
||||
// CHECK: preamble.h:4:9: UnexposedExpr=ptr1:3:10 Extent=[4:9 - 4:13]
|
||||
// CHECK: preamble.h:4:9: DeclRefExpr=ptr1:3:10 Extent=[4:9 - 4:13]
|
||||
// CHECK: preamble.h:5:10: UnexposedExpr= Extent=[5:10 - 5:11]
|
||||
// CHECK: preamble.h:5:10: IntegerLiteral= Extent=[5:10 - 5:11]
|
||||
// CHECK: preamble.c:3:5: FunctionDecl=wibble:3:5 Extent=[3:1 - 3:16]
|
||||
// CHECK: preamble.c:3:15: ParmDecl=:3:15 (Definition) Extent=[3:12 - 3:16]
|
||||
// CHECK-DIAG: preamble.h:4:7:{4:9-4:13}: warning: incompatible pointer types assigning to 'int *' from 'float *'
|
||||
|
|
|
@ -6,10 +6,10 @@ int main() { }
|
|||
// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 local -fno-delayed-template-parsing -I %S/Inputs -include %t %s | FileCheck %s
|
||||
// CHECK: preamble_macro_template.h:4:6: FunctionDecl=foo:4:6 (Definition) [Specialization of foo:4:6] Extent=[4:1 - 6:2]
|
||||
// CHECK: preamble_macro_template.h:4:13: ParmDecl=p:4:13 (Definition) Extent=[4:10 - 4:14]
|
||||
// CHECK: preamble_macro_template.h:4:16: UnexposedStmt= Extent=[4:16 - 6:2]
|
||||
// CHECK: preamble_macro_template.h:5:3: UnexposedExpr= Extent=[5:3 - 5:27]
|
||||
// CHECK: preamble_macro_template.h:1:21: UnexposedExpr= Extent=[1:21 - 5:27]
|
||||
// CHECK: preamble_macro_template.h:5:25: UnexposedExpr= Extent=[5:25 - 5:26]
|
||||
// CHECK: preamble_macro_template.h:4:16: CompoundStmt= Extent=[4:16 - 6:2]
|
||||
// CHECK: preamble_macro_template.h:5:3: CStyleCastExpr= Extent=[5:3 - 5:27]
|
||||
// CHECK: preamble_macro_template.h:1:21: CXXStaticCastExpr= Extent=[1:21 - 5:27]
|
||||
// CHECK: preamble_macro_template.h:5:25: UnexposedExpr= Extent=[5:25 - 5:26]
|
||||
// CHECK: preamble_macro_template.h:5:25: IntegerLiteral= Extent=[5:25 - 5:26]
|
||||
// CHECK: preamble_macro_template.cpp:3:5: FunctionDecl=main:3:5 (Definition) Extent=[3:1 - 3:15]
|
||||
// CHECK: preamble_macro_template.cpp:3:12: UnexposedStmt= Extent=[3:12 - 3:15]
|
||||
// CHECK: preamble_macro_template.cpp:3:12: CompoundStmt= Extent=[3:12 - 3:15]
|
||||
|
|
|
@ -15,13 +15,13 @@ typedef int ArrayType[5];
|
|||
// CHECK: ParmDecl=x:3:22 (Definition) typekind=Pointer [isPOD=1]
|
||||
// CHECK: ParmDecl=z:3:33 (Definition) typekind=Typedef [canonical=Int] [isPOD=1]
|
||||
// CHECK: TypeRef=FooType:1:13 typekind=Typedef [canonical=Int] [isPOD=1]
|
||||
// CHECK: UnexposedStmt= typekind=Invalid [isPOD=0]
|
||||
// CHECK: UnexposedStmt= typekind=Invalid [isPOD=0]
|
||||
// CHECK: CompoundStmt= typekind=Invalid [isPOD=0]
|
||||
// CHECK: DeclStmt= typekind=Invalid [isPOD=0]
|
||||
// CHECK: VarDecl=w:4:17 (Definition) typekind=Typedef const [canonical=Int] [isPOD=1]
|
||||
// CHECK: TypeRef=FooType:1:13 typekind=Typedef [canonical=Int] [isPOD=1]
|
||||
// CHECK: DeclRefExpr=z:3:33 typekind=Typedef [canonical=Int] [isPOD=1]
|
||||
// CHECK: UnexposedStmt= typekind=Invalid [isPOD=0]
|
||||
// CHECK: UnexposedExpr= typekind=Pointer [isPOD=1]
|
||||
// CHECK: ReturnStmt= typekind=Invalid [isPOD=0]
|
||||
// CHECK: BinaryOperator= typekind=Pointer [isPOD=1]
|
||||
// CHECK: DeclRefExpr=p:3:13 typekind=Pointer [isPOD=1]
|
||||
// CHECK: DeclRefExpr=z:3:33 typekind=Typedef [canonical=Int] [isPOD=1]
|
||||
// CHECK: TypedefDecl=OtherType:7:16 (Definition) typekind=Typedef [canonical=Double] [isPOD=1]
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -131,8 +131,8 @@ int test_rdar8650865(struct rdar8650865 *s) {
|
|||
// CHECK: 6:5: FunctionDecl=test_rdar8650865:6:5 (Definition) Extent=[6:1 - 124:2]
|
||||
// CHECK: 6:42: ParmDecl=s:6:42 (Definition) Extent=[6:22 - 6:43]
|
||||
// CHECK: 6:29: TypeRef=struct rdar8650865:1:8 Extent=[6:29 - 6:40]
|
||||
// CHECK: 6:45: UnexposedStmt= Extent=[6:45 - 124:2]
|
||||
// CHECK: 7:3: UnexposedStmt= Extent=[7:3 - 123:8]
|
||||
// CHECK: 6:45: CompoundStmt= Extent=[6:45 - 124:2]
|
||||
// CHECK: 7:3: ReturnStmt= Extent=[7:3 - 123:8]
|
||||
// CHECK: 123:7: MemberRefExpr=x:3:7 SingleRefName=[123:7 - 123:8] RefName=[123:7 - 123:8] Extent=[7:10 - 123:8]
|
||||
// CHECK: 122:7: MemberRefExpr=first:2:23 SingleRefName=[122:7 - 122:12] RefName=[122:7 - 122:12] Extent=[7:10 - 122:12]
|
||||
// CHECK: 121:7: MemberRefExpr=first:2:23 SingleRefName=[121:7 - 121:12] RefName=[121:7 - 121:12] Extent=[7:10 - 121:12]
|
||||
|
@ -275,33 +275,33 @@ int test_rdar8650865(struct rdar8650865 *s) {
|
|||
// CHECK-tokens: Punctuation: "*" [6:41 - 6:42] ParmDecl=s:6:42 (Definition)
|
||||
// CHECK-tokens: Identifier: "s" [6:42 - 6:43] ParmDecl=s:6:42 (Definition)
|
||||
// CHECK-tokens: Punctuation: ")" [6:43 - 6:44] FunctionDecl=test_rdar8650865:6:5 (Definition)
|
||||
// CHECK-tokens: Punctuation: "{" [6:45 - 6:46] UnexposedStmt=
|
||||
// CHECK-tokens: Keyword: "return" [7:3 - 7:9] UnexposedStmt=
|
||||
// CHECK-tokens: Punctuation: "(" [7:10 - 7:11] UnexposedExpr=
|
||||
// CHECK-tokens: Punctuation: "(" [7:11 - 7:12] UnexposedExpr=
|
||||
// CHECK-tokens: Punctuation: "(" [7:12 - 7:13] UnexposedExpr=
|
||||
// CHECK-tokens: Punctuation: "(" [7:13 - 7:14] UnexposedExpr=
|
||||
// CHECK-tokens: Punctuation: "(" [7:14 - 7:15] UnexposedExpr=
|
||||
// CHECK-tokens: Punctuation: "(" [7:15 - 7:16] UnexposedExpr=
|
||||
// CHECK-tokens: Punctuation: "{" [6:45 - 6:46] CompoundStmt=
|
||||
// CHECK-tokens: Keyword: "return" [7:3 - 7:9] ReturnStmt=
|
||||
// CHECK-tokens: Punctuation: "(" [7:10 - 7:11] ParenExpr=
|
||||
// CHECK-tokens: Punctuation: "(" [7:11 - 7:12] ParenExpr=
|
||||
// CHECK-tokens: Punctuation: "(" [7:12 - 7:13] ParenExpr=
|
||||
// CHECK-tokens: Punctuation: "(" [7:13 - 7:14] ParenExpr=
|
||||
// CHECK-tokens: Punctuation: "(" [7:14 - 7:15] ParenExpr=
|
||||
// CHECK-tokens: Punctuation: "(" [7:15 - 7:16] ParenExpr=
|
||||
// CHECK-tokens: Identifier: "s" [7:16 - 7:17] DeclRefExpr=s:6:42
|
||||
// CHECK-tokens: Punctuation: "->" [7:17 - 7:19] MemberRefExpr=first:2:23
|
||||
// CHECK-tokens: Identifier: "first" [7:19 - 7:24] MemberRefExpr=first:2:23
|
||||
// CHECK-tokens: Punctuation: ")" [7:24 - 7:25] UnexposedExpr=
|
||||
// CHECK-tokens: Punctuation: ")" [7:24 - 7:25] ParenExpr=
|
||||
// CHECK-tokens: Punctuation: "->" [7:25 - 7:27] MemberRefExpr=first:2:23
|
||||
// CHECK-tokens: Identifier: "first" [7:27 - 7:32] MemberRefExpr=first:2:23
|
||||
// CHECK-tokens: Punctuation: ")" [7:32 - 7:33] UnexposedExpr=
|
||||
// CHECK-tokens: Punctuation: ")" [7:32 - 7:33] ParenExpr=
|
||||
// CHECK-tokens: Punctuation: "->" [8:5 - 8:7] MemberRefExpr=first:2:23
|
||||
// CHECK-tokens: Identifier: "first" [8:7 - 8:12] MemberRefExpr=first:2:23
|
||||
// CHECK-tokens: Punctuation: ")" [8:12 - 8:13] UnexposedExpr=
|
||||
// CHECK-tokens: Punctuation: ")" [8:12 - 8:13] ParenExpr=
|
||||
// CHECK-tokens: Punctuation: "->" [9:5 - 9:7] MemberRefExpr=first:2:23
|
||||
// CHECK-tokens: Identifier: "first" [9:7 - 9:12] MemberRefExpr=first:2:23
|
||||
// CHECK-tokens: Punctuation: ")" [9:12 - 9:13] UnexposedExpr=
|
||||
// CHECK-tokens: Punctuation: ")" [9:12 - 9:13] ParenExpr=
|
||||
// CHECK-tokens: Punctuation: "->" [10:5 - 10:7] MemberRefExpr=first:2:23
|
||||
// CHECK-tokens: Identifier: "first" [10:7 - 10:12] MemberRefExpr=first:2:23
|
||||
// CHECK-tokens: Punctuation: ")" [10:12 - 10:13] UnexposedExpr=
|
||||
// CHECK-tokens: Punctuation: ")" [10:12 - 10:13] ParenExpr=
|
||||
// CHECK-tokens: Punctuation: "->" [11:5 - 11:7] MemberRefExpr=first:2:23
|
||||
// CHECK-tokens: Identifier: "first" [11:7 - 11:12] MemberRefExpr=first:2:23
|
||||
// CHECK-tokens: Punctuation: ")" [11:12 - 11:13] UnexposedExpr=
|
||||
// CHECK-tokens: Punctuation: ")" [11:12 - 11:13] ParenExpr=
|
||||
// CHECK-tokens: Punctuation: "->" [12:5 - 12:7] MemberRefExpr=first:2:23
|
||||
// CHECK-tokens: Identifier: "first" [12:7 - 12:12] MemberRefExpr=first:2:23
|
||||
// CHECK-tokens: Punctuation: "->" [13:5 - 13:7] MemberRefExpr=first:2:23
|
||||
|
@ -526,7 +526,7 @@ int test_rdar8650865(struct rdar8650865 *s) {
|
|||
// CHECK-tokens: Identifier: "first" [122:7 - 122:12] MemberRefExpr=first:2:23
|
||||
// CHECK-tokens: Punctuation: "->" [123:5 - 123:7] MemberRefExpr=x:3:7
|
||||
// CHECK-tokens: Identifier: "x" [123:7 - 123:8] MemberRefExpr=x:3:7
|
||||
// CHECK-tokens: Punctuation: ";" [123:8 - 123:9] UnexposedStmt=
|
||||
// CHECK-tokens: Punctuation: "}" [124:1 - 124:2] UnexposedStmt=
|
||||
// CHECK-tokens: Punctuation: ";" [123:8 - 123:9] CompoundStmt=
|
||||
// CHECK-tokens: Punctuation: "}" [124:1 - 124:2] CompoundStmt=
|
||||
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// CHECK: remap-load.c:1:13: ParmDecl=parm1:1:13 (Definition) Extent=[1:9 - 1:18]
|
||||
// CHECK: remap-load.c:1:26: ParmDecl=parm2:1:26 (Definition) Extent=[1:20 - 1:31]
|
||||
// CHECK: remap-load.c:2:10: UnexposedExpr= Extent=[2:10 - 2:23]
|
||||
// CHECK: remap-load.c:2:10: UnexposedExpr= Extent=[2:10 - 2:23]
|
||||
// CHECK: remap-load.c:2:10: BinaryOperator= Extent=[2:10 - 2:23]
|
||||
// CHECK: remap-load.c:2:10: UnexposedExpr=parm1:1:13 Extent=[2:10 - 2:15]
|
||||
// CHECK: remap-load.c:2:10: DeclRefExpr=parm1:1:13 Extent=[2:10 - 2:15]
|
||||
// CHECK: remap-load.c:2:18: DeclRefExpr=parm2:1:26 Extent=[2:18 - 2:23]
|
||||
|
|
|
@ -142,9 +142,9 @@ int test_multi_declaration(void) {
|
|||
// CHECK-source: usrs.m:3:19: FunctionDecl=my_helper:3:19 (Definition) Extent=[3:1 - 3:60]
|
||||
// CHECK-source: usrs.m:3:33: ParmDecl=x:3:33 (Definition) Extent=[3:29 - 3:34]
|
||||
// CHECK-source: usrs.m:3:40: ParmDecl=y:3:40 (Definition) Extent=[3:36 - 3:41]
|
||||
// CHECK-source: usrs.m:3:43: UnexposedStmt= Extent=[3:43 - 3:60]
|
||||
// CHECK-source: usrs.m:3:45: UnexposedStmt= Extent=[3:45 - 3:57]
|
||||
// CHECK-source: usrs.m:3:52: UnexposedExpr= Extent=[3:52 - 3:57]
|
||||
// CHECK-source: usrs.m:3:43: CompoundStmt= Extent=[3:43 - 3:60]
|
||||
// CHECK-source: usrs.m:3:45: ReturnStmt= Extent=[3:45 - 3:57]
|
||||
// CHECK-source: usrs.m:3:52: BinaryOperator= Extent=[3:52 - 3:57]
|
||||
// CHECK-source: usrs.m:3:52: DeclRefExpr=x:3:33 Extent=[3:52 - 3:53]
|
||||
// CHECK-source: usrs.m:3:56: DeclRefExpr=y:3:40 Extent=[3:56 - 3:57]
|
||||
// CHECK-source: usrs.m:5:1: EnumDecl=:5:1 (Definition) Extent=[5:1 - 8:2]
|
||||
|
@ -176,30 +176,30 @@ int test_multi_declaration(void) {
|
|||
// CHECK-source: usrs.m:34:17: ObjCImplementationDecl=Foo:34:17 (Definition) Extent=[34:1 - 45:2]
|
||||
// CHECK-source: usrs.m:35:1: ObjCInstanceMethodDecl=godzilla:35:1 (Definition) [Overrides @29:1] Extent=[35:1 - 39:2]
|
||||
// CHECK-source: usrs.m:35:4: TypeRef=id:0:0 Extent=[35:4 - 35:6]
|
||||
// CHECK-source: usrs.m:35:17: UnexposedStmt= Extent=[35:17 - 39:2]
|
||||
// CHECK-source: usrs.m:36:3: UnexposedStmt= Extent=[36:3 - 36:20]
|
||||
// CHECK-source: usrs.m:35:17: CompoundStmt= Extent=[35:17 - 39:2]
|
||||
// CHECK-source: usrs.m:36:3: DeclStmt= Extent=[36:3 - 36:20]
|
||||
// CHECK-source: usrs.m:36:14: VarDecl=a:36:14 (Definition) Extent=[36:3 - 36:19]
|
||||
// CHECK-source: usrs.m:36:18: UnexposedExpr= Extent=[36:18 - 36:19]
|
||||
// CHECK-source: usrs.m:37:3: UnexposedStmt= Extent=[37:3 - 37:16]
|
||||
// CHECK-source: usrs.m:36:18: IntegerLiteral= Extent=[36:18 - 36:19]
|
||||
// CHECK-source: usrs.m:37:3: DeclStmt= Extent=[37:3 - 37:16]
|
||||
// CHECK-source: usrs.m:37:14: VarDecl=z:37:14 Extent=[37:3 - 37:15]
|
||||
// CHECK-source: usrs.m:38:3: UnexposedStmt= Extent=[38:3 - 38:11]
|
||||
// CHECK-source: usrs.m:38:10: UnexposedExpr= Extent=[38:10 - 38:11]
|
||||
// CHECK-source: usrs.m:38:3: ReturnStmt= Extent=[38:3 - 38:11]
|
||||
// CHECK-source: usrs.m:38:10: UnexposedExpr= Extent=[38:10 - 38:11]
|
||||
// CHECK-source: usrs.m:38:10: IntegerLiteral= Extent=[38:10 - 38:11]
|
||||
// CHECK-source: usrs.m:40:1: ObjCClassMethodDecl=kingkong:40:1 (Definition) [Overrides @30:1] Extent=[40:1 - 43:2]
|
||||
// CHECK-source: usrs.m:40:4: TypeRef=id:0:0 Extent=[40:4 - 40:6]
|
||||
// CHECK-source: usrs.m:40:17: UnexposedStmt= Extent=[40:17 - 43:2]
|
||||
// CHECK-source: usrs.m:41:3: UnexposedStmt= Extent=[41:3 - 41:17]
|
||||
// CHECK-source: usrs.m:40:17: CompoundStmt= Extent=[40:17 - 43:2]
|
||||
// CHECK-source: usrs.m:41:3: DeclStmt= Extent=[41:3 - 41:17]
|
||||
// CHECK-source: usrs.m:41:7: VarDecl=local_var:41:7 (Definition) Extent=[41:3 - 41:16]
|
||||
// CHECK-source: usrs.m:42:3: UnexposedStmt= Extent=[42:3 - 42:11]
|
||||
// CHECK-source: usrs.m:42:10: UnexposedExpr= Extent=[42:10 - 42:11]
|
||||
// CHECK-source: usrs.m:42:3: ReturnStmt= Extent=[42:3 - 42:11]
|
||||
// CHECK-source: usrs.m:42:10: UnexposedExpr= Extent=[42:10 - 42:11]
|
||||
// CHECK-source: usrs.m:42:10: IntegerLiteral= Extent=[42:10 - 42:11]
|
||||
// CHECK-source: usrs.m:44:13: ObjCIvarDecl=d1:44:13 (Definition) Extent=[44:13 - 44:15]
|
||||
// CHECK-source: usrs.m:44:13: ObjCSynthesizeDecl=d1:31:15 (Definition) Extent=[44:1 - 44:15]
|
||||
// CHECK-source: usrs.m:47:5: VarDecl=z:47:5 Extent=[47:1 - 47:6]
|
||||
// CHECK-source: usrs.m:49:12: FunctionDecl=local_func:49:12 (Definition) Extent=[49:1 - 49:43]
|
||||
// CHECK-source: usrs.m:49:27: ParmDecl=x:49:27 (Definition) Extent=[49:23 - 49:28]
|
||||
// CHECK-source: usrs.m:49:30: UnexposedStmt= Extent=[49:30 - 49:43]
|
||||
// CHECK-source: usrs.m:49:32: UnexposedStmt= Extent=[49:32 - 49:40]
|
||||
// CHECK-source: usrs.m:49:30: CompoundStmt= Extent=[49:30 - 49:43]
|
||||
// CHECK-source: usrs.m:49:32: ReturnStmt= Extent=[49:32 - 49:40]
|
||||
// CHECK-source: usrs.m:49:39: DeclRefExpr=x:49:27 Extent=[49:39 - 49:40]
|
||||
// CHECK-source: usrs.m:51:12: ObjCInterfaceDecl=CWithExt:51:12 Extent=[51:1 - 53:5]
|
||||
// CHECK-source: usrs.m:52:1: ObjCInstanceMethodDecl=meth1:52:1 Extent=[52:1 - 52:14]
|
||||
|
@ -219,51 +219,51 @@ int test_multi_declaration(void) {
|
|||
// CHECK-source: usrs.m:63:17: ObjCImplementationDecl=CWithExt:63:17 (Definition) Extent=[63:1 - 67:2]
|
||||
// CHECK-source: usrs.m:64:1: ObjCInstanceMethodDecl=meth1:64:1 (Definition) [Overrides @52:1] Extent=[64:1 - 64:27]
|
||||
// CHECK-source: usrs.m:64:4: TypeRef=id:0:0 Extent=[64:4 - 64:6]
|
||||
// CHECK-source: usrs.m:64:14: UnexposedStmt= Extent=[64:14 - 64:27]
|
||||
// CHECK-source: usrs.m:64:16: UnexposedStmt= Extent=[64:16 - 64:24]
|
||||
// CHECK-source: usrs.m:64:23: UnexposedExpr= Extent=[64:23 - 64:24]
|
||||
// CHECK-source: usrs.m:64:14: CompoundStmt= Extent=[64:14 - 64:27]
|
||||
// CHECK-source: usrs.m:64:16: ReturnStmt= Extent=[64:16 - 64:24]
|
||||
// CHECK-source: usrs.m:64:23: UnexposedExpr= Extent=[64:23 - 64:24]
|
||||
// CHECK-source: usrs.m:64:23: IntegerLiteral= Extent=[64:23 - 64:24]
|
||||
// CHECK-source: usrs.m:65:1: ObjCInstanceMethodDecl=meth2:65:1 (Definition) [Overrides @55:1] Extent=[65:1 - 65:27]
|
||||
// CHECK-source: usrs.m:65:4: TypeRef=id:0:0 Extent=[65:4 - 65:6]
|
||||
// CHECK-source: usrs.m:65:14: UnexposedStmt= Extent=[65:14 - 65:27]
|
||||
// CHECK-source: usrs.m:65:16: UnexposedStmt= Extent=[65:16 - 65:24]
|
||||
// CHECK-source: usrs.m:65:23: UnexposedExpr= Extent=[65:23 - 65:24]
|
||||
// CHECK-source: usrs.m:65:14: CompoundStmt= Extent=[65:14 - 65:27]
|
||||
// CHECK-source: usrs.m:65:16: ReturnStmt= Extent=[65:16 - 65:24]
|
||||
// CHECK-source: usrs.m:65:23: UnexposedExpr= Extent=[65:23 - 65:24]
|
||||
// CHECK-source: usrs.m:65:23: IntegerLiteral= Extent=[65:23 - 65:24]
|
||||
// CHECK-source: usrs.m:66:1: ObjCInstanceMethodDecl=meth3:66:1 (Definition) [Overrides @58:1] Extent=[66:1 - 66:27]
|
||||
// CHECK-source: usrs.m:66:4: TypeRef=id:0:0 Extent=[66:4 - 66:6]
|
||||
// CHECK-source: usrs.m:66:14: UnexposedStmt= Extent=[66:14 - 66:27]
|
||||
// CHECK-source: usrs.m:66:16: UnexposedStmt= Extent=[66:16 - 66:24]
|
||||
// CHECK-source: usrs.m:66:23: UnexposedExpr= Extent=[66:23 - 66:24]
|
||||
// CHECK-source: usrs.m:66:14: CompoundStmt= Extent=[66:14 - 66:27]
|
||||
// CHECK-source: usrs.m:66:16: ReturnStmt= Extent=[66:16 - 66:24]
|
||||
// CHECK-source: usrs.m:66:23: UnexposedExpr= Extent=[66:23 - 66:24]
|
||||
// CHECK-source: usrs.m:66:23: IntegerLiteral= Extent=[66:23 - 66:24]
|
||||
// CHECK-source: usrs.m:68:17: ObjCCategoryImplDecl=Bar:68:17 (Definition) Extent=[68:1 - 70:2]
|
||||
// CHECK-source: usrs.m:68:17: ObjCClassRef=CWithExt:51:12 Extent=[68:17 - 68:25]
|
||||
// CHECK-source: usrs.m:69:1: ObjCInstanceMethodDecl=meth4:69:1 (Definition) [Overrides @61:1] Extent=[69:1 - 69:27]
|
||||
// CHECK-source: usrs.m:69:4: TypeRef=id:0:0 Extent=[69:4 - 69:6]
|
||||
// CHECK-source: usrs.m:69:14: UnexposedStmt= Extent=[69:14 - 69:27]
|
||||
// CHECK-source: usrs.m:69:16: UnexposedStmt= Extent=[69:16 - 69:24]
|
||||
// CHECK-source: usrs.m:69:23: UnexposedExpr= Extent=[69:23 - 69:24]
|
||||
// CHECK-source: usrs.m:69:14: CompoundStmt= Extent=[69:14 - 69:27]
|
||||
// CHECK-source: usrs.m:69:16: ReturnStmt= Extent=[69:16 - 69:24]
|
||||
// CHECK-source: usrs.m:69:23: UnexposedExpr= Extent=[69:23 - 69:24]
|
||||
// CHECK-source: usrs.m:69:23: IntegerLiteral= Extent=[69:23 - 69:24]
|
||||
// CHECK-source: usrs.m:72:6: FunctionDecl=aux_1:72:6 Extent=[72:1 - 72:26]
|
||||
// CHECK-source: usrs.m:72:15: ParmDecl=:72:15 (Definition) Extent=[72:12 - 72:16]
|
||||
// CHECK-source: usrs.m:72:20: ParmDecl=:72:20 (Definition) Extent=[72:17 - 72:21]
|
||||
// CHECK-source: usrs.m:72:25: ParmDecl=:72:25 (Definition) Extent=[72:22 - 72:26]
|
||||
// CHECK-source: usrs.m:73:5: FunctionDecl=test_multi_declaration:73:5 (Definition) Extent=[73:1 - 77:2]
|
||||
// CHECK-source: usrs.m:73:34: UnexposedStmt= Extent=[73:34 - 77:2]
|
||||
// CHECK-source: usrs.m:74:3: UnexposedStmt= Extent=[74:3 - 74:33]
|
||||
// CHECK-source: usrs.m:73:34: CompoundStmt= Extent=[73:34 - 77:2]
|
||||
// CHECK-source: usrs.m:74:3: DeclStmt= Extent=[74:3 - 74:33]
|
||||
// CHECK-source: usrs.m:74:7: VarDecl=foo:74:7 (Definition) Extent=[74:3 - 74:14]
|
||||
// CHECK-source: usrs.m:74:13: UnexposedExpr= Extent=[74:13 - 74:14]
|
||||
// CHECK-source: usrs.m:74:13: IntegerLiteral= Extent=[74:13 - 74:14]
|
||||
// CHECK-source: usrs.m:74:16: VarDecl=bar:74:16 Extent=[74:16 - 74:23]
|
||||
// CHECK-source: usrs.m:74:22: UnexposedExpr= Extent=[74:22 - 74:23]
|
||||
// CHECK-source: usrs.m:74:22: IntegerLiteral= Extent=[74:22 - 74:23]
|
||||
// CHECK-source: usrs.m:74:25: VarDecl=baz:74:25 Extent=[74:25 - 74:32]
|
||||
// CHECK-source: usrs.m:74:31: UnexposedExpr= Extent=[74:31 - 74:32]
|
||||
// CHECK-source: usrs.m:74:31: IntegerLiteral= Extent=[74:31 - 74:32]
|
||||
// CHECK-source: usrs.m:75:3: CallExpr=aux_1:72:6 Extent=[75:3 - 75:23]
|
||||
// CHECK-source: usrs.m:75:3: UnexposedExpr=aux_1:72:6 Extent=[75:3 - 75:8]
|
||||
// CHECK-source: usrs.m:75:3: DeclRefExpr=aux_1:72:6 Extent=[75:3 - 75:8]
|
||||
// CHECK-source: usrs.m:75:9: DeclRefExpr=foo:74:7 Extent=[75:9 - 75:12]
|
||||
// CHECK-source: usrs.m:75:14: DeclRefExpr=bar:74:16 Extent=[75:14 - 75:17]
|
||||
// CHECK-source: usrs.m:75:19: DeclRefExpr=baz:74:25 Extent=[75:19 - 75:22]
|
||||
// CHECK-source: usrs.m:76:3: UnexposedStmt= Extent=[76:3 - 76:11]
|
||||
// CHECK-source: usrs.m:76:10: UnexposedExpr= Extent=[76:10 - 76:11]
|
||||
// CHECK-source: usrs.m:76:3: ReturnStmt= Extent=[76:3 - 76:11]
|
||||
// CHECK-source: usrs.m:76:10: IntegerLiteral= Extent=[76:10 - 76:11]
|
||||
// CHECK-source: usrs.m:79:11: ObjCProtocolDecl=P1:79:11 (Definition) Extent=[79:1 - 81:5]
|
||||
// CHECK-source: usrs.m:80:1: ObjCInstanceMethodDecl=method:80:1 Extent=[80:1 - 80:16]
|
||||
|
||||
|
|
|
@ -3342,10 +3342,86 @@ CXString clang_getCursorKindSpelling(enum CXCursorKind Kind) {
|
|||
return createCXString("LabelRef");
|
||||
case CXCursor_OverloadedDeclRef:
|
||||
return createCXString("OverloadedDeclRef");
|
||||
case CXCursor_UnexposedExpr:
|
||||
return createCXString("UnexposedExpr");
|
||||
case CXCursor_IntegerLiteral:
|
||||
return createCXString("IntegerLiteral");
|
||||
case CXCursor_FloatingLiteral:
|
||||
return createCXString("FloatingLiteral");
|
||||
case CXCursor_ImaginaryLiteral:
|
||||
return createCXString("ImaginaryLiteral");
|
||||
case CXCursor_StringLiteral:
|
||||
return createCXString("StringLiteral");
|
||||
case CXCursor_CharacterLiteral:
|
||||
return createCXString("CharacterLiteral");
|
||||
case CXCursor_ParenExpr:
|
||||
return createCXString("ParenExpr");
|
||||
case CXCursor_UnaryOperator:
|
||||
return createCXString("UnaryOperator");
|
||||
case CXCursor_ArraySubscriptExpr:
|
||||
return createCXString("ArraySubscriptExpr");
|
||||
case CXCursor_BinaryOperator:
|
||||
return createCXString("BinaryOperator");
|
||||
case CXCursor_CompoundAssignOperator:
|
||||
return createCXString("CompoundAssignOperator");
|
||||
case CXCursor_ConditionalOperator:
|
||||
return createCXString("ConditionalOperator");
|
||||
case CXCursor_CStyleCastExpr:
|
||||
return createCXString("CStyleCastExpr");
|
||||
case CXCursor_CompoundLiteralExpr:
|
||||
return createCXString("CompoundLiteralExpr");
|
||||
case CXCursor_InitListExpr:
|
||||
return createCXString("InitListExpr");
|
||||
case CXCursor_AddrLabelExpr:
|
||||
return createCXString("AddrLabelExpr");
|
||||
case CXCursor_StmtExpr:
|
||||
return createCXString("StmtExpr");
|
||||
case CXCursor_GenericSelectionExpr:
|
||||
return createCXString("GenericSelectionExpr");
|
||||
case CXCursor_GNUNullExpr:
|
||||
return createCXString("GNUNullExpr");
|
||||
case CXCursor_CXXStaticCastExpr:
|
||||
return createCXString("CXXStaticCastExpr");
|
||||
case CXCursor_CXXDynamicCastExpr:
|
||||
return createCXString("CXXDynamicCastExpr");
|
||||
case CXCursor_CXXReinterpretCastExpr:
|
||||
return createCXString("CXXReinterpretCastExpr");
|
||||
case CXCursor_CXXConstCastExpr:
|
||||
return createCXString("CXXConstCastExpr");
|
||||
case CXCursor_CXXFunctionalCastExpr:
|
||||
return createCXString("CXXFunctionalCastExpr");
|
||||
case CXCursor_CXXTypeidExpr:
|
||||
return createCXString("CXXTypeidExpr");
|
||||
case CXCursor_CXXBoolLiteralExpr:
|
||||
return createCXString("CXXBoolLiteralExpr");
|
||||
case CXCursor_CXXNullPtrLiteralExpr:
|
||||
return createCXString("CXXNullPtrLiteralExpr");
|
||||
case CXCursor_CXXThisExpr:
|
||||
return createCXString("CXXThisExpr");
|
||||
case CXCursor_CXXThrowExpr:
|
||||
return createCXString("CXXThrowExpr");
|
||||
case CXCursor_CXXNewExpr:
|
||||
return createCXString("CXXNewExpr");
|
||||
case CXCursor_CXXDeleteExpr:
|
||||
return createCXString("CXXDeleteExpr");
|
||||
case CXCursor_UnaryExpr:
|
||||
return createCXString("UnaryExpr");
|
||||
case CXCursor_ObjCStringLiteral:
|
||||
return createCXString("ObjCStringLiteral");
|
||||
case CXCursor_ObjCEncodeExpr:
|
||||
return createCXString("ObjCEncodeExpr");
|
||||
case CXCursor_ObjCSelectorExpr:
|
||||
return createCXString("ObjCSelectorExpr");
|
||||
case CXCursor_ObjCProtocolExpr:
|
||||
return createCXString("ObjCProtocolExpr");
|
||||
case CXCursor_ObjCBridgedCastExpr:
|
||||
return createCXString("ObjCBridgedCastExpr");
|
||||
case CXCursor_BlockExpr:
|
||||
return createCXString("BlockExpr");
|
||||
case CXCursor_PackExpansionExpr:
|
||||
return createCXString("PackExpansionExpr");
|
||||
case CXCursor_SizeOfPackExpr:
|
||||
return createCXString("SizeOfPackExpr");
|
||||
case CXCursor_UnexposedExpr:
|
||||
return createCXString("UnexposedExpr");
|
||||
case CXCursor_DeclRefExpr:
|
||||
return createCXString("DeclRefExpr");
|
||||
case CXCursor_MemberRefExpr:
|
||||
|
@ -3356,8 +3432,66 @@ CXString clang_getCursorKindSpelling(enum CXCursorKind Kind) {
|
|||
return createCXString("ObjCMessageExpr");
|
||||
case CXCursor_UnexposedStmt:
|
||||
return createCXString("UnexposedStmt");
|
||||
case CXCursor_DeclStmt:
|
||||
return createCXString("DeclStmt");
|
||||
case CXCursor_LabelStmt:
|
||||
return createCXString("LabelStmt");
|
||||
case CXCursor_CompoundStmt:
|
||||
return createCXString("CompoundStmt");
|
||||
case CXCursor_CaseStmt:
|
||||
return createCXString("CaseStmt");
|
||||
case CXCursor_DefaultStmt:
|
||||
return createCXString("DefaultStmt");
|
||||
case CXCursor_IfStmt:
|
||||
return createCXString("IfStmt");
|
||||
case CXCursor_SwitchStmt:
|
||||
return createCXString("SwitchStmt");
|
||||
case CXCursor_WhileStmt:
|
||||
return createCXString("WhileStmt");
|
||||
case CXCursor_DoStmt:
|
||||
return createCXString("DoStmt");
|
||||
case CXCursor_ForStmt:
|
||||
return createCXString("ForStmt");
|
||||
case CXCursor_GotoStmt:
|
||||
return createCXString("GotoStmt");
|
||||
case CXCursor_IndirectGotoStmt:
|
||||
return createCXString("IndirectGotoStmt");
|
||||
case CXCursor_ContinueStmt:
|
||||
return createCXString("ContinueStmt");
|
||||
case CXCursor_BreakStmt:
|
||||
return createCXString("BreakStmt");
|
||||
case CXCursor_ReturnStmt:
|
||||
return createCXString("ReturnStmt");
|
||||
case CXCursor_AsmStmt:
|
||||
return createCXString("AsmStmt");
|
||||
case CXCursor_ObjCAtTryStmt:
|
||||
return createCXString("ObjCAtTryStmt");
|
||||
case CXCursor_ObjCAtCatchStmt:
|
||||
return createCXString("ObjCAtCatchStmt");
|
||||
case CXCursor_ObjCAtFinallyStmt:
|
||||
return createCXString("ObjCAtFinallyStmt");
|
||||
case CXCursor_ObjCAtThrowStmt:
|
||||
return createCXString("ObjCAtThrowStmt");
|
||||
case CXCursor_ObjCAtSynchronizedStmt:
|
||||
return createCXString("ObjCAtSynchronizedStmt");
|
||||
case CXCursor_ObjCAutoreleasePoolStmt:
|
||||
return createCXString("ObjCAutoreleasePoolStmt");
|
||||
case CXCursor_ObjCForCollectionStmt:
|
||||
return createCXString("ObjCForCollectionStmt");
|
||||
case CXCursor_CXXCatchStmt:
|
||||
return createCXString("CXXCatchStmt");
|
||||
case CXCursor_CXXTryStmt:
|
||||
return createCXString("CXXTryStmt");
|
||||
case CXCursor_CXXForRangeStmt:
|
||||
return createCXString("CXXForRangeStmt");
|
||||
case CXCursor_SEHTryStmt:
|
||||
return createCXString("SEHTryStmt");
|
||||
case CXCursor_SEHExceptStmt:
|
||||
return createCXString("SEHExceptStmt");
|
||||
case CXCursor_SEHFinallyStmt:
|
||||
return createCXString("SEHFinallyStmt");
|
||||
case CXCursor_NullStmt:
|
||||
return createCXString("NullStmt");
|
||||
case CXCursor_InvalidFile:
|
||||
return createCXString("InvalidFile");
|
||||
case CXCursor_InvalidCode:
|
||||
|
|
|
@ -72,131 +72,327 @@ CXCursor cxcursor::MakeCXCursor(Stmt *S, Decl *Parent,
|
|||
switch (S->getStmtClass()) {
|
||||
case Stmt::NoStmtClass:
|
||||
break;
|
||||
|
||||
case Stmt::NullStmtClass:
|
||||
case Stmt::CompoundStmtClass:
|
||||
|
||||
case Stmt::CaseStmtClass:
|
||||
K = CXCursor_CaseStmt;
|
||||
break;
|
||||
|
||||
case Stmt::DefaultStmtClass:
|
||||
case Stmt::IfStmtClass:
|
||||
case Stmt::SwitchStmtClass:
|
||||
case Stmt::WhileStmtClass:
|
||||
case Stmt::DoStmtClass:
|
||||
case Stmt::ForStmtClass:
|
||||
case Stmt::GotoStmtClass:
|
||||
K = CXCursor_DefaultStmt;
|
||||
break;
|
||||
|
||||
case Stmt::IfStmtClass:
|
||||
K = CXCursor_IfStmt;
|
||||
break;
|
||||
|
||||
case Stmt::SwitchStmtClass:
|
||||
K = CXCursor_SwitchStmt;
|
||||
break;
|
||||
|
||||
case Stmt::WhileStmtClass:
|
||||
K = CXCursor_WhileStmt;
|
||||
break;
|
||||
|
||||
case Stmt::DoStmtClass:
|
||||
K = CXCursor_DoStmt;
|
||||
break;
|
||||
|
||||
case Stmt::ForStmtClass:
|
||||
K = CXCursor_ForStmt;
|
||||
break;
|
||||
|
||||
case Stmt::GotoStmtClass:
|
||||
K = CXCursor_GotoStmt;
|
||||
break;
|
||||
|
||||
case Stmt::IndirectGotoStmtClass:
|
||||
case Stmt::ContinueStmtClass:
|
||||
case Stmt::BreakStmtClass:
|
||||
case Stmt::ReturnStmtClass:
|
||||
case Stmt::DeclStmtClass:
|
||||
case Stmt::AsmStmtClass:
|
||||
case Stmt::ObjCAtTryStmtClass:
|
||||
case Stmt::ObjCAtCatchStmtClass:
|
||||
case Stmt::ObjCAtFinallyStmtClass:
|
||||
case Stmt::ObjCAtThrowStmtClass:
|
||||
case Stmt::ObjCAtSynchronizedStmtClass:
|
||||
case Stmt::ObjCAutoreleasePoolStmtClass:
|
||||
K = CXCursor_IndirectGotoStmt;
|
||||
break;
|
||||
|
||||
case Stmt::ContinueStmtClass:
|
||||
K = CXCursor_ContinueStmt;
|
||||
break;
|
||||
|
||||
case Stmt::BreakStmtClass:
|
||||
K = CXCursor_BreakStmt;
|
||||
break;
|
||||
|
||||
case Stmt::ReturnStmtClass:
|
||||
K = CXCursor_ReturnStmt;
|
||||
break;
|
||||
|
||||
case Stmt::AsmStmtClass:
|
||||
K = CXCursor_AsmStmt;
|
||||
break;
|
||||
|
||||
case Stmt::ObjCAtTryStmtClass:
|
||||
K = CXCursor_ObjCAtTryStmt;
|
||||
break;
|
||||
|
||||
case Stmt::ObjCAtCatchStmtClass:
|
||||
K = CXCursor_ObjCAtCatchStmt;
|
||||
break;
|
||||
|
||||
case Stmt::ObjCAtFinallyStmtClass:
|
||||
K = CXCursor_ObjCAtFinallyStmt;
|
||||
break;
|
||||
|
||||
case Stmt::ObjCAtThrowStmtClass:
|
||||
K = CXCursor_ObjCAtThrowStmt;
|
||||
break;
|
||||
|
||||
case Stmt::ObjCAtSynchronizedStmtClass:
|
||||
K = CXCursor_ObjCAtSynchronizedStmt;
|
||||
break;
|
||||
|
||||
case Stmt::ObjCAutoreleasePoolStmtClass:
|
||||
K = CXCursor_ObjCAutoreleasePoolStmt;
|
||||
break;
|
||||
|
||||
case Stmt::ObjCForCollectionStmtClass:
|
||||
K = CXCursor_ObjCForCollectionStmt;
|
||||
break;
|
||||
|
||||
case Stmt::CXXCatchStmtClass:
|
||||
case Stmt::CXXTryStmtClass:
|
||||
case Stmt::CXXForRangeStmtClass:
|
||||
K = CXCursor_CXXCatchStmt;
|
||||
break;
|
||||
|
||||
case Stmt::CXXTryStmtClass:
|
||||
K = CXCursor_CXXTryStmt;
|
||||
break;
|
||||
|
||||
case Stmt::CXXForRangeStmtClass:
|
||||
K = CXCursor_CXXForRangeStmt;
|
||||
break;
|
||||
|
||||
case Stmt::SEHTryStmtClass:
|
||||
K = CXCursor_SEHTryStmt;
|
||||
break;
|
||||
|
||||
case Stmt::SEHExceptStmtClass:
|
||||
K = CXCursor_SEHExceptStmt;
|
||||
break;
|
||||
|
||||
case Stmt::SEHFinallyStmtClass:
|
||||
case Stmt::MaterializeTemporaryExprClass:
|
||||
K = CXCursor_UnexposedStmt;
|
||||
K = CXCursor_SEHFinallyStmt;
|
||||
break;
|
||||
|
||||
case Stmt::LabelStmtClass:
|
||||
K = CXCursor_LabelStmt;
|
||||
break;
|
||||
|
||||
case Stmt::PredefinedExprClass:
|
||||
case Stmt::IntegerLiteralClass:
|
||||
case Stmt::FloatingLiteralClass:
|
||||
case Stmt::ImaginaryLiteralClass:
|
||||
case Stmt::StringLiteralClass:
|
||||
case Stmt::CharacterLiteralClass:
|
||||
case Stmt::ParenExprClass:
|
||||
case Stmt::UnaryOperatorClass:
|
||||
case Stmt::OffsetOfExprClass:
|
||||
case Stmt::UnaryExprOrTypeTraitExprClass:
|
||||
case Stmt::ArraySubscriptExprClass:
|
||||
case Stmt::BinaryOperatorClass:
|
||||
case Stmt::CompoundAssignOperatorClass:
|
||||
case Stmt::ConditionalOperatorClass:
|
||||
case Stmt::BinaryConditionalOperatorClass:
|
||||
case Stmt::ImplicitCastExprClass:
|
||||
case Stmt::CStyleCastExprClass:
|
||||
case Stmt::CompoundLiteralExprClass:
|
||||
case Stmt::ExtVectorElementExprClass:
|
||||
case Stmt::InitListExprClass:
|
||||
case Stmt::DesignatedInitExprClass:
|
||||
case Stmt::ImplicitValueInitExprClass:
|
||||
case Stmt::ParenListExprClass:
|
||||
case Stmt::VAArgExprClass:
|
||||
case Stmt::AddrLabelExprClass:
|
||||
case Stmt::StmtExprClass:
|
||||
case Stmt::ChooseExprClass:
|
||||
case Stmt::GenericSelectionExprClass:
|
||||
case Stmt::GNUNullExprClass:
|
||||
case Stmt::CXXStaticCastExprClass:
|
||||
case Stmt::CXXDynamicCastExprClass:
|
||||
case Stmt::CXXReinterpretCastExprClass:
|
||||
case Stmt::CXXConstCastExprClass:
|
||||
case Stmt::CXXFunctionalCastExprClass:
|
||||
case Stmt::CXXTypeidExprClass:
|
||||
case Stmt::CXXUuidofExprClass:
|
||||
case Stmt::CXXBoolLiteralExprClass:
|
||||
case Stmt::CXXNullPtrLiteralExprClass:
|
||||
case Stmt::CXXThisExprClass:
|
||||
case Stmt::CXXThrowExprClass:
|
||||
case Stmt::CXXDefaultArgExprClass:
|
||||
case Stmt::CXXScalarValueInitExprClass:
|
||||
case Stmt::CXXNewExprClass:
|
||||
case Stmt::CXXDeleteExprClass:
|
||||
case Stmt::CXXPseudoDestructorExprClass:
|
||||
case Stmt::UnresolvedLookupExprClass:
|
||||
case Stmt::UnaryTypeTraitExprClass:
|
||||
case Stmt::BinaryTypeTraitExprClass:
|
||||
|
||||
case Stmt::ArrayTypeTraitExprClass:
|
||||
case Stmt::ExpressionTraitExprClass:
|
||||
case Stmt::DependentScopeDeclRefExprClass:
|
||||
case Stmt::CXXBindTemporaryExprClass:
|
||||
case Stmt::ExprWithCleanupsClass:
|
||||
case Stmt::CXXUnresolvedConstructExprClass:
|
||||
case Stmt::CXXDependentScopeMemberExprClass:
|
||||
case Stmt::UnresolvedMemberExprClass:
|
||||
case Stmt::CXXNoexceptExprClass:
|
||||
case Stmt::ObjCStringLiteralClass:
|
||||
case Stmt::ObjCEncodeExprClass:
|
||||
case Stmt::ObjCSelectorExprClass:
|
||||
case Stmt::ObjCProtocolExprClass:
|
||||
case Stmt::ObjCIsaExprClass:
|
||||
case Stmt::ObjCIndirectCopyRestoreExprClass:
|
||||
case Stmt::ObjCBridgedCastExprClass:
|
||||
case Stmt::ShuffleVectorExprClass:
|
||||
case Stmt::BlockExprClass:
|
||||
case Stmt::OpaqueValueExprClass:
|
||||
case Stmt::PackExpansionExprClass:
|
||||
case Stmt::SizeOfPackExprClass:
|
||||
case Stmt::AsTypeExprClass:
|
||||
case Stmt::BinaryConditionalOperatorClass:
|
||||
case Stmt::BinaryTypeTraitExprClass:
|
||||
case Stmt::CXXBindTemporaryExprClass:
|
||||
case Stmt::CXXDefaultArgExprClass:
|
||||
case Stmt::CXXScalarValueInitExprClass:
|
||||
case Stmt::CXXUuidofExprClass:
|
||||
case Stmt::ChooseExprClass:
|
||||
case Stmt::DesignatedInitExprClass:
|
||||
case Stmt::ExprWithCleanupsClass:
|
||||
case Stmt::ExpressionTraitExprClass:
|
||||
case Stmt::ExtVectorElementExprClass:
|
||||
case Stmt::ImplicitCastExprClass:
|
||||
case Stmt::ImplicitValueInitExprClass:
|
||||
case Stmt::MaterializeTemporaryExprClass:
|
||||
case Stmt::ObjCIndirectCopyRestoreExprClass:
|
||||
case Stmt::OffsetOfExprClass:
|
||||
case Stmt::OpaqueValueExprClass:
|
||||
case Stmt::ParenListExprClass:
|
||||
case Stmt::PredefinedExprClass:
|
||||
case Stmt::ShuffleVectorExprClass:
|
||||
case Stmt::UnaryExprOrTypeTraitExprClass:
|
||||
case Stmt::UnaryTypeTraitExprClass:
|
||||
case Stmt::VAArgExprClass:
|
||||
K = CXCursor_UnexposedExpr;
|
||||
break;
|
||||
|
||||
case Stmt::CompoundStmtClass:
|
||||
K = CXCursor_CompoundStmt;
|
||||
break;
|
||||
|
||||
case Stmt::DeclRefExprClass:
|
||||
case Stmt::NullStmtClass:
|
||||
K = CXCursor_NullStmt;
|
||||
break;
|
||||
|
||||
case Stmt::LabelStmtClass:
|
||||
K = CXCursor_LabelStmt;
|
||||
break;
|
||||
|
||||
case Stmt::DeclStmtClass:
|
||||
K = CXCursor_DeclStmt;
|
||||
break;
|
||||
|
||||
case Stmt::IntegerLiteralClass:
|
||||
K = CXCursor_IntegerLiteral;
|
||||
break;
|
||||
|
||||
case Stmt::FloatingLiteralClass:
|
||||
K = CXCursor_FloatingLiteral;
|
||||
break;
|
||||
|
||||
case Stmt::ImaginaryLiteralClass:
|
||||
K = CXCursor_ImaginaryLiteral;
|
||||
break;
|
||||
|
||||
case Stmt::StringLiteralClass:
|
||||
K = CXCursor_StringLiteral;
|
||||
break;
|
||||
|
||||
case Stmt::CharacterLiteralClass:
|
||||
K = CXCursor_CharacterLiteral;
|
||||
break;
|
||||
|
||||
case Stmt::ParenExprClass:
|
||||
K = CXCursor_ParenExpr;
|
||||
break;
|
||||
|
||||
case Stmt::UnaryOperatorClass:
|
||||
K = CXCursor_UnaryOperator;
|
||||
break;
|
||||
|
||||
case Stmt::CXXNoexceptExprClass:
|
||||
K = CXCursor_UnaryExpr;
|
||||
break;
|
||||
|
||||
case Stmt::ArraySubscriptExprClass:
|
||||
K = CXCursor_ArraySubscriptExpr;
|
||||
break;
|
||||
|
||||
case Stmt::BinaryOperatorClass:
|
||||
K = CXCursor_BinaryOperator;
|
||||
break;
|
||||
|
||||
case Stmt::CompoundAssignOperatorClass:
|
||||
K = CXCursor_CompoundAssignOperator;
|
||||
break;
|
||||
|
||||
case Stmt::ConditionalOperatorClass:
|
||||
K = CXCursor_ConditionalOperator;
|
||||
break;
|
||||
|
||||
case Stmt::CStyleCastExprClass:
|
||||
K = CXCursor_CStyleCastExpr;
|
||||
break;
|
||||
|
||||
case Stmt::CompoundLiteralExprClass:
|
||||
K = CXCursor_CompoundLiteralExpr;
|
||||
break;
|
||||
|
||||
case Stmt::InitListExprClass:
|
||||
K = CXCursor_InitListExpr;
|
||||
break;
|
||||
|
||||
case Stmt::AddrLabelExprClass:
|
||||
K = CXCursor_AddrLabelExpr;
|
||||
break;
|
||||
|
||||
case Stmt::StmtExprClass:
|
||||
K = CXCursor_StmtExpr;
|
||||
break;
|
||||
|
||||
case Stmt::GenericSelectionExprClass:
|
||||
K = CXCursor_GenericSelectionExpr;
|
||||
break;
|
||||
|
||||
case Stmt::GNUNullExprClass:
|
||||
K = CXCursor_GNUNullExpr;
|
||||
break;
|
||||
|
||||
case Stmt::CXXStaticCastExprClass:
|
||||
K = CXCursor_CXXStaticCastExpr;
|
||||
break;
|
||||
|
||||
case Stmt::CXXDynamicCastExprClass:
|
||||
K = CXCursor_CXXDynamicCastExpr;
|
||||
break;
|
||||
|
||||
case Stmt::CXXReinterpretCastExprClass:
|
||||
K = CXCursor_CXXReinterpretCastExpr;
|
||||
break;
|
||||
|
||||
case Stmt::CXXConstCastExprClass:
|
||||
K = CXCursor_CXXConstCastExpr;
|
||||
break;
|
||||
|
||||
case Stmt::CXXFunctionalCastExprClass:
|
||||
K = CXCursor_CXXFunctionalCastExpr;
|
||||
break;
|
||||
|
||||
case Stmt::CXXTypeidExprClass:
|
||||
K = CXCursor_CXXTypeidExpr;
|
||||
break;
|
||||
|
||||
case Stmt::CXXBoolLiteralExprClass:
|
||||
K = CXCursor_CXXBoolLiteralExpr;
|
||||
break;
|
||||
|
||||
case Stmt::CXXNullPtrLiteralExprClass:
|
||||
K = CXCursor_CXXNullPtrLiteralExpr;
|
||||
break;
|
||||
|
||||
case Stmt::CXXThisExprClass:
|
||||
K = CXCursor_CXXThisExpr;
|
||||
break;
|
||||
|
||||
case Stmt::CXXThrowExprClass:
|
||||
K = CXCursor_CXXThrowExpr;
|
||||
break;
|
||||
|
||||
case Stmt::CXXNewExprClass:
|
||||
K = CXCursor_CXXNewExpr;
|
||||
break;
|
||||
|
||||
case Stmt::CXXDeleteExprClass:
|
||||
K = CXCursor_CXXDeleteExpr;
|
||||
break;
|
||||
|
||||
case Stmt::ObjCStringLiteralClass:
|
||||
K = CXCursor_ObjCStringLiteral;
|
||||
break;
|
||||
|
||||
case Stmt::ObjCEncodeExprClass:
|
||||
K = CXCursor_ObjCEncodeExpr;
|
||||
break;
|
||||
|
||||
case Stmt::ObjCSelectorExprClass:
|
||||
K = CXCursor_ObjCSelectorExpr;
|
||||
break;
|
||||
|
||||
case Stmt::ObjCProtocolExprClass:
|
||||
K = CXCursor_ObjCProtocolExpr;
|
||||
break;
|
||||
|
||||
case Stmt::ObjCBridgedCastExprClass:
|
||||
K = CXCursor_ObjCBridgedCastExpr;
|
||||
break;
|
||||
|
||||
case Stmt::BlockExprClass:
|
||||
K = CXCursor_BlockExpr;
|
||||
break;
|
||||
|
||||
case Stmt::PackExpansionExprClass:
|
||||
K = CXCursor_PackExpansionExpr;
|
||||
break;
|
||||
|
||||
case Stmt::SizeOfPackExprClass:
|
||||
K = CXCursor_SizeOfPackExpr;
|
||||
break;
|
||||
|
||||
case Stmt::BlockDeclRefExprClass:
|
||||
case Stmt::DeclRefExprClass:
|
||||
case Stmt::DependentScopeDeclRefExprClass:
|
||||
case Stmt::SubstNonTypeTemplateParmExprClass:
|
||||
case Stmt::SubstNonTypeTemplateParmPackExprClass:
|
||||
// FIXME: UnresolvedLookupExpr?
|
||||
// FIXME: DependentScopeDeclRefExpr?
|
||||
case Stmt::UnresolvedLookupExprClass:
|
||||
K = CXCursor_DeclRefExpr;
|
||||
break;
|
||||
|
||||
case Stmt::CXXDependentScopeMemberExprClass:
|
||||
case Stmt::CXXPseudoDestructorExprClass:
|
||||
case Stmt::MemberExprClass:
|
||||
case Stmt::ObjCIsaExprClass:
|
||||
case Stmt::ObjCIvarRefExprClass:
|
||||
case Stmt::ObjCPropertyRefExprClass:
|
||||
// FIXME: UnresolvedMemberExpr?
|
||||
// FIXME: CXXDependentScopeMemberExpr?
|
||||
case Stmt::UnresolvedMemberExprClass:
|
||||
K = CXCursor_MemberRefExpr;
|
||||
break;
|
||||
|
||||
|
@ -206,7 +402,7 @@ CXCursor cxcursor::MakeCXCursor(Stmt *S, Decl *Parent,
|
|||
case Stmt::CUDAKernelCallExprClass:
|
||||
case Stmt::CXXConstructExprClass:
|
||||
case Stmt::CXXTemporaryObjectExprClass:
|
||||
// FIXME: CXXUnresolvedConstructExpr
|
||||
case Stmt::CXXUnresolvedConstructExprClass:
|
||||
K = CXCursor_CallExpr;
|
||||
break;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче