Home
last modified time | relevance | path

Searched refs:CharNo (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DStringMatcher.cpp50 const std::vector<const StringPair *> &Matches, unsigned CharNo, in EmitStringMatcherForChar() argument
57 if (CharNo == Matches[0]->first.size()) { in EmitStringMatcherForChar()
80 MatchesByLetter[Match->first[CharNo]].push_back(Match); in EmitStringMatcherForChar()
86 unsigned NumChars = FirstNonCommonLetter-CharNo; in EmitStringMatcherForChar()
92 OS << Indent << "if (" << StrVariableName << "[" << CharNo << "] != '" in EmitStringMatcherForChar()
93 << Matches[0]->first[CharNo] << "')\n"; in EmitStringMatcherForChar()
98 OS << Indent << "if (memcmp(" << StrVariableName << ".data()+" << CharNo in EmitStringMatcherForChar()
99 << ", \"" << Matches[0]->first.substr(CharNo, NumChars) << "\", " in EmitStringMatcherForChar()
110 OS << Indent << "switch (" << StrVariableName << "[" << CharNo << "]) {\n"; in EmitStringMatcherForChar()
120 if (EmitStringMatcherForChar(LI.second, CharNo + 1, IndentCount + 1, in EmitStringMatcherForChar()
/freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DStringMatcher.h48 unsigned CharNo, unsigned IndentCount,
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DCommentLexer.h312 const unsigned CharNo = Loc - BufferStart; in getSourceLocation() local
313 return FileLoc.getLocWithOffset(CharNo); in getSourceLocation()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp791 unsigned Lexer::getTokenPrefixLength(SourceLocation TokStart, unsigned CharNo, in getTokenPrefixLength() argument
801 if (Invalid || (CharNo == 0 && Lexer::isObviouslySimpleCharacter(*TokPtr))) in getTokenPrefixLength()
810 if (CharNo == 0) in getTokenPrefixLength()
813 --CharNo; in getTokenPrefixLength()
819 for (; CharNo; --CharNo) { in getTokenPrefixLength()
1188 Preprocessor &PP, SourceLocation FileLoc, unsigned CharNo, unsigned TokLen);
1191 unsigned CharNo, unsigned TokLen) { in GetMappedTokenLoc() argument
1202 SpellingLoc = SpellingLoc.getLocWithOffset(CharNo); in GetMappedTokenLoc()
1220 unsigned CharNo = Loc-BufferStart; in getSourceLocation() local
1222 return FileLoc.getLocWithOffset(CharNo); in getSourceLocation()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DCommentParser.cpp68 const unsigned CharNo = Pos.BufferPtr - Pos.BufferStart; in getSourceLocation() local
69 return Pos.BufferStartLoc.getLocWithOffset(CharNo); in getSourceLocation()