Lines Matching refs:CXTok
6739 CXTokenKind clang_getTokenKind(CXToken CXTok) { in clang_getTokenKind() argument
6740 return static_cast<CXTokenKind>(CXTok.int_data[0]); in clang_getTokenKind()
6743 CXString clang_getTokenSpelling(CXTranslationUnit TU, CXToken CXTok) { in clang_getTokenSpelling() argument
6744 switch (clang_getTokenKind(CXTok)) { in clang_getTokenSpelling()
6749 static_cast<IdentifierInfo *>(CXTok.ptr_data)->getNameStart()); in clang_getTokenSpelling()
6753 const char *Text = static_cast<const char *>(CXTok.ptr_data); in clang_getTokenSpelling()
6754 return cxstring::createDup(StringRef(Text, CXTok.int_data[2])); in clang_getTokenSpelling()
6773 SourceLocation Loc = SourceLocation::getFromRawEncoding(CXTok.int_data[1]); in clang_getTokenSpelling()
6782 return cxstring::createDup(Buffer.substr(LocInfo.second, CXTok.int_data[2])); in clang_getTokenSpelling()
6785 CXSourceLocation clang_getTokenLocation(CXTranslationUnit TU, CXToken CXTok) { in clang_getTokenLocation() argument
6797 SourceLocation::getFromRawEncoding(CXTok.int_data[1])); in clang_getTokenLocation()
6800 CXSourceRange clang_getTokenExtent(CXTranslationUnit TU, CXToken CXTok) { in clang_getTokenExtent() argument
6812 SourceLocation::getFromRawEncoding(CXTok.int_data[1])); in clang_getTokenExtent()
6849 CXToken CXTok; in getTokens() local
6852 CXTok.int_data[1] = Tok.getLocation().getRawEncoding(); in getTokens()
6853 CXTok.int_data[2] = Tok.getLength(); in getTokens()
6854 CXTok.int_data[3] = 0; in getTokens()
6858 CXTok.int_data[0] = CXToken_Literal; in getTokens()
6859 CXTok.ptr_data = const_cast<char *>(Tok.getLiteralData()); in getTokens()
6865 CXTok.int_data[0] = CXToken_Keyword; in getTokens()
6867 CXTok.int_data[0] = in getTokens()
6870 CXTok.ptr_data = II; in getTokens()
6872 CXTok.int_data[0] = CXToken_Comment; in getTokens()
6873 CXTok.ptr_data = nullptr; in getTokens()
6875 CXTok.int_data[0] = CXToken_Punctuation; in getTokens()
6876 CXTok.ptr_data = nullptr; in getTokens()
6878 CXTokens.push_back(CXTok); in getTokens()