| /llvm-project-15.0.7/llvm/lib/CodeGen/MIRParser/ |
| H A D | MILexer.cpp | 31 class Cursor { class 86 static Cursor skipWhitespace(Cursor C) { in skipWhitespace() 95 static Cursor skipComment(Cursor C) { in skipComment() 105 static Cursor skipMachineOperandComment(Cursor C) { in skipMachineOperandComment() 129 Cursor C = Cursor(Value.substr(1, Value.size() - 2)); in unescapeQuotedString() 389 static Cursor maybeLexIRBlock(Cursor C, MIToken &Token, in maybeLexIRBlock() 399 static Cursor maybeLexIRValue(Cursor C, MIToken &Token, in maybeLexIRValue() 443 static Cursor maybeLexRegister(Cursor C, MIToken &Token, in maybeLexRegister() 493 static Cursor maybeLexMCSymbol(Cursor C, MIToken &Token, in maybeLexMCSymbol() 544 static Cursor lexFloatingPointLiteral(Cursor Range, Cursor C, MIToken &Token) { in lexFloatingPointLiteral() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Bitstream/ |
| H A D | BitstreamReaderTest.cpp | 22 BitstreamCursor Cursor(Bytes); in TEST() local 24 EXPECT_FALSE(Cursor.AtEndOfStream()); in TEST() 27 EXPECT_FALSE(Cursor.AtEndOfStream()); in TEST() 28 MaybeRead = Cursor.Read(24); in TEST() 30 EXPECT_TRUE(Cursor.AtEndOfStream()); in TEST() 32 EXPECT_FALSE(Cursor.JumpToBit(0)); in TEST() 35 EXPECT_FALSE(Cursor.JumpToBit(32)); in TEST() 36 EXPECT_TRUE(Cursor.AtEndOfStream()); in TEST() 43 BitstreamCursor Cursor(Bytes); in TEST() local 45 EXPECT_FALSE(Cursor.JumpToBit(32)); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | DataExtractor.h | 54 class Cursor { 136 const char *getCStr(Cursor &C) const { return getCStrRef(C).data(); } in getCStr() 169 StringRef getCStrRef(Cursor &C) const { in getCStrRef() 239 StringRef getBytes(Cursor &C, uint64_t Length) { in getBytes() 279 uint64_t getUnsigned(Cursor &C, uint32_t Size) const { in getUnsigned() 359 uint8_t getU8(Cursor &C) const { return getU8(&C.Offset, &C.Err); } in getU8() 390 uint8_t *getU8(Cursor &C, uint8_t *Dst, uint32_t Count) const; 652 void skip(Cursor &C, uint64_t Length) const; 658 bool eof(const Cursor &C) const { return size() == C.Offset; } in eof() 693 static uint64_t &getOffset(Cursor &C) { return C.Offset; } in getOffset() [all …]
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFDebugLine.cpp | 366 DataExtractor::Cursor Cursor(*OffsetPtr); in parse() local 414 } else if (Cursor) { in parse() 426 if (!Cursor) in parse() 721 DataExtractor::Cursor &Cursor) { in parseULEB128() argument 723 if (Cursor) in parseULEB128() 803 DataExtractor::Cursor Cursor(*OffsetPtr); in parse() local 825 if (!Cursor) { in parse() 969 if (Cursor && Cursor.tell() != End) in parse() 1022 if (Cursor) { in parse() 1097 if (Cursor) { in parse() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | DataExtractorTest.cpp | 100 DataExtractor::Cursor C(0); in TEST() 139 DataExtractor::Cursor C(0); in TEST() 164 DataExtractor::Cursor C(0); in TEST() 181 DataExtractor::Cursor C(5); in TEST() 194 DataExtractor::Cursor C(0); in TEST() 218 DataExtractor::Cursor C(0); in TEST() 277 DataExtractor::Cursor C(0); in TEST() 297 DataExtractor::Cursor C(0); in TEST() 307 DataExtractor::Cursor C(0); in TEST() 320 DataExtractor::Cursor C(0); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/bindings/python/clang/ |
| H A D | cindex.py | 3479 [Cursor, Cursor], 3519 Cursor, 3572 Cursor, 3586 Cursor, 3595 Cursor, 3609 Cursor, 3783 Cursor, 3810 Cursor, 3836 Cursor, 3851 Cursor, [all …]
|
| /llvm-project-15.0.7/lldb/include/lldb/Target/ |
| H A D | UnwindLLDB.h | 111 struct Cursor { struct 122 Cursor() = default; argument 125 Cursor(const Cursor &) = delete; 126 const Cursor &operator=(const Cursor &) = delete; argument 129 typedef std::shared_ptr<Cursor> CursorSP;
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | SerializedDiagnosticReader.cpp | 109 enum class SerializedDiagnosticReader::Cursor { enum in SerializedDiagnosticReader 115 llvm::ErrorOr<SerializedDiagnosticReader::Cursor> 130 return Cursor::Record; in skipUntilRecordOrBlock() 138 return Cursor::BlockBegin; in skipUntilRecordOrBlock() 143 return Cursor::BlockEnd; in skipUntilRecordOrBlock() 179 case Cursor::Record: in readMetaBlock() 181 case Cursor::BlockBegin: in readMetaBlock() 188 case Cursor::BlockEnd: in readMetaBlock() 231 case Cursor::BlockBegin: in readDiagnosticBlock() 242 case Cursor::BlockEnd: in readDiagnosticBlock() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | RefactoringActionRulesTest.cpp | 102 SourceLocation Cursor = in TEST_F() local 105 RefContext.setSelectionRange({Cursor, Cursor}); in TEST_F() 165 SourceLocation Cursor = in TEST_F() local 167 RefContext.setSelectionRange({Cursor, Cursor}); in TEST_F() 224 SourceLocation Cursor = in TEST_F() local 226 RefContext.setSelectionRange({Cursor, Cursor}); in TEST_F() 235 SourceRange(Cursor, Cursor.getLocWithOffset(strlen("test")))); in TEST_F()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Format.cpp | 152 unsigned Cursor, in getIncrementalChangesAfterNewline() argument 161 StringRef Trailing = firstLine(Code.substr(Cursor)); in getIncrementalChangesAfterNewline() 162 StringRef Indentation = lastLine(Code.take_front(Cursor)); in getIncrementalChangesAfterNewline() 227 return getIncrementalChangesAfterNewline(Code, Cursor, TabWidth); in getIncrementalChanges() 293 unsigned FormatLimit = Cursor; in formatIncremental() 298 CodeToFormat.insert(Cursor, Incremental.CursorPlaceholder); in formatIncremental() 306 if (R.getOffset() > Cursor) in formatIncremental() 312 tooling::Range(Cursor, Incremental.CursorPlaceholder.size())); in formatIncremental() 330 Cursor, CodeToFormat); in formatIncremental() 342 FormattingChanges.getShiftedCodePosition(Cursor), in formatIncremental() [all …]
|
| /llvm-project-15.0.7/clang/tools/c-index-test/ |
| H A D | c-index-test.c | 790 string = CursorToText(Cursor); in PrintCursor() 1308 PrintCursorExtent(Cursor); in FilteredPrintingVisitor() 2822 CXCursor Cursor; in inspect_cursor_at() local 2897 handler(Cursor); in inspect_cursor_at() 2921 PrintCursor(Cursor, NULL); in inspect_print_cursor() 2922 PrintCursorExtent(Cursor); in inspect_print_cursor() 3037 PrintCursor(Cursor, NULL); in inspect_evaluate_cursor() 3038 PrintCursorExtent(Cursor); in inspect_evaluate_cursor() 3072 PrintCursor(Cursor, NULL); in inspect_macroinfo_cursor() 3073 PrintCursorExtent(Cursor); in inspect_macroinfo_cursor() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | InterferenceCache.h | 176 class Cursor { 194 Cursor() = default; 196 Cursor(const Cursor &O) { in Cursor() function 200 Cursor &operator=(const Cursor &O) { 205 ~Cursor() { setEntry(nullptr); } in ~Cursor()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | ExpandMacro.cpp | 68 SourceLocation Cursor) { in findIdentifierUnderCursor() argument 69 assert(Cursor.isFileID()); in findIdentifierUnderCursor() 72 auto Spelled = Tokens.spelledTokens(SM.getFileID(Cursor)); in findIdentifierUnderCursor() 74 auto *T = findTokenUnderCursor(SM, Spelled, SM.getFileOffset(Cursor)); in findIdentifierUnderCursor() 85 if (T->endLocation() != Cursor || T->kind() != tok::identifier) in findIdentifierUnderCursor() 95 auto *T = findIdentifierUnderCursor(Inputs.AST->getTokens(), Inputs.Cursor); in prepare()
|
| H A D | RawStringLiteral.cpp | 46 static bool isNormalString(const StringLiteral &Str, SourceLocation Cursor, in REGISTER_TWEAK() 55 if (SM.isBeforeInTranslationUnit(*I, Cursor) || *I == Cursor) in REGISTER_TWEAK() 80 isNormalString(*Str, Inputs.Cursor, Inputs.AST->getSourceManager()) && in prepare()
|
| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | c-index-getCursor-test.m | 62 // CHECK: [1:1 - 3:1] Invalid Cursor => NoDeclFound 68 // CHECK: [10:5 - 12:1] Invalid Cursor => NoDeclFound 72 // CHECK: [16:5 - 18:1] Invalid Cursor => NoDeclFound 82 // CHECK: [21:5 - 23:1] Invalid Cursor => NoDeclFound 86 // CHECK: [25:5 - 27:1] Invalid Cursor => NoDeclFound 92 // CHECK: [29:5 - 31:1] Invalid Cursor => NoDeclFound 104 // CHECK: [38:5 - 40:1] Invalid Cursor => NoDeclFound 108 // CHECK: [42:2 - 44:1] Invalid Cursor => NoDeclFound
|
| H A D | TestClassDecl.m | 18 // CHECK-scan: [1:1 - 8:1] Invalid Cursor => NoDeclFound 21 // CHECK-scan: [8:11 - 10:1] Invalid Cursor => NoDeclFound 23 // CHECK-scan: [11:5 - 13:1] Invalid Cursor => NoDeclFound
|
| /llvm-project-15.0.7/llvm/unittests/DebugInfo/DWARF/ |
| H A D | DWARFDataExtractorTest.cpp | 61 DataExtractor::Cursor C(0); in TEST() 74 DWARFDataExtractor::Cursor C(0); in TEST() 193 DataExtractor::Cursor C(0); in TEST() 199 C = DataExtractor::Cursor{0}; in TEST() 209 C = DataExtractor::Cursor{0}; in TEST() 218 C = DataExtractor::Cursor{0}; in TEST()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CXCursor.h | 237 const Decl *getCursorDecl(CXCursor Cursor); 238 const Expr *getCursorExpr(CXCursor Cursor); 239 const Stmt *getCursorStmt(CXCursor Cursor); 240 const Attr *getCursorAttr(CXCursor Cursor); 242 ASTContext &getCursorContext(CXCursor Cursor); 243 ASTUnit *getCursorASTUnit(CXCursor Cursor); 244 CXTranslationUnit getCursorTU(CXCursor Cursor);
|
| /llvm-project-15.0.7/clang/include/clang/Serialization/ |
| H A D | ASTRecordReader.h | 51 Expected<unsigned> readRecord(llvm::BitstreamCursor &Cursor, 353 explicit SavedStreamPosition(llvm::BitstreamCursor &Cursor) in SavedStreamPosition() 354 : Cursor(Cursor), Offset(Cursor.GetCurrentBitNo()) {} in SavedStreamPosition() 357 if (llvm::Error Err = Cursor.JumpToBit(Offset)) in ~SavedStreamPosition() 364 llvm::BitstreamCursor &Cursor;
|
| /llvm-project-15.0.7/clang/bindings/python/tests/cindex/ |
| H A D | util.py | 13 from clang.cindex import Cursor 53 root_cursor = source if isinstance(source, Cursor) else source.cursor 71 root_cursor = source if isinstance(source, Cursor) else source.cursor
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | PlaceSafepoints.cpp | 415 Instruction *Cursor = nullptr; in findLocationForEntrySafepoint() local 416 for (Cursor = &F.getEntryBlock().front(); HasNextInstruction(Cursor); in findLocationForEntrySafepoint() 417 Cursor = NextInstruction(Cursor)) { in findLocationForEntrySafepoint() 426 if (auto *Call = dyn_cast<CallBase>(Cursor)) { in findLocationForEntrySafepoint() 433 assert((HasNextInstruction(Cursor) || Cursor->isTerminator()) && in findLocationForEntrySafepoint() 436 return Cursor; in findLocationForEntrySafepoint()
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/DWARF/ |
| H A D | DWARFDataExtractor.h | 56 std::pair<uint64_t, dwarf::DwarfFormat> getInitialLength(Cursor &C) const { in getInitialLength() 65 uint64_t getRelocatedValue(Cursor &C, uint32_t Size, 75 uint64_t getRelocatedAddress(Cursor &C, uint64_t *SecIx = nullptr) const {
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | FormatTests.cpp | 25 unsigned Cursor = llvm::cantFail(positionToOffset(Code.code(), Code.point())); in afterTyped() local 26 auto Changes = formatIncremental(Code.code(), Cursor, Typed, Style); in afterTyped() 34 NewCode->insert(transformCursorPosition(Cursor, Changes), "^"); in afterTyped()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-doc/ |
| H A D | BitcodeReader.h | 38 enum class Cursor { BadBlock = 1, Record, BlockEnd, BlockBegin }; enum 62 Cursor skipUntilRecordOrBlock(unsigned &BlockOrRecordID);
|
| H A D | BitcodeReader.cpp | 560 case Cursor::BadBlock: in readBlock() 563 case Cursor::BlockEnd: in readBlock() 565 case Cursor::BlockBegin: in readBlock() 572 case Cursor::Record: in readBlock() 652 ClangDocBitcodeReader::Cursor 661 return Cursor::BadBlock; in skipUntilRecordOrBlock() 667 return Cursor::Record; in skipUntilRecordOrBlock() 677 return Cursor::BlockBegin; in skipUntilRecordOrBlock() 680 return Cursor::BadBlock; in skipUntilRecordOrBlock() 681 return Cursor::BlockEnd; in skipUntilRecordOrBlock() [all …]
|