| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/ |
| H A D | StructPackAlignCheck.cpp | 114 FixItHint FixIt; in check() local 118 FixIt = FixItHint::CreateReplacement( in check() 122 FixIt = FixItHint::CreateInsertion( in check() 133 << Struct << (int)CurrAlign.getQuantity() << NewAlignQuantity << FixIt; in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Diagnostics.cpp | 733 for (auto &FixIt : FixIts) { in HandleDiagnostic() local 737 if (FixIt.RemoveRange.getBegin().isMacroID() && in HandleDiagnostic() 738 FixIt.RemoveRange.getEnd().isMacroID() && in HandleDiagnostic() 739 SM.getFileID(FixIt.RemoveRange.getBegin()) == in HandleDiagnostic() 741 FixIt.RemoveRange = CharSourceRange( in HandleDiagnostic() 744 FixIt.RemoveRange.isTokenRange()); in HandleDiagnostic() 747 if (FixIt.RemoveRange.getBegin().isMacroID() || in HandleDiagnostic() 748 FixIt.RemoveRange.getEnd().isMacroID()) in HandleDiagnostic() 752 Edits.push_back(toTextEdit(FixIt, SM, *LangOpts)); in HandleDiagnostic() 758 const auto &FixIt = FixIts.front(); in HandleDiagnostic() local [all …]
|
| H A D | SourceCode.h | 152 TextEdit toTextEdit(const FixItHint &FixIt, const SourceManager &M,
|
| H A D | CodeComplete.cpp | 322 for (const auto &FixIt : C.SemaResult->FixIts) { in CodeCompletionBuilder() local 324 FixIt, ASTCtx->getSourceManager(), ASTCtx->getLangOpts())); in CodeCompletionBuilder() 2157 for (const auto &FixIt : FixIts) { in render() local 2158 if (FixIt.range.end == LSP.textEdit->range.start) { in render() 2159 LSP.textEdit->newText = FixIt.newText + LSP.textEdit->newText; in render() 2160 LSP.textEdit->range.start = FixIt.range.start; in render() 2162 LSP.additionalTextEdits.push_back(FixIt); in render()
|
| H A D | SourceCode.cpp | 550 TextEdit toTextEdit(const FixItHint &FixIt, const SourceManager &M, in toTextEdit() argument 554 halfOpenToRange(M, Lexer::makeFileCharRange(FixIt.RemoveRange, M, L)); in toTextEdit() 555 Result.newText = FixIt.CodeToInsert; in toTextEdit()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseNoexceptCheck.cpp | 97 FixItHint FixIt; in check() local 99 FixIt = FixItHint::CreateReplacement(CRange, ReplacementStr); in check() 105 << ReplacementStr.empty() << ReplacementStr << FixIt; in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | UppercaseLiteralSuffixCheck.cpp | 63 llvm::Optional<FixItHint> FixIt; member 180 ReplacementDsc.FixIt = FixItHint::CreateReplacement(*Range, *NewSuffix); in shouldReplaceLiteralSuffix() 230 if (Details->FixIt) // Similarly, a fix-it is not always possible. in checkBoundMatch() 231 Complaint << *(Details->FixIt); in checkBoundMatch()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CXStoredDiagnostic.cpp | 99 CXString CXStoredDiagnostic::getFixIt(unsigned FixIt, in getFixIt() argument 101 const FixItHint &Hint = Diag.fixit_begin()[FixIt]; in getFixIt()
|
| H A D | CIndexDiagnostic.h | 89 virtual CXString getFixIt(unsigned FixIt, 150 CXString getFixIt(unsigned FixIt,
|
| H A D | CXLoadedDiagnostic.cpp | 140 CXString CXLoadedDiagnostic::getFixIt(unsigned FixIt, in getFixIt() argument 142 assert(FixIt < FixIts.size()); in getFixIt() 144 *ReplacementRange = FixIts[FixIt].first; in getFixIt() 145 return cxstring::createRef(FixIts[FixIt].second); in getFixIt()
|
| H A D | CIndexDiagnostic.cpp | 74 CXString getFixIt(unsigned FixIt, in getFixIt() argument 430 CXString clang_getDiagnosticFixIt(CXDiagnostic Diag, unsigned FixIt, in clang_getDiagnosticFixIt() argument 433 if (!D || FixIt >= D->getNumFixIts()) { in clang_getDiagnosticFixIt() 438 return D->getFixIt(FixIt, ReplacementRange); in clang_getDiagnosticFixIt()
|
| H A D | CXLoadedDiagnostic.h | 58 CXString getFixIt(unsigned FixIt,
|
| H A D | CIndexCodeCompletion.cpp | 341 const FixItHint &FixIt = FixIts[fixit_index]; in clang_getCompletionFixIt() local 345 FixIt.RemoveRange); in clang_getCompletionFixIt() 348 return cxstring::createRef(FixIt.CodeToInsert.c_str()); in clang_getCompletionFixIt()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | CodeCompleteConsumer.cpp | 695 for (const FixItHint &FixIt : Results[I].FixIts) { in ProcessCodeCompleteResults() local 696 const SourceLocation BLoc = FixIt.RemoveRange.getBegin(); in ProcessCodeCompleteResults() 697 const SourceLocation ELoc = FixIt.RemoveRange.getEnd(); in ProcessCodeCompleteResults() 703 if (FixIt.RemoveRange.isTokenRange()) in ProcessCodeCompleteResults() 711 << " to \"" << FixIt.CodeToInsert << "\")"; in ProcessCodeCompleteResults()
|
| /llvm-project-15.0.7/llvm/utils/gn/secondary/clang/lib/Tooling/ |
| H A D | BUILD.gn | 39 "FixIt.cpp",
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/ |
| H A D | init-variables.rst | 40 It warns for the uninitialized enum case, but without a FixIt:
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/ |
| H A D | ClangTidyDiagnosticConsumer.cpp | 115 for (const auto &FixIt : Hints) { in emitCodeContext() local 116 CharSourceRange Range = FixIt.RemoveRange; in emitCodeContext() 123 FixIt.CodeToInsert); in emitCodeContext()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | CodeCompleteTests.cpp | 2185 TextEdit FixIt; in TEST() local 2186 FixIt.range.end.character = 5; in TEST() 2187 FixIt.newText = "->"; in TEST() 2192 C.FixIts = {FixIt}; in TEST() 2205 TextEdit FixIt; in TEST() local 2206 FixIt.range.end.character = 4; in TEST() 2207 FixIt.newText = "->"; in TEST() 2212 C.FixIts = {FixIt}; in TEST() 2221 EXPECT_THAT(R.additionalTextEdits, UnorderedElementsAre(FixIt)); in TEST()
|
| /llvm-project-15.0.7/clang/lib/Tooling/ |
| H A D | CMakeLists.txt | 109 FixIt.cpp
|
| /llvm-project-15.0.7/clang/include/clang/Frontend/ |
| H A D | FrontendOptions.h | 82 FixIt, enumerator
|
| /llvm-project-15.0.7/clang/lib/FrontendTool/ |
| H A D | ExecuteCompilerInvocation.cpp | 63 case FixIt: return std::make_unique<FixItAction>(); in CreateFrontendBaseAction()
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParsePragma.cpp | 1654 std::string FixIt; in createExpectedAttributeSubjectRulesTokenDiagnostic() local 1658 FixIt = ", "; in createExpectedAttributeSubjectRulesTokenDiagnostic() 1661 FixIt += "apply_to"; in createExpectedAttributeSubjectRulesTokenDiagnostic() 1664 FixIt += " = "; in createExpectedAttributeSubjectRulesTokenDiagnostic() 1689 FixIt += "any("; in createExpectedAttributeSubjectRulesTokenDiagnostic() 1695 FixIt += ", "; in createExpectedAttributeSubjectRulesTokenDiagnostic() 1698 FixIt += attr::getSubjectMatchRuleSpelling( in createExpectedAttributeSubjectRulesTokenDiagnostic() 1701 FixIt += ")"; in createExpectedAttributeSubjectRulesTokenDiagnostic() 1707 Diagnostic << FixItHint::CreateInsertion(FixItRange.getBegin(), FixIt); in createExpectedAttributeSubjectRulesTokenDiagnostic() 1710 CharSourceRange::getCharRange(FixItRange), FixIt); in createExpectedAttributeSubjectRulesTokenDiagnostic()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | ASTUnit.cpp | 1264 for (const auto &FixIt : InDiag.getFixIts()) in makeStandaloneDiagnostic() local 1265 OutDiag.FixIts.push_back(makeStandaloneFixIt(SM, LangOpts, FixIt)); in makeStandaloneDiagnostic() 2376 for (const auto &FixIt : SD.FixIts) { in TranslateStoredDiagnostics() local 2379 FH.CodeToInsert = FixIt.CodeToInsert; in TranslateStoredDiagnostics() 2380 SourceLocation BL = FileLoc.getLocWithOffset(FixIt.RemoveRange.first); in TranslateStoredDiagnostics() 2381 SourceLocation EL = FileLoc.getLocWithOffset(FixIt.RemoveRange.second); in TranslateStoredDiagnostics()
|
| H A D | CompilerInvocation.cpp | 2469 {frontend::FixIt, OPT_fixit_EQ}, in getFrontendActionTable() 2470 {frontend::FixIt, OPT_fixit}, in getFrontendActionTable() 2579 if (Opts.ProgramAction == frontend::FixIt && !Opts.FixItSuffix.empty()) { in GenerateFrontendArgs() 2731 if (ProgramAction == frontend::FixIt && Opt == OPT_fixit_EQ) in ParseFrontendArgs() 4127 case frontend::FixIt: in isStrictlyPreprocessorAction()
|
| /llvm-project-15.0.7/clang/bindings/python/clang/ |
| H A D | cindex.py | 438 return FixIt(range, value) 504 class FixIt(object): class
|