Searched refs:Pos (Results 1 - 25 of 258) sorted by relevance

1234567891011

/netbsd-current/external/apache2/llvm/dist/llvm/lib/Support/
H A DLineIterator.cpp57 const char *Pos = CurrentLine.end(); local
58 assert(Pos == Buffer->getBufferStart() || isAtLineEnd(Pos) || *Pos == '\0');
60 if (skipIfAtLineEnd(Pos))
62 if (!SkipBlanks && isAtLineEnd(Pos)) {
66 while (skipIfAtLineEnd(Pos))
71 if (isAtLineEnd(Pos) && !SkipBlanks)
73 if (*Pos == CommentMarker)
75 ++Pos;
[all...]
H A DFileUtilities.cpp56 static const char *BackupNumber(const char *Pos, const char *FirstChar) { argument
58 if (!isNumberChar(*Pos)) return Pos;
62 while (Pos > FirstChar && isNumberChar(Pos[-1])) {
64 if (Pos[-1] == '.') {
70 --Pos;
71 if (Pos > FirstChar && isSignedChar(Pos[0]) && !isExponentChar(Pos[
80 EndOfNumber(const char *Pos) argument
[all...]
H A DFoldingSet.cpp97 unsigned Pos = 0; local
103 Pos = (Units + 1) * 4;
111 for (Pos += 4; Pos <= Size; Pos += 4) {
112 unsigned V = ((unsigned char)String[Pos - 4] << 24) |
113 ((unsigned char)String[Pos - 3] << 16) |
114 ((unsigned char)String[Pos - 2] << 8) |
115 (unsigned char)String[Pos - 1];
119 for (Pos
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DAllocationOrder.h36 // Iterator's Pos, which must be signed, so it's typed here as signed, too, to
46 int Pos = 0; member in class:llvm::AllocationOrder::final
49 Iterator(const AllocationOrder &AO, int Pos) : AO(AO), Pos(Pos) {} argument
52 bool isHint() const { return Pos < 0; }
56 if (Pos < 0)
57 return AO.Hints.end()[Pos];
58 assert(Pos < AO.IterationLimit);
59 return AO.Order[Pos];
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Basic/
H A DJsonSupport.h33 size_t Pos = 0; local
37 Pos = Str.find('\\', Pos);
38 if (Pos == std::string::npos)
42 size_t TempPos = (Pos != 0) ? Pos - 1 : 0;
45 if (TempPos != Str.find("\\\\", Pos)) {
46 Str.insert(Pos, "\\");
47 ++Pos; // As we insert the backslash move plus one.
50 ++Pos;
[all...]
H A DSanitizers.h50 static constexpr bool checkBitPos(const unsigned Pos) { argument
51 return Pos < kNumBits;
54 /// Create a mask with a bit enabled at position Pos.
55 static constexpr SanitizerMask bitPosToMask(const unsigned Pos) { argument
56 uint64_t mask1 = (Pos < kNumBitElem) ? 1ULL << (Pos % kNumBitElem) : 0;
57 uint64_t mask2 = (Pos >= kNumBitElem && Pos < (kNumBitElem * 2))
58 ? 1ULL << (Pos % kNumBitElem)
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Demangle/
H A DDemangle.cpp17 size_t Pos = MangledName.find_first_not_of('_'); local
19 return Pos > 0 && Pos <= 4 && MangledName[Pos] == 'Z';
/netbsd-current/external/apache2/llvm/dist/llvm/tools/llvm-rc/
H A DResourceScriptCppFilter.cpp38 size_t Pos = 0; member in class:__anon2973::Filter
45 while (!streamEof() && Pos != StringRef::npos) {
46 size_t LineStart = Pos;
47 Pos = Data.find_first_of("\r\n", Pos);
48 Pos = Data.find_first_not_of("\r\n", Pos);
49 StringRef Line = Data.take_front(Pos).drop_front(LineStart);
103 bool Filter::streamEof() const { return Pos == DataLength; }
H A DResourceScriptToken.cpp88 Tokenizer(StringRef Input) : Data(Input), DataLength(Input.size()), Pos(0) {}
145 size_t DataLength, Pos; member in class:__anon3217::Tokenizer
149 Pos = Data.find_first_of("\r\n", Pos);
150 Pos = Data.find_first_not_of("\r\n", Pos);
152 if (Pos == StringRef::npos)
153 Pos = DataLength;
157 Pos = 0;
170 return getStringError("Invalid token found at position " + Twine(Pos));
[all...]
/netbsd-current/sys/external/bsd/compiler_rt/dist/lib/fuzzer/
H A DFuzzerIOWindows.cpp76 size_t Pos = Path.find_last_of("/\\"); local
77 if (Pos == std::string::npos) return Path;
78 assert(Pos < Path.size());
79 return Path.substr(Pos + 1);
198 size_t Pos = Offset; local
200 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos)
202 return Pos - Offset;
208 size_t Pos local
224 size_t Pos = Offset, Res; local
249 size_t Pos = 0, Res; local
[all...]
H A DFuzzerUtil.cpp99 for (size_t Pos = L; Pos <= R; Pos++) {
100 uint8_t V = (uint8_t)Str[Pos];
104 if (Pos + 1 <= R && (Str[Pos + 1] == '\\' || Str[Pos + 1] == '"')) {
105 U->push_back(Str[Pos + 1]);
106 Pos++;
110 if (Pos
140 size_t Pos = 0; local
[all...]
H A DFuzzerUtil.h75 auto Pos = S.find(X); local
76 if (Pos == std::string::npos)
78 return std::make_pair(S.substr(0, Pos), S.substr(Pos));
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Transforms/IPO/
H A DWholeProgramDevirt.h45 std::pair<uint8_t *, uint8_t *> getPtrToData(uint64_t Pos, uint8_t Size) { argument
46 if (Bytes.size() < Pos + Size) {
47 Bytes.resize(Pos + Size);
48 BytesUsed.resize(Pos + Size);
50 return std::make_pair(Bytes.data() + Pos, BytesUsed.data() + Pos);
53 // Set little-endian value Val with size Size at bit position Pos,
55 void setLE(uint64_t Pos, uint64_t Val, uint8_t Size) { argument
56 assert(Pos % 8 == 0);
57 auto DataUsed = getPtrToData(Pos /
67 setBE(uint64_t Pos, uint64_t Val, uint8_t Size) argument
78 setBit(uint64_t Pos, bool b) argument
169 setBeforeBit(uint64_t Pos) argument
175 setAfterBit(uint64_t Pos) argument
183 setBeforeBytes(uint64_t Pos, uint8_t Size) argument
192 setAfterBytes(uint64_t Pos, uint8_t Size) argument
[all...]
/netbsd-current/sys/external/bsd/acpica/dist/utilities/
H A Dutprint.c179 char *Pos; local
182 Pos = String;
187 *(Pos++) = '0';
194 *(Pos++) = Digits[DigitIndex];
198 /* *(Pos++) = '0'; */
199 return (Pos);
299 char *Pos; local
357 Pos = AcpiUtPutNumber (ReversedString, Number, Base, Upper);
358 i = (INT32) ACPI_PTR_DIFF (Pos, ReversedString);
447 char *Pos; local
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/TableGen/
H A DTableGenBackend.cpp24 size_t Pos = (size_t)OS.tell(); local
28 for (size_t i = (size_t)OS.tell() - Pos, e = MAX_LINE_LEN - Suffix.size();
41 size_t Pos = 0U;
43 size_t Length = std::min(Desc.size() - Pos, MAX_LINE_LEN - PSLen);
44 printLine(OS, Prefix + Desc.substr(Pos, Length), ' ', Suffix);
45 Pos += Length;
46 } while (Pos < Desc.size());
/netbsd-current/external/apache2/llvm/dist/llvm/lib/IR/
H A DPassInstrumentation.cpp33 size_t Pos = PassID.find('<'); local
35 if (Pos != StringRef::npos)
36 Prefix = PassID.substr(0, Pos);
/netbsd-current/external/apache2/llvm/dist/clang/lib/Frontend/
H A DLayoutOverrideSource.cpp60 StringRef::size_type Pos; local
61 if ((Pos = LineStr.find("struct ")) != StringRef::npos)
62 LineStr = LineStr.substr(Pos + strlen("struct "));
63 else if ((Pos = LineStr.find("class ")) != StringRef::npos)
64 LineStr = LineStr.substr(Pos + strlen("class "));
65 else if ((Pos = LineStr.find("union ")) != StringRef::npos)
66 LineStr = LineStr.substr(Pos + strlen("union "));
77 StringRef::size_type Pos = LineStr.find(" Size:"); local
78 if (Pos != StringRef::npos) {
80 LineStr = LineStr.substr(Pos
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/Utils/
H A DWebAssemblyUtilities.cpp122 auto Pos = EHPad->begin(); local
125 while (Pos != EHPad->end() &&
126 (Pos->isLabel() || Pos->isDebugInstr() || isMarker(Pos->getOpcode())))
127 Pos++;
128 if (Pos != EHPad->end() && WebAssembly::isCatch(Pos->getOpcode()))
129 return &*Pos;
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/AST/
H A DASTImporterSharedState.h68 auto Pos = ImportErrors.find(ToD); local
69 if (Pos != ImportErrors.end())
70 return Pos->second;
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/LineEditor/
H A DLineEditor.h102 /// \param Pos The zero-based cursor position in the StringRef
103 CompletionAction getCompletionAction(StringRef Buffer, size_t Pos) const;
118 virtual CompletionAction complete(StringRef Buffer, size_t Pos) const = 0;
123 CompletionAction complete(StringRef Buffer, size_t Pos) const override;
126 size_t Pos) const = 0;
132 CompletionAction complete(StringRef Buffer, size_t Pos) const override {
133 return Value(Buffer, Pos);
142 size_t Pos) const override {
143 return Value(Buffer, Pos);
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Tooling/
H A DArgumentsAdjusters.h59 ArgumentInsertPosition Pos);
65 ArgumentInsertPosition Pos = ArgumentInsertPosition::END);
/netbsd-current/external/apache2/llvm/dist/llvm/utils/TableGen/GlobalISel/
H A DCodeExpander.cpp25 size_t Pos = Current.find_first_of("$\n\\"); local
26 if (Pos == StringRef::npos) {
32 OS << Current.substr(0, Pos);
33 Current = Current.substr(Pos);
/netbsd-current/external/apache2/llvm/dist/llvm/tools/llvm-symbolizer/
H A Dllvm-symbolizer.cpp117 const char *Pos = InputString.data(); local
120 Pos += strspn(Pos, kDelimiters);
121 if (*Pos == '"' || *Pos == '\'') {
122 char Quote = *Pos;
123 Pos++;
124 const char *End = strchr(Pos, Quote);
127 ModuleName = std::string(Pos, End - Pos);
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DSTLAlgorithmModeling.cpp122 const auto *Pos = getIteratorPosition(State, Param); local
123 if (Pos) {
124 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(),
131 nonloc::SymbolVal(Pos->getOffset()),
144 Pos = getIteratorPosition(State, Param);
145 if (Pos) {
146 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(),
153 nonloc::SymbolVal(Pos->getOffset()),
/netbsd-current/external/apache2/llvm/dist/llvm/lib/MC/
H A DStringTableBuilder.cpp84 // Returns the character at Pos from end of a string.
85 static int charTailAt(StringPair *P, size_t Pos) { argument
87 if (Pos >= S.size())
89 return (unsigned char)S[S.size() - Pos - 1];
94 static void multikeySort(MutableArrayRef<StringPair *> Vec, int Pos) { argument
102 int Pivot = charTailAt(Vec[0], Pos);
106 int C = charTailAt(Vec[K], Pos);
115 multikeySort(Vec.slice(0, I), Pos);
116 multikeySort(Vec.slice(J), Pos);
118 // multikeySort(Vec.slice(I, J - I), Pos
152 size_t Pos = Size - S.size() - (K != RAW); local
[all...]

Completed in 340 milliseconds

1234567891011