Home
last modified time | relevance | path

Searched refs:getFilePath (Results 1 – 25 of 38) sorted by relevance

12

/llvm-project/clang-tools-extra/clang-include-fixer/
H A DSymbolIndexManager.cpp58 double NewScore = similarityScore(FileName, Symbol.Symbol.getFilePath()) * in rank()
60 double &S = Score[Symbol.Symbol.getFilePath()]; in rank()
67 auto AS = Score[A.Symbol.getFilePath()]; in rank()
68 auto BS = Score[B.Symbol.getFilePath()]; in rank()
71 return A.Symbol.getFilePath() < B.Symbol.getFilePath(); in rank()
H A DIncludeFixer.cpp333 std::string FilePath = Symbol.getFilePath().str(); in getIncludeFixerContext()
411 StringRef FilePath = Context.getFilePath(); in createIncludeFixerReplacements()
437 R.getFilePath(), Replaces.getShiftedCodePosition(R.getOffset()), in createIncludeFixerReplacements()
H A DIncludeFixerContext.h64 StringRef getFilePath() const { return FilePath; } in getFilePath() function
H A DIncludeFixerContext.cpp100 {Symbol.getFilePath().str(), in IncludeFixerContext()
/llvm-project/clang/lib/Tooling/Core/
H A DReplacement.cpp105 if (LHS.getFilePath() != RHS.getFilePath()) in operator <()
106 return LHS.getFilePath() < RHS.getFilePath(); in operator <()
113 LHS.getFilePath() == RHS.getFilePath() && in operator ==()
161 return Replacement(R.getFilePath(), NewStart, NewEnd - NewStart, in getReplacementInChangedCode()
208 R.getFilePath(), Prev.getOffset(), Prev.getLength() + R.getLength(), in getCanonicalReplacements()
248 if (!Replaces.empty() && R.getFilePath() != Replaces.begin()->getFilePath()) in add()
[all...]
/llvm-project/clang/unittests/Tooling/
H A DReplacementsYamlTest.cpp92 ASSERT_EQ("/path/to/file1.h", DocActual.Replacements[0].getFilePath()); in TEST()
96 ASSERT_EQ("/path/to/file2.h", DocActual.Replacements[1].getFilePath()); in TEST()
118 ASSERT_EQ("target_file.h", DocActual.Replacements[0].getFilePath()); in TEST()
H A DDiagnosticsYamlTest.cpp183 EXPECT_EQ("path/to/source.cpp", Fixes1[0].getFilePath()); in TEST()
196 EXPECT_EQ("path/to/header.h", Fixes2[0].getFilePath()); in TEST()
H A DTransformerTest.cpp1623 return L.getFilePath() < R.getFilePath(); in TEST_F()
1626 ASSERT_EQ(llvm::sys::path::convert_to_slash(Changes[0].getFilePath()), in TEST_F()
1637 ASSERT_EQ(Changes[1].getFilePath(), "input.cc"); in TEST_F()
1664 ASSERT_EQ(llvm::sys::path::convert_to_slash(Changes[0].getFilePath()), in TEST_F()
1708 return llvm::sys::path::convert_to_slash(C.getFilePath()); in TEST_F()
H A DRefactoringTest.cpp93 EXPECT_EQ("/path/to/file.cpp", Replace.getFilePath()); in TEST_F()
98 EXPECT_TRUE(Replace1.getFilePath().empty()); in TEST_F()
101 EXPECT_TRUE(Replace2.getFilePath().empty()); in TEST_F()
695 EXPECT_EQ(File, Replace.getFilePath()); in expectReplacementAt()
1163 EXPECT_EQ(ExpectedChange.getFilePath(), ActualChange.getFilePath()); in TEST_F()
1181 EXPECT_EQ("input.cpp", Change.getFilePath());
/llvm-project/clang-tools-extra/clang-include-fixer/tool/
H A DClangIncludeFixer.cpp241 << llvm::yaml::escape(Context.getFilePath()) << "\",\n" in writeToJson()
333 Context.getFilePath(), Style); in includeFixerMain()
368 std::string HeaderPath = Symbol.getFilePath().str(); in includeFixerMain()
411 StringRef FilePath = Context.getFilePath(); in includeFixerMain()
440 << Context.getFilePath() << "\n"; in includeFixerMain()
/llvm-project/clang-tools-extra/clang-apply-replacements/lib/Tooling/
H A DApplyReplacements.cpp143 SmallString<128> Path = R.getFilePath(); in groupReplacements()
158 errs() << "Described file '" << R.getFilePath() in groupReplacements()
224 R.getFilePath(), NewOffset, NewLength, R.getReplacementText()); in mergeAndDeduplicate()
/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DRenamingAction.cpp174 (*FileToReplaces)[std::string(Replace.getFilePath())].add(Replace); in convertChangesToFileReplacements()
176 llvm::errs() << "Renaming failed in " << Replace.getFilePath() << "! " in convertChangesToFileReplacements()
/llvm-project/clang/include/clang/Tooling/
H A DReplacementsYaml.h36 : FilePath(R.getFilePath()), Offset(R.getOffset()), in LLVM_YAML_IS_SEQUENCE_VECTOR()
H A DDiagnosticsYaml.h49 llvm::Error Err = M.Fix[Fix.getFilePath()].add(Fix); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/llvm-project/clang/lib/Tooling/
H A DRefactoringCallbacks.cpp53 Refactoring.FileToReplaces[std::string(Replacement.getFilePath())] in HandleTranslationUnit()
233 llvm::errs() << "Query and replace failed in " << Replacement.getFilePath() in run()
/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/
H A DSymbolInfo.h88 llvm::StringRef getFilePath() const { return FilePath; } in getFilePath() function
/llvm-project/clang-tools-extra/clang-tidy/
H A DClangTidy.cpp146 SmallString<128> FixAbsoluteFilePath = Repl.getFilePath(); in reportDiagnostic()
150 auto &Entry = FileReplacements[R.getFilePath()]; in reportDiagnostic()
163 R = Replacement(R.getFilePath(), NewOffset, NewLength, in reportDiagnostic()
273 FBR.FilePath = Repl.getFilePath().str(); in reportFix()
/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DNativeExeSymbol.cpp75 return std::string(Session.getPDBFile().getFilePath()); in getSymbolsFileName()
H A DInputFile.cpp379 StringRef InputFile::getFilePath() const { in getFilePath() function in InputFile
381 return pdb().getFilePath(); in getFilePath()
/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DAtomicChange.h71 const std::string &getFilePath() const { return FilePath; } in getFilePath() function
/llvm-project/clang-tools-extra/clangd/
H A DFormat.cpp251 R.getFilePath(), R.getOffset(), OldCursor - R.getOffset(), in split()
254 R.getFilePath(), OldCursor, in split()
/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DPDBFile.h49 StringRef getFilePath() const;
H A DInputFile.h73 StringRef getFilePath() const;
/llvm-project/clang/lib/Tooling/Refactoring/
H A DAtomicChange.cpp30 : Key(E.getKey()), FilePath(E.getFilePath()), Error(E.getError()), in NormalizedAtomicChange()
283 Replacement NewR(R.getFilePath(), NewOffset, 0, Text); in insert()
/llvm-project/clang/include/clang/Tooling/Core/
H A DReplacement.h120 StringRef getFilePath() const { return FilePath; } in getFilePath() function

12