Searched refs:CXTok (Results 1 – 2 of 2) sorted by relevance
5960 CXTokenKind clang_getTokenKind(CXToken CXTok) { in clang_getTokenKind() argument5961 return static_cast<CXTokenKind>(CXTok.int_data[0]); in clang_getTokenKind()5964 CXString clang_getTokenSpelling(CXTranslationUnit TU, CXToken CXTok) { in clang_getTokenSpelling() argument5965 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[all …]
6739 CXTokenKind clang_getTokenKind(CXToken CXTok) { in clang_getTokenKind() argument6740 return static_cast<CXTokenKind>(CXTok.int_data[0]); in clang_getTokenKind()6743 CXString clang_getTokenSpelling(CXTranslationUnit TU, CXToken CXTok) { in clang_getTokenSpelling() argument6744 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[all …]