| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | RefactoringActionRulesTest.cpp | 45 void handle(SymbolOccurrences Occurrences) override { in createReplacements() argument 46 RefactoringResultConsumer::handle(std::move(Occurrences)); in createReplacements() 182 void handle(SymbolOccurrences Occurrences) override { in findOccurrences() argument 183 Result = std::move(Occurrences); in findOccurrences() 212 SymbolOccurrences Occurrences; in TEST_F() local 213 Occurrences.push_back(SymbolOccurrence(SymbolName("test"), in TEST_F() 216 return std::move(Occurrences); in TEST_F() 230 SymbolOccurrences Occurrences = std::move(*Result); in TEST_F() local 231 EXPECT_EQ(Occurrences.size(), 1u); in TEST_F() 233 EXPECT_EQ(Occurrences[0].getNameRanges().size(), 1u); in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | RenamingAction.cpp | 81 Expected<SymbolOccurrences> Occurrences = findSymbolOccurrences(ND, Context); in createSourceReplacements() local 82 if (!Occurrences) in createSourceReplacements() 83 return Occurrences.takeError(); in createSourceReplacements() 87 *Occurrences, Context.getASTContext().getSourceManager(), Name); in createSourceReplacements() 145 createRenameReplacements(const SymbolOccurrences &Occurrences, in createRenameReplacements() argument 149 for (const auto &Occurrence : Occurrences) { in createRenameReplacements() 209 SymbolOccurrences Occurrences = tooling::getOccurrencesOfUSRs( in HandleOneRename() local 212 for (const auto &Occurrence : Occurrences) { in HandleOneRename() 224 createRenameReplacements(Occurrences, SourceMgr, NewNameRef); in HandleOneRename()
|
| H A D | USRLocFinder.cpp | 85 SymbolOccurrences takeOccurrences() { return std::move(Occurrences); } in takeOccurrences() 100 Occurrences.emplace_back(PrevName, SymbolOccurrence::MatchingSymbol, in checkAndAddLocation() 106 SymbolOccurrences Occurrences; member in clang::tooling::__anon945a552f0111::USRLocFindingASTVisitor
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/ |
| H A D | RefactoringActionRules.h | 78 Expected<SymbolOccurrences> Occurrences = findSymbolOccurrences(Context); in invoke() local 79 if (!Occurrences) in invoke() 80 Consumer.handleError(Occurrences.takeError()); in invoke() 82 Consumer.handle(std::move(*Occurrences)); in invoke()
|
| H A D | RefactoringResultConsumer.h | 39 virtual void handle(SymbolOccurrences Occurrences) { defaultResultHandler(); } in handle() argument
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/ |
| H A D | Rename.cpp | 805 std::vector<Range> Occurrences, in buildRenameEdit() argument 810 static_cast<int64_t>(Occurrences.size())); in buildRenameEdit() 812 assert(std::is_sorted(Occurrences.begin(), Occurrences.end())); in buildRenameEdit() 813 assert(std::unique(Occurrences.begin(), Occurrences.end()) == in buildRenameEdit() 814 Occurrences.end() && in buildRenameEdit() 837 for (const auto &R : Occurrences) { in buildRenameEdit()
|
| H A D | Rename.h | 69 std::vector<Range> Occurrences,
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/Rename/ |
| H A D | RenamingAction.h | 94 createRenameReplacements(const SymbolOccurrences &Occurrences,
|
| /llvm-project-15.0.7/clang/tools/clang-refactor/ |
| H A D | TestSupport.cpp | 135 void handle(tooling::SymbolOccurrences Occurrences) override { in handle() argument 136 tooling::RefactoringResultConsumer::handle(std::move(Occurrences)); in handle()
|
| H A D | ClangRefactor.cpp | 335 void handle(SymbolOccurrences Occurrences) override { in handle() argument
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/readability/ |
| H A D | implicit-bool-conversion.rst | 121 Occurrences of implicit conversions inside macros and template instantiations
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | CommandLine.h | 262 uint16_t Occurrences : 3; // enum NumOccurrencesFlag variable 282 return (enum NumOccurrencesFlag)Occurrences; in getNumOccurrencesFlag() 321 void setNumOccurrencesFlag(enum NumOccurrencesFlag Val) { Occurrences = Val; } in setNumOccurrencesFlag() 333 : NumOccurrences(0), Occurrences(OccurrencesFlag), Value(0), in Option()
|
| /llvm-project-15.0.7/bolt/lib/Profile/ |
| H A D | DataReader.cpp | 1029 int64_t Occurrences = BRes.get(); in parseSampleInfo() local 1037 return SampleInfo(std::move(Address), Occurrences); in parseSampleInfo()
|