Home
last modified time | relevance | path

Searched refs:FixItHint (Results 1 – 25 of 53) sorted by relevance

123

/external/clang/lib/Sema/
DSemaFixItUtils.cpp109 Hints.push_back(FixItHint::CreateRemoval( in tryToFixConversion()
113 Hints.push_back(FixItHint::CreateInsertion(Begin, "*(")); in tryToFixConversion()
114 Hints.push_back(FixItHint::CreateInsertion(End, ")")); in tryToFixConversion()
116 Hints.push_back(FixItHint::CreateInsertion(Begin, "*")); in tryToFixConversion()
143 Hints.push_back(FixItHint::CreateRemoval( in tryToFixConversion()
147 Hints.push_back(FixItHint::CreateInsertion(Begin, "&(")); in tryToFixConversion()
148 Hints.push_back(FixItHint::CreateInsertion(End, ")")); in tryToFixConversion()
150 Hints.push_back(FixItHint::CreateInsertion(Begin, "&")); in tryToFixConversion()
DAnalysisBasedWarnings.cpp438 << FixItHint::CreateInsertion(VD->getLocation(), "__block "); in SuggestInitializationFixit()
458 << FixItHint::CreateInsertion(Loc, Init); in SuggestInitializationFixit()
466 FixItHint &Fixit1, FixItHint &Fixit2) { in CreateIfFixit()
469 Fixit1 = FixItHint::CreateRemoval( in CreateIfFixit()
475 Fixit2 = FixItHint::CreateRemoval( in CreateIfFixit()
481 Fixit1 = FixItHint::CreateRemoval( in CreateIfFixit()
485 Fixit1 = FixItHint::CreateRemoval(If->getSourceRange()); in CreateIfFixit()
515 FixItHint Fixit1, Fixit2; in DiagUninitUse()
559 Fixit1 = FixItHint::CreateRemoval(SourceRange(BO->getLocStart(), in DiagUninitUse()
563 Fixit1 = FixItHint::CreateReplacement(BO->getSourceRange(), FixitStr); in DiagUninitUse()
[all …]
DSemaExprObjC.cpp378 << FixItHint::CreateInsertion(OrigElement->getLocStart(), "@"); in CheckObjCCollectionLiteralElement()
394 << FixItHint::CreateInsertion(OrigElement->getLocStart(), "@"); in CheckObjCCollectionLiteralElement()
1510 << FixItHint::CreateReplacement(MemberLoc, TypoResult.getAsString()); in HandleExprPropertyRefExpr()
1531 << FixItHint::CreateReplacement(OpLoc, "->"); in HandleExprPropertyRefExpr()
1749 << FixItHint::CreateReplacement(SourceRange(NameLoc), "super"); in getObjCMessageKind()
1757 << FixItHint::CreateReplacement(SourceRange(NameLoc), in getObjCMessageKind()
1864 Builder.AddFixItHint(FixItHint::CreateInsertion(Edit.OrigLoc, in applyCocoaAPICheck()
1870 FixItHint::CreateInsertionFromRange(Edit.OrigLoc, in applyCocoaAPICheck()
1875 Builder.AddFixItHint(FixItHint::CreateRemoval(Edit.getFileRange(SM))); in applyCocoaAPICheck()
1929 << FixItHint::CreateInsertion(Loc, "["); in BuildClassMessage()
[all …]
DSemaDecl.cpp245 << FixItHint::CreateReplacement(SourceRange(NameLoc), in getTypeName()
425 << FixItHint::CreateReplacement(SourceRange(IILoc), CorrectedStr); in DiagnoseUnknownTypeName()
433 << FixItHint::CreateReplacement(SourceRange(IILoc), CorrectedStr); in DiagnoseUnknownTypeName()
437 << FixItHint::CreateReplacement(Corrected.getCorrectionRange(), in DiagnoseUnknownTypeName()
489 << FixItHint::CreateInsertion(SS->getRange().getBegin(), "typename "); in DiagnoseUnknownTypeName()
555 << FixItHint::CreateInsertion(NameLoc, FixItTagName); in isTagTypeWithMissingTag()
686 << FixItHint::CreateReplacement(NameLoc, CorrectedStr); in ClassifyName()
691 << FixItHint::CreateReplacement(Corrected.getCorrectionRange(), in ClassifyName()
1336 FixItHint &Hint) { in GenerateFixForUnusedDecl()
1342 Hint = FixItHint::CreateRemoval(CharSourceRange:: in GenerateFixForUnusedDecl()
[all …]
DSemaChecking.cpp2012 ArrayRef<FixItHint> Fixit = ArrayRef<FixItHint>());
2039 ArrayRef<FixItHint> Fixit = ArrayRef<FixItHint>());
2092 << FixItHint::CreateReplacement(LMRange, FixedLM->toString()); in HandleInvalidLengthModifier()
2095 FixItHint Hint; in HandleInvalidLengthModifier()
2097 Hint = FixItHint::CreateRemoval(LMRange); in HandleInvalidLengthModifier()
2126 << FixItHint::CreateReplacement(LMRange, FixedLM->toString()); in HandleNonStandardLengthModifier()
2154 << FixItHint::CreateReplacement(CSRange, FixedCS->toString()); in HandleNonStandardConversionSpecifier()
2290 ArrayRef<FixItHint> FixIt) { in EmitFormatDiagnostic()
2329 ArrayRef<FixItHint> FixIt) { in EmitFormatDiagnostic()
2333 for (ArrayRef<FixItHint>::iterator I = FixIt.begin(), E = FixIt.end(); in EmitFormatDiagnostic()
[all …]
DSemaStmtAttr.cpp36 << FixItHint::CreateInsertion(L, ";"); in handleFallThroughAttr()
DSemaLambda.cpp535 << FixItHint::CreateRemoval( in ActOnStartOfLambdaDefinition()
545 << FixItHint::CreateRemoval( in ActOnStartOfLambdaDefinition()
572 << FixItHint::CreateRemoval( in ActOnStartOfLambdaDefinition()
577 << FixItHint::CreateRemoval( in ActOnStartOfLambdaDefinition()
625 << FixItHint::CreateRemoval( in ActOnStartOfLambdaDefinition()
DSemaExprMember.cpp618 << FixItHint::CreateReplacement(Corrected.getCorrectionRange(), in LookupMemberExprInRecord()
871 << MemberName << DC << FixItHint::CreateReplacement(OpLoc, "->"); in BuildMemberReferenceExpr()
1107 << FixItHint::CreateReplacement(OpLoc, "."); in LookupMemberExpr()
1134 << FixItHint::CreateRemoval(SS.getRange()); in LookupMemberExpr()
1195 << FixItHint::CreateReplacement(R.getNameLoc(), in LookupMemberExpr()
1211 << FixItHint::CreateReplacement(OpLoc, "."); in LookupMemberExpr()
1312 << FixItHint::CreateRemoval(SS.getRange()); in LookupMemberExpr()
1472 << FixItHint::CreateReplacement(OpLoc, "->"); in LookupMemberExpr()
DSemaTemplate.cpp237 << FixItHint::CreateInsertion(IILoc, "template "); in DiagnoseUnknownTemplateName()
336 << FixItHint::CreateReplacement(Corrected.getCorrectionRange(), in LookupTemplateName()
341 << FixItHint::CreateReplacement(Found.getNameLoc(), CorrectedStr); in LookupTemplateName()
999 << FixItHint::CreateReplacement(KWLoc, PrevRecordDecl->getKindName()); in CheckClassTemplate()
1830 << FixItHint::CreateInsertion(ExpectedTemplateLoc, "template<> "); in MatchTemplateParametersToScopeSpecifier()
2250 << FixItHint::CreateReplacement(SourceRange(TagLoc), D->getKindName()); in ActOnTagTemplateIdType()
2365 << FixItHint::CreateRemoval(TemplateKWLoc); in ActOnDependentTemplateName()
3645 << FixItHint::CreateInsertion(Arg->getLocStart(), Code) in isNullPointerValueTemplateArgument()
3646 << FixItHint::CreateInsertion(S.PP.getLocForEndOfToken(Arg->getLocEnd()), in isNullPointerValueTemplateArgument()
3829 << FixItHint::CreateRemoval(AddrOpLoc); in CheckTemplateArgumentAddressOfObjectOrFunction()
[all …]
/external/clang/lib/Frontend/
DDiagnosticRenderer.cpp77 SmallVectorImpl<FixItHint> &MergedFixits;
80 FixitReceiver(SmallVectorImpl<FixItHint> &MergedFixits) in FixitReceiver()
83 MergedFixits.push_back(FixItHint::CreateInsertion(loc, text)); in insert()
86 MergedFixits.push_back(FixItHint::CreateReplacement(range, text)); in replace()
92 static void mergeFixits(ArrayRef<FixItHint> FixItHints, in mergeFixits()
94 SmallVectorImpl<FixItHint> &MergedFixits) { in mergeFixits()
96 for (ArrayRef<FixItHint>::const_iterator in mergeFixits()
98 const FixItHint &Hint = *I; in mergeFixits()
127 ArrayRef<FixItHint> FixItHints, in emitDiagnostic()
142 SmallVector<FixItHint, 8> MergedFixits; in emitDiagnostic()
[all …]
DSerializedDiagnosticPrinter.cpp81 ArrayRef<FixItHint> Hints,
147 ArrayRef<FixItHint> Hints,
638 ArrayRef<FixItHint> Hints, in EmitCodeContext()
651 for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end(); in EmitCodeContext()
653 const FixItHint &Fix = *I; in EmitCodeContext()
668 ArrayRef<FixItHint> Hints, in emitCodeContext()
DTextDiagnostic.cpp987 ArrayRef<FixItHint> Hints, in buildFixItInsertionLine()
995 for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end(); in buildFixItInsertionLine()
1066 ArrayRef<FixItHint> Hints, in emitSnippetAndCaret()
1222 void TextDiagnostic::emitParseableFixits(ArrayRef<FixItHint> Hints, in emitParseableFixits()
1229 for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end(); in emitParseableFixits()
1237 for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end(); in emitParseableFixits()
/external/clang/include/clang/Basic/
DDiagnostic.h49 class FixItHint {
67 FixItHint() : BeforePreviousInsertions(false) { } in FixItHint() function
75 static FixItHint CreateInsertion(SourceLocation InsertionLoc,
78 FixItHint Hint;
88 static FixItHint CreateInsertionFromRange(SourceLocation InsertionLoc,
91 FixItHint Hint;
101 static FixItHint CreateRemoval(CharSourceRange RemoveRange) { in CreateRemoval()
102 FixItHint Hint; in CreateRemoval()
106 static FixItHint CreateRemoval(SourceRange RemoveRange) { in CreateRemoval()
112 static FixItHint CreateReplacement(CharSourceRange RemoveRange, in CreateReplacement()
[all …]
DPartialDiagnostic.h78 SmallVector<FixItHint, 6> FixItHints;
175 void AddFixItHint(const FixItHint &Hint) const { in AddFixItHint()
383 const FixItHint &Hint) {
/external/clang/include/clang/Frontend/
DTextDiagnostic.h94 ArrayRef<FixItHint> Hints, in emitCodeContext()
115 ArrayRef<FixItHint> Hints,
120 void emitParseableFixits(ArrayRef<FixItHint> Hints, const SourceManager &SM);
DDiagnosticRenderer.h92 ArrayRef<FixItHint> Hints,
119 ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints,
124 ArrayRef<FixItHint> Hints,
145 ArrayRef<FixItHint> FixItHints,
/external/clang/lib/Parse/
DParseDeclCXX.cpp102 << FixItHint::CreateRemoval(InlineLoc); in ParseNamespace()
152 << FixItHint::CreateReplacement(SourceRange(ExtraNamespaceLoc.front(), in ParseNamespace()
155 << FixItHint::CreateInsertion(rBraceToken.getLocation(), RBraces); in ParseNamespace()
357 << R << FixItHint::CreateRemoval(R); in ParseUsingDirectiveOrDeclaration()
538 << FixItHint::CreateRemoval(SourceRange(TypenameLoc, in ParseUsingDeclaration()
542 << FixItHint::CreateRemoval(SS.getRange()); in ParseUsingDeclaration()
570 << R << FixItHint::CreateRemoval(R); in ParseUsingDeclaration()
582 << FixItHint::CreateRemoval(SourceRange(TypenameLoc)); in ParseUsingDeclaration()
819 << FixItHint::CreateRemoval(Tok.getLocation()); in ParseBaseTypeSpecifier()
835 << FixItHint::CreateRemoval(SS.getRange()); in ParseBaseTypeSpecifier()
[all …]
DParser.cpp131 << FixItHint::CreateInsertion(ParenRange.getBegin(), "(") in SuggestParentheses()
132 << FixItHint::CreateInsertion(EndLoc, ")"); in SuggestParentheses()
161 << FixItHint::CreateReplacement(SourceRange(Loc), in ExpectAndConsume()
176 << FixItHint::CreateInsertion(EndLoc, Spelling); in ExpectAndConsume()
195 << FixItHint::CreateRemoval(Tok.getLocation()); in ExpectAndConsumeSemi()
223 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
226 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
233 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
237 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
1253 << FixItHint::CreateRemoval(RemovalRange); in ParseSimpleAsm()
[all …]
DParseTemplate.cpp255 << FixItHint::CreateRemoval(DS.getStorageClassSpecLoc()); in ParseSingleDeclarationAfterTemplate()
550 << (Replace ? FixItHint::CreateReplacement(Tok.getLocation(), "class") in ParseTemplateTemplateParameter()
551 : FixItHint::CreateInsertion(Tok.getLocation(), "class ")); in ParseTemplateTemplateParameter()
724 FixItHint Hint1 = FixItHint::CreateReplacement(ReplacementRange, in ParseGreaterThanInTemplateList()
729 FixItHint Hint2; in ParseGreaterThanInTemplateList()
738 Hint2 = FixItHint::CreateInsertion(Next.getLocation(), " "); in ParseGreaterThanInTemplateList()
DParseInit.cpp168 << FixItHint::CreateReplacement(SourceRange(NameLoc, ColonLoc), in ParseInitializerWithPotentialDesignator()
377 << FixItHint::CreateInsertion(Tok.getLocation(), "= "); in ParseInitializerWithPotentialDesignator()
DParseStmt.cpp330 << FixItHint::CreateInsertion(OldToken.getLocation(), "case "); in ParseExprStatement()
561 << FixItHint::CreateReplacement(ColonLoc, ":"); in ParseCaseStatement()
565 << FixItHint::CreateInsertion(ExpectedLoc, ":"); in ParseCaseStatement()
605 << FixItHint::CreateInsertion(AfterColonLoc, " ;"); in ParseCaseStatement()
637 << FixItHint::CreateReplacement(ColonLoc, ":"); in ParseDefaultStatement()
641 << FixItHint::CreateInsertion(ExpectedLoc, ":"); in ParseDefaultStatement()
654 << FixItHint::CreateInsertion(AfterColonLoc, " ;"); in ParseDefaultStatement()
928 << FixItHint::CreateRemoval(Tok.getLocation()); in ParseParenExprOrCondition()
DParseExprCXX.cpp59 << FixItHint::CreateReplacement(Range, "< ::"); in FixDigraph()
134 << FixItHint::CreateRemoval(l_parenLoc) in CheckForLParenAfterColonColon()
135 << FixItHint::CreateRemoval(r_parenLoc); in CheckForLParenAfterColonColon()
393 << FixItHint::CreateReplacement(Next.getLocation(), "::"); in ParseOptionalCXXScopeSpecifier()
466 << FixItHint::CreateInsertion(Tok.getLocation(), "template "); in ParseOptionalCXXScopeSpecifier()
884 << FixItHint::CreateInsertion(Tok.getLocation(), "() "); in ParseLambdaExpressionAfterIntroducer()
1678 << FixItHint::CreateInsertion(Id.StartLocation, "template "); in ParseUnqualifiedIdTemplateId()
1994 Diag(DiagLoc, DiagId) << FixItHint::CreateReplacement( in ParseUnqualifiedIdOperator()
2134 << FixItHint::CreateRemoval( in ParseUnqualifiedId()
/external/clang/include/clang/Sema/
DSemaFixItUtils.h42 std::vector<FixItHint> Hints;
/external/clang/tools/libclang/
DCXStoredDiagnostic.cpp103 const FixItHint &Hint = Diag.fixit_begin()[FixIt]; in getFixIt()
/external/clang/lib/AST/
DCommentSema.cpp248 << FixItHint::CreateReplacement( in actOnParamCommandDirectionArg()
357 << FixItHint::CreateReplacement(ArgRange, CorrectedName); in actOnTParamCommandParamNameArg()
693 << FixItHint::CreateInsertion(FD->getLocEnd().getLocWithOffset(1), in checkDeprecatedCommand()
778 << FixItHint::CreateReplacement(ArgRange, CorrectedII->getName()); in resolveParamCommandIndexes()

123