| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | MultiplexExternalSemaSource.cpp | 24 Sources.push_back(&s1); in MultiplexExternalSemaSource() 25 Sources.push_back(&s2); in MultiplexExternalSemaSource() 36 Sources.push_back(&source); in addSource() 89 for (auto *S : Sources) in GetExternalCXXCtorInitializers() 97 for (const auto &S : Sources) in hasExternalDefinitions() 134 Sources[i]->CompleteType(Tag); in CompleteType() 144 Sources[i]->ReadComments(); in ReadComments() 164 Sources[i]->PrintStats(); in PrintStats() 201 Sources[i]->InitializeSema(S); in InitializeSema() 206 Sources[i]->ForgetSema(); in ForgetSema() [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ASTUtils.h | 261 Sources.push_back(&source); in addSource() 315 for (auto *S : Sources) in GetExternalCXXCtorInitializers() 419 for (auto &Source : Sources) in getMemoryBufferSizes() 428 for (auto &Source : Sources) in InitializeSema() 433 for (auto &Source : Sources) in ForgetSema() 438 for (auto &Source : Sources) in ReadMethodPool() 443 for (auto &Source : Sources) in updateOutOfDateSelector() 449 for (auto &Source : Sources) in ReadKnownNamespaces() 456 for (auto &Source : Sources) in ReadUndefinedButUsed() 464 for (auto &Source : Sources) in ReadMismatchingDeleteExpressions() [all …]
|
| /llvm-project-15.0.7/lldb/tools/debugserver/debugserver.xcodeproj/ |
| H A D | project.pbxproj | 423 26CE0591115C31C20022F371 /* Sources */, 440 456F67451AD46CE9002850C2 /* Sources */, 498 26CE0591115C31C20022F371 /* Sources */ = { 516 233B4EA71D2DB54300E98261 /* JSON.cpp in Sources */, 520 26CE05B6115C36390022F371 /* MachTask.mm in Sources */, 521 26CE05B7115C363B0022F371 /* DNB.cpp in Sources */, 526 26CE05BA115C363E0022F371 /* DNBLog.cpp in Sources */, 542 456F67451AD46CE9002850C2 /* Sources */ = { 549 23043C9D1D35DBEC00FC25CA /* JSON.cpp in Sources */, 563 456F67551AD46CE9002850C2 /* DNB.cpp in Sources */, [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | NamespaceCommentCheck.cpp | 42 static bool locationsInSameFile(const SourceManager &Sources, in locationsInSameFile() argument 45 Sources.getFileID(Loc1) == Sources.getFileID(Loc2); in locationsInSameFile() 59 Loc, Sources, LangOpts)) { in getNamespaceNameAsWritten() 85 const SourceManager &Sources = *Result.SourceManager; in check() local 94 unsigned StartLine = Sources.getSpellingLineNumber(ND->getBeginLoc()); in check() 95 unsigned EndLine = Sources.getSpellingLineNumber(ND->getRBraceLoc()); in check() 101 ND->getRBraceLoc(), /*Offset=*/0, Sources, getLangOpts()); in check() 114 getNamespaceNameAsWritten(LBraceLoc, Sources, getLangOpts()); in check() 127 while (Lexer::getRawToken(Loc, Tok, Sources, getLangOpts()) || in check() 132 if (!locationsInSameFile(Sources, ND->getRBraceLoc(), Loc)) in check() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseOverrideCheck.cpp | 47 const SourceManager &Sources = *Result.SourceManager; in parseTokens() local 49 Sources.getDecomposedLoc(Range.getBegin()); in parseTokens() 50 StringRef File = Sources.getBufferData(LocInfo.first); in parseTokens() 52 Lexer RawLexer(Sources.getLocForStartOfFile(LocInfo.first), in parseTokens() 79 return StringRef(Sources.getCharacterData(Tok.getLocation()), in getText() 85 const SourceManager &Sources = *Result.SourceManager; in check() local 159 Sources.getExpansionLoc(A->getRange().getBegin()); in check() 162 !Sources.isBeforeInTranslationUnit(Loc, MethodLoc)) in check() 188 (getText(Tokens.back(), Sources) == "0" || in check() 191 getText(Tokens[Tokens.size() - 2], Sources) == "=") { in check() [all …]
|
| H A D | ConcatNestedNamespacesCheck.cpp | 19 static bool locationsInSameFile(const SourceManager &Sources, in locationsInSameFile() argument 22 Sources.getFileID(Loc1) == Sources.getFileID(Loc2); in locationsInSameFile() 40 const SourceManager &Sources, in alreadyConcatenated() argument 44 Lexer::getAsCharRange(ReplacementRange, Sources, LangOpts); in alreadyConcatenated() 46 Lexer::getSourceText(TextRange, Sources, LangOpts); in alreadyConcatenated() 80 const SourceManager &Sources = *Result.SourceManager; in check() local 82 if (!locationsInSameFile(Sources, ND.getBeginLoc(), ND.getRBraceLoc())) in check() 98 if (!alreadyConcatenated(Namespaces.size(), FrontReplacement, Sources, in check()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | CommentParser.cpp | 630 const char *Sources[] = { in TEST_F() local 794 const char *Sources[] = { in TEST_F() local 823 const char *Sources[] = { in TEST_F() local 853 const char *Sources[] = { in TEST_F() local 883 const char *Sources[] = { in TEST_F() local 940 const char *Sources[] = { in TEST_F() local 1078 const char *Sources[] = { in TEST_F() local 1101 const char *Sources[] = { in TEST_F() local 1123 const char *Sources[] = { in TEST_F() local 1147 const char *Sources[] = { in TEST_F() local [all …]
|
| H A D | CommentLexer.cpp | 91 const char *Sources[] = { in TEST_F() local 107 const char *Sources[] = { in TEST_F() local 124 const char *Sources[] = { in TEST_F() local 145 const char *Sources[] = { in TEST_F() local 166 const char *Sources[] = { in TEST_F() local 303 const char *Sources[] = { in TEST_F() local 576 const char *Sources[] = { in TEST_F() local 643 const char *Sources[] = { in TEST_F() local 674 const char *Sources[] = { in TEST_F() local 899 const char *Sources[] = { in TEST_F() local [all …]
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | RefactoringTest.cpp | 436 toReplacements({Replacement(Context.Sources, in TEST_F() 438 Replacement(Context.Sources, in TEST_F() 493 Replacement ConflictReplacement(Context.Sources, in TEST_F() 1100 AtomicChange Change(Context.Sources, DefaultLoc); in TEST_F() 1182 AtomicChange Change(Context.Sources, DefaultLoc); in TEST_F() 1188 AtomicChange Change(Context.Sources, DefaultLoc); in TEST_F() 1203 AtomicChange Change(Context.Sources, DefaultLoc); in TEST_F() 1214 AtomicChange Change(Context.Sources, DefaultLoc); in TEST_F() 1228 AtomicChange Change(Context.Sources, DefaultLoc); in TEST_F() 1242 AtomicChange Change(Context.Sources, DefaultLoc); in TEST_F() [all …]
|
| H A D | RefactoringActionRulesTest.cpp | 28 Context.Sources.setMainFileID( in SetUp() 101 RefactoringRuleContext RefContext(Context.Sources); in TEST_F() 103 Context.Sources.getLocForStartOfFile(Context.Sources.getMainFileID()) in TEST_F() 133 RefactoringRuleContext RefContext(Context.Sources); in TEST_F() 164 RefactoringRuleContext RefContext(Context.Sources); in TEST_F() 166 Context.Sources.getLocForStartOfFile(Context.Sources.getMainFileID()); in TEST_F() 223 RefactoringRuleContext RefContext(Context.Sources); in TEST_F() 225 Context.Sources.getLocForStartOfFile(Context.Sources.getMainFileID()); in TEST_F()
|
| H A D | RewriterTestContext.h | 59 Sources(Diagnostics, Files), Rewrite(Sources, Options) { in RewriterTestContext() 75 return Sources.createFileID(*Entry, SourceLocation(), SrcMgr::C_User); in createInMemoryFile() 98 return Sources.createFileID(*File, SourceLocation(), SrcMgr::C_User); in createOnDiskFile() 102 SourceLocation Result = Sources.translateFileLineCol( in getLocation() 103 Sources.getFileEntryForID(ID), Line, Column); in getLocation() 134 SourceManager Sources; variable
|
| /llvm-project-15.0.7/clang/lib/Tooling/Core/ |
| H A D | Diagnostic.cpp | 25 const SourceManager &Sources, in DiagnosticMessage() argument 29 FilePath = std::string(Sources.getFilename(Loc)); in DiagnosticMessage() 35 FileOffset = Sources.getFileOffset(Loc); in DiagnosticMessage() 39 const SourceManager &Sources, CharSourceRange Range) in FileByteRange() argument 41 FilePath = std::string(Sources.getFilename(Range.getBegin())); in FileByteRange() 43 FileOffset = Sources.getFileOffset(Range.getBegin()); in FileByteRange() 44 Length = Sources.getFileOffset(Range.getEnd()) - FileOffset; in FileByteRange()
|
| H A D | Replacement.cpp | 52 Replacement::Replacement(const SourceManager &Sources, SourceLocation Start, in Replacement() argument 54 setFromSourceLocation(Sources, Start, Length, ReplacementText); in Replacement() 57 Replacement::Replacement(const SourceManager &Sources, in Replacement() argument 61 setFromSourceRange(Sources, Range, ReplacementText, LangOpts); in Replacement() 120 void Replacement::setFromSourceLocation(const SourceManager &Sources, in setFromSourceLocation() argument 124 Sources.getDecomposedLoc(Start); in setFromSourceLocation() 134 static int getRangeSize(const SourceManager &Sources, in getRangeSize() argument 138 SourceLocation SpellingEnd = Sources.getSpellingLoc(Range.getEnd()); in getRangeSize() 147 void Replacement::setFromSourceRange(const SourceManager &Sources, in setFromSourceRange() argument 151 setFromSourceLocation(Sources, Sources.getSpellingLoc(Range.getBegin()), in setFromSourceRange() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | FileDistance.h | 72 FileDistance(llvm::StringMap<SourceParams> Sources, 91 URIDistance(llvm::StringMap<SourceParams> Sources, 93 : Sources(Sources), Opts(Opts) {} in Sources() argument 105 llvm::StringMap<SourceParams> Sources; variable
|
| H A D | FileDistance.cpp | 60 FileDistance::FileDistance(llvm::StringMap<SourceParams> Sources, in FileDistance() argument 66 for (const auto &S : Sources) { in FileDistance() 167 for (const auto &Source : Sources) { in forScheme() 174 SchemeSources.size(), Sources.size()); in forScheme() 193 llvm::StringMap<SourceParams> Sources; in createScopeFileDistance() local 210 Sources[Path.first] = std::move(Param); in createScopeFileDistance() 212 return FileDistance(std::move(Sources), Opts); in createScopeFileDistance()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | Serialization.h | 47 llvm::Optional<IncludeGraph> Sources; member 60 const IncludeGraph *Sources = nullptr; member 70 Sources(I.Sources ? I.Sources.getPointer() : nullptr), in IndexFileOut()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | IndexActionTests.cpp | 51 ASSERT_TRUE(IndexFile.Sources); in checkNodesAreInitialized() 52 EXPECT_THAT(Paths.size(), IndexFile.Sources->size()); in checkNodesAreInitialized() 55 const auto &Node = IndexFile.Sources->lookup(URI); in checkNodesAreInitialized() 57 EXPECT_EQ(Node.URI.data(), IndexFile.Sources->find(URI)->getKeyData()); in checkNodesAreInitialized() 83 [&](IncludeGraph IG) { IndexFile.Sources = std::move(IG); }); in __anonae56ce760502() 126 auto Nodes = toMap(*IndexFile.Sources); in TEST_F() 155 auto Nodes = toMap(*IndexFile.Sources); in TEST_F() 190 auto Nodes = toMap(*IndexFile.Sources); in TEST_F() 222 auto Nodes = toMap(*IndexFile.Sources); in TEST_F() 250 ASSERT_TRUE(IndexFile.Sources); in TEST_F() [all …]
|
| H A D | SerializationTests.cpp | 184 ASSERT_TRUE(bool(ParsedYAML->Sources)); in TEST() 186 ASSERT_TRUE(ParsedYAML->Sources->count(URI)); in TEST() 187 auto IGNDeserialized = ParsedYAML->Sources->lookup(URI); in TEST() 250 IncludeGraph Sources; in TEST() local 251 Sources[IGN.URI] = IGN; in TEST() 255 Out.Sources = &Sources; in TEST() 263 ASSERT_TRUE(In->Sources); in TEST() 264 ASSERT_TRUE(In->Sources->count(IGN.URI)); in TEST() 270 auto IGNDeserialized = In->Sources->lookup(IGN.URI); in TEST()
|
| H A D | BackgroundIndexTests.cpp | 365 EXPECT_TRUE(ShardSource->Sources); in TEST_F() 366 EXPECT_EQ(ShardSource->Sources->size(), 2U); // A.cc, A.h in TEST_F() 372 EXPECT_THAT(ShardSource->Sources->lookup("unittest:///root/A.h"), in TEST_F() 376 EXPECT_TRUE(ShardHeader->Sources); in TEST_F() 377 EXPECT_EQ(ShardHeader->Sources->size(), 2U); // A.h, B.h in TEST_F() 381 EXPECT_NE(ShardHeader->Sources->lookup("unittest:///root/A.h").Digest, in TEST_F() 383 EXPECT_THAT(ShardHeader->Sources->lookup("unittest:///root/B.h"), in TEST_F() 589 EXPECT_THAT(Shard->Sources->keys(), in TEST_F() 598 EXPECT_THAT(Shard->Sources->keys(), in TEST_F() 606 EXPECT_THAT(Shard->Sources->keys(), in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/ |
| H A D | ExpandModularHeadersPPCallbacks.cpp | 72 Sources(Compiler.getSourceManager()), in ExpandModularHeadersPPCallbacks() 81 Diags.setSourceManager(&Sources); in ExpandModularHeadersPPCallbacks() 88 HeaderInfo = std::make_unique<HeaderSearch>(HSO, Sources, Diags, LangOpts, in ExpandModularHeadersPPCallbacks() 94 PP = std::make_unique<clang::Preprocessor>(PO, Diags, LangOpts, Sources, in ExpandModularHeadersPPCallbacks() 134 for (unsigned I = 0, N = Sources.loaded_sloc_entry_size(); I != N; ++I) { in parseToLocation() 135 Sources.getLoadedSLocEntry(I, nullptr); in parseToLocation() 138 for (auto It = Sources.fileinfo_begin(); It != Sources.fileinfo_end(); ++It) { in parseToLocation() 148 Sources.isBeforeInTranslationUnit(CurrentToken.getLocation(), Loc)) { in parseToLocation()
|
| /llvm-project-15.0.7/clang/tools/clang-format/ |
| H A D | ClangFormat.cpp | 214 return Sources.createFileID(*File, SourceLocation(), SrcMgr::C_User); in createInMemoryFile() 234 SourceManager Sources(Diagnostics, Files); in fillRanges() local 235 FileID ID = createInMemoryFile("<irrelevant>", *Code, Sources, Files, in fillRanges() 261 unsigned Offset = Sources.getFileOffset(Start); in fillRanges() 262 unsigned Length = Sources.getFileOffset(End) - Offset; in fillRanges() 281 Sources.getLocForStartOfFile(ID).getLocWithOffset(Offsets[i]); in fillRanges() 292 End = Sources.getLocForEndOfFile(ID); in fillRanges() 294 unsigned Offset = Sources.getFileOffset(Start); in fillRanges() 295 unsigned Length = Sources.getFileOffset(End) - Offset; in fillRanges() 514 SourceManager Sources(Diagnostics, Files); in format() local [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/unittests/include/common/ |
| H A D | VirtualFileHelper.h | 50 Sources.reset(new SourceManager(Diagnostics, Files)); in getNewSourceManager() 51 mapVirtualFiles(*Sources); in getNewSourceManager() 52 return *Sources; in getNewSourceManager() 76 std::unique_ptr<SourceManager> Sources; variable
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Core/ |
| H A D | Replacement.h | 99 Replacement(const SourceManager &Sources, SourceLocation Start, 103 Replacement(const SourceManager &Sources, const CharSourceRange &Range, 109 Replacement(const SourceManager &Sources, const Node &NodeToReplace, 133 void setFromSourceLocation(const SourceManager &Sources, SourceLocation Start, 135 void setFromSourceRange(const SourceManager &Sources, 359 Replacement::Replacement(const SourceManager &Sources, in Replacement() argument 364 setFromSourceRange(Sources, Range, ReplacementText, LangOpts); in Replacement()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | ExplicitConstructorCheck.cpp | 38 static SourceRange findToken(const SourceManager &Sources, in findToken() argument 44 FileID File = Sources.getFileID(Sources.getSpellingLoc(StartLoc)); in findToken() 45 StringRef Buf = Sources.getBufferData(File); in findToken() 46 const char *StartChar = Sources.getCharacterData(StartLoc); in findToken()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-reorder-fields/tool/ |
| H A D | ClangReorderFields.cpp | 82 SourceManager Sources(Diagnostics, FileMgr); in main() local 83 Rewriter Rewrite(Sources, DefaultLangOptions); in main() 88 const auto ID = Sources.getOrCreateFileID(*Entry, SrcMgr::C_User); in main()
|