<div dir="ltr">I'm interested in writing a plugin to disallow <a href="https://en.cppreference.com/w/cpp/language/operator_alternative">alternative spelling</a>/digraphs for operators and tokens. However I haven't been able to find a way to access this information from a PluginASTAction.<div dir="ltr"></div><div><br></div><div>I see that the digraphs (<: %: etc.) are handled in Lexer.cpp, but perhaps the only way to get the original spelling is Lexer::getSpelling(). Would I be able to get access to the Lexer, SourceLocation, SourceManager, etc. from a PluginASTAction in order to call this?</div><div><br></div><div>I also found the `CXX_KEYWORD_OPERATOR`s in TokenKinds.def, but it looks like these get mapped to the same token kinds as the regular operator spellings so I'm not sure how to distinguish them after the AST is built.</div><div><br></div><div>Any recommendations would be appreciated, thanks!</div><div>Jacob</div></div>