some update.

This commit is contained in:
ykiko
2024-08-09 22:30:46 +08:00
parent 75cb74ca78
commit 939394927c
5 changed files with 275 additions and 602 deletions

View File

@@ -122,6 +122,7 @@ int main(int argc, const char** argv) {
// // // TODO: split annoated token
// // }
// });
pp.addPPCallbacks(std::make_unique<PPCallback>(pp));
clang::syntax::TokenCollector collector{pp};
@@ -138,7 +139,7 @@ int main(int argc, const char** argv) {
llvm::outs() << "Token: " << token.text(sm) << " " << clang::tok::getTokenName(token.kind())
<< "\n";
}
buffer.expansionStartingAt(tokens[0].location());
// auto tokens2 = buffer.expandedTokens();
// for(auto& token: tokens2) {
// token.dumpForTests(sm);