Lines Matching refs:CXTok

5960 CXTokenKind clang_getTokenKind(CXToken CXTok) {  in clang_getTokenKind()  argument
5961 return static_cast<CXTokenKind>(CXTok.int_data[0]); in clang_getTokenKind()
5964 CXString clang_getTokenSpelling(CXTranslationUnit TU, CXToken CXTok) { in clang_getTokenSpelling() argument
5965 switch (clang_getTokenKind(CXTok)) { in clang_getTokenSpelling()
5969 return cxstring::createRef(static_cast<IdentifierInfo *>(CXTok.ptr_data) in clang_getTokenSpelling()
5974 const char *Text = static_cast<const char *>(CXTok.ptr_data); in clang_getTokenSpelling()
5975 return cxstring::createDup(StringRef(Text, CXTok.int_data[2])); in clang_getTokenSpelling()
5994 SourceLocation Loc = SourceLocation::getFromRawEncoding(CXTok.int_data[1]); in clang_getTokenSpelling()
6003 return cxstring::createDup(Buffer.substr(LocInfo.second, CXTok.int_data[2])); in clang_getTokenSpelling()
6006 CXSourceLocation clang_getTokenLocation(CXTranslationUnit TU, CXToken CXTok) { in clang_getTokenLocation() argument
6017 SourceLocation::getFromRawEncoding(CXTok.int_data[1])); in clang_getTokenLocation()
6020 CXSourceRange clang_getTokenExtent(CXTranslationUnit TU, CXToken CXTok) { in clang_getTokenExtent() argument
6031 SourceLocation::getFromRawEncoding(CXTok.int_data[1])); in clang_getTokenExtent()
6069 CXToken CXTok; in getTokens() local
6072 CXTok.int_data[1] = Tok.getLocation().getRawEncoding(); in getTokens()
6073 CXTok.int_data[2] = Tok.getLength(); in getTokens()
6074 CXTok.int_data[3] = 0; in getTokens()
6078 CXTok.int_data[0] = CXToken_Literal; in getTokens()
6079 CXTok.ptr_data = const_cast<char *>(Tok.getLiteralData()); in getTokens()
6086 CXTok.int_data[0] = CXToken_Keyword; in getTokens()
6089 CXTok.int_data[0] = Tok.is(tok::identifier) in getTokens()
6093 CXTok.ptr_data = II; in getTokens()
6095 CXTok.int_data[0] = CXToken_Comment; in getTokens()
6096 CXTok.ptr_data = nullptr; in getTokens()
6098 CXTok.int_data[0] = CXToken_Punctuation; in getTokens()
6099 CXTok.ptr_data = nullptr; in getTokens()
6101 CXTokens.push_back(CXTok); in getTokens()