Refactor Scheduler.

This commit is contained in:
ykiko
2024-11-28 16:06:15 +08:00
parent 939dbc3dc5
commit c240c7e7bc
6 changed files with 278 additions and 178 deletions

View File

@@ -618,9 +618,9 @@ public:
auto spelledTokens = tokBuf.spelledTokens(mainFileID);
for(auto& token: spelledTokens) {
proto::SemanticTokenType type = proto::SemanticTokenType::Invalid;
llvm::outs() << clang::tok::getTokenName(token.kind()) << " "
<< pp.getIdentifierInfo(token.text(srcMgr))->isKeyword(pp.getLangOpts())
<< "\n";
// llvm::outs() << clang::tok::getTokenName(token.kind()) << " "
// << pp.getIdentifierInfo(token.text(srcMgr))->isKeyword(pp.getLangOpts())
// << "\n";
auto kind = token.kind();
switch(kind) {