Home
last modified time | relevance | path

Searched refs:FixIt (Results 1 – 24 of 24) sorted by relevance

/openbsd-src/gnu/llvm/clang/tools/libclang/
H A DCXStoredDiagnostic.cpp99 CXString CXStoredDiagnostic::getFixIt(unsigned FixIt, in getFixIt() argument
101 const FixItHint &Hint = Diag.fixit_begin()[FixIt]; in getFixIt()
H A DCIndexDiagnostic.h89 virtual CXString getFixIt(unsigned FixIt,
150 CXString getFixIt(unsigned FixIt,
H A DCXLoadedDiagnostic.cpp140 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 DCIndexDiagnostic.cpp74 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 DCXLoadedDiagnostic.h58 CXString getFixIt(unsigned FixIt,
H A DCIndexCodeCompletion.cpp341 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()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DCodeCompleteConsumer.cpp695 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()
H A DSemaObjCProperty.cpp1938 std::string FixIt = in DefaultSynthesizeProperties() local
1941 << FixItHint::CreateInsertion(AtEnd, FixIt); in DefaultSynthesizeProperties()
H A DSemaDeclCXX.cpp12918 FixItHint FixIt; in CheckUsingDeclQualifier() local
12921 FixIt = FixItHint::CreateReplacement( in CheckUsingDeclQualifier()
12927 << FixIt; in CheckUsingDeclQualifier()
12932 FixItHint FixIt; in CheckUsingDeclQualifier() local
12935 FixIt = FixItHint::CreateReplacement( in CheckUsingDeclQualifier()
12942 << FixIt; in CheckUsingDeclQualifier()
H A DSemaChecking.cpp9616 ArrayRef<FixItHint> FixIt) { in EmitFormatDiagnostic() argument
9618 Loc, IsStringLocation, StringRange, FixIt); in EmitFormatDiagnostic()
9652 Range StringRange, ArrayRef<FixItHint> FixIt) { in EmitFormatDiagnostic() argument
9656 D << FixIt; in EmitFormatDiagnostic()
9666 Note << FixIt; in EmitFormatDiagnostic()
/openbsd-src/gnu/llvm/clang/include/clang-c/
H A DCXDiagnostic.h371 CXDiagnostic Diagnostic, unsigned FixIt, CXSourceRange *ReplacementRange);
/openbsd-src/gnu/llvm/llvm/utils/gn/secondary/clang/lib/Tooling/
H A DBUILD.gn40 "FixIt.cpp",
/openbsd-src/gnu/llvm/clang/lib/Tooling/
H A DCMakeLists.txt110 FixIt.cpp
/openbsd-src/gnu/llvm/clang/lib/FrontendTool/
H A DExecuteCompilerInvocation.cpp63 case FixIt: return std::make_unique<FixItAction>(); in CreateFrontendBaseAction()
/openbsd-src/gnu/llvm/clang/include/clang/Frontend/
H A DFrontendOptions.h83 FixIt, enumerator
/openbsd-src/gnu/llvm/clang/lib/Parse/
H A DParsePragma.cpp1708 std::string FixIt; in createExpectedAttributeSubjectRulesTokenDiagnostic() local
1712 FixIt = ", "; in createExpectedAttributeSubjectRulesTokenDiagnostic()
1715 FixIt += "apply_to"; in createExpectedAttributeSubjectRulesTokenDiagnostic()
1718 FixIt += " = "; in createExpectedAttributeSubjectRulesTokenDiagnostic()
1743 FixIt += "any("; in createExpectedAttributeSubjectRulesTokenDiagnostic()
1749 FixIt += ", "; in createExpectedAttributeSubjectRulesTokenDiagnostic()
1752 FixIt += attr::getSubjectMatchRuleSpelling( in createExpectedAttributeSubjectRulesTokenDiagnostic()
1755 FixIt += ")"; in createExpectedAttributeSubjectRulesTokenDiagnostic()
1761 Diagnostic << FixItHint::CreateInsertion(FixItRange.getBegin(), FixIt); in createExpectedAttributeSubjectRulesTokenDiagnostic()
1764 CharSourceRange::getCharRange(FixItRange), FixIt); in createExpectedAttributeSubjectRulesTokenDiagnostic()
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DASTUnit.cpp1292 for (const auto &FixIt : InDiag.getFixIts()) in makeStandaloneDiagnostic() local
1293 OutDiag.FixIts.push_back(makeStandaloneFixIt(SM, LangOpts, FixIt)); in makeStandaloneDiagnostic()
2403 for (const auto &FixIt : SD.FixIts) { in TranslateStoredDiagnostics() local
2406 FH.CodeToInsert = FixIt.CodeToInsert; in TranslateStoredDiagnostics()
2407 SourceLocation BL = FileLoc.getLocWithOffset(FixIt.RemoveRange.first); in TranslateStoredDiagnostics()
2408 SourceLocation EL = FileLoc.getLocWithOffset(FixIt.RemoveRange.second); in TranslateStoredDiagnostics()
H A DCompilerInvocation.cpp2486 {frontend::FixIt, OPT_fixit_EQ}, in getFrontendActionTable()
2487 {frontend::FixIt, OPT_fixit}, in getFrontendActionTable()
2596 if (Opts.ProgramAction == frontend::FixIt && !Opts.FixItSuffix.empty()) { in GenerateFrontendArgs()
2748 if (ProgramAction == frontend::FixIt && Opt == OPT_fixit_EQ) in ParseFrontendArgs()
4149 case frontend::FixIt: in isStrictlyPreprocessorAction()
/openbsd-src/gnu/llvm/clang/bindings/python/clang/
H A Dcindex.py438 return FixIt(range, value)
504 class FixIt(object): class
/openbsd-src/gnu/llvm/clang/tools/c-index-test/
H A Dc-index-test.c2603 CXString FixIt = clang_getCompletionFixIt(completion_results, index, i, in print_completion_result() local
2608 fprintf(file, " to \"%s\")", clang_getCString(FixIt)); in print_completion_result()
2609 clang_disposeString(FixIt); in print_completion_result()
/openbsd-src/gnu/llvm/llvm/docs/
H A DMyFirstTypoFix.rst289 clang/**test**/FixIt/dereference-addressof.c. Re-run like this:
/openbsd-src/gnu/llvm/clang/docs/
H A DUsersManual.rst465 Enable "FixIt" information in the diagnostics output.
1045 #. "FixIt" information, which is a concise explanation of how to fix the
H A DInternalsManual.rst1888 provides a FixIt attaching to the error diagnostic and emits a corrected AST
/openbsd-src/gnu/llvm/clang/docs/tools/
H A Dclang-formatted-files.txt563 clang/lib/Tooling/FixIt.cpp