Searched refs:Spelled (Results 1 - 3 of 3) sorted by relevance

/freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DComputeReplacements.cpp78 auto Spelled = Buffer.spelledForExpanded(Expanded);
79 assert(Spelled && "could not find spelled tokens for expanded");
80 return syntax::Token::range(SM, Spelled->front(), Spelled->back());
H A DTokens.cpp232 TokenBuffer::expansionStartingAt(const syntax::Token *Spelled) const {
233 assert(Spelled);
234 assert(Spelled->location().isFileID() && "not a spelled token");
235 auto FileIt = Files.find(SourceMgr->getFileID(Spelled->location()));
239 assert(File.SpelledTokens.data() <= Spelled &&
240 Spelled < (File.SpelledTokens.data() + File.SpelledTokens.size()));
242 unsigned SpelledIndex = Spelled - File.SpelledTokens.data();
250 E.Spelled = llvm::makeArrayRef(File.SpelledTokens.data() + M->BeginSpelled,
287 auto &Spelled = File.SpelledTokens; local
289 const syntax::Token *Token = &Spelled[Mappin
[all...]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Tooling/Syntax/
H A DTokens.h18 // to find subranges of the token stream covered by various AST nodes. Spelled
154 /// 2. Spelled tokens: corresponding directly to the source code of a file
160 /// Spelled tokens are {'#','define','FOO','10','int','a','=','FOO',';'}.
166 /// The full list expanded tokens can be obtained with expandedTokens(). Spelled
231 llvm::ArrayRef<syntax::Token> Spelled; member in struct:clang::syntax::TokenBuffer::Expansion
234 /// If \p Spelled starts a mapping (e.g. if it's a macro name or '#' starting
238 expansionStartingAt(const syntax::Token *Spelled) const;
284 /// Spelled tokens of the file with information about the subranges.

Completed in 53 milliseconds