Home
last modified time | relevance | path

Searched refs:FixItHint (Results 1 – 25 of 58) 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.cpp96 << FixItHint::CreateInsertion(Open, "/* DISABLES CODE */ (") in HandleUnreachable()
97 << FixItHint::CreateInsertion(Close, ")"); in HandleUnreachable()
616 << FixItHint::CreateInsertion(VD->getLocation(), "__block "); in SuggestInitializationFixit()
636 << FixItHint::CreateInsertion(Loc, Init); in SuggestInitializationFixit()
644 FixItHint &Fixit1, FixItHint &Fixit2) { in CreateIfFixit()
647 Fixit1 = FixItHint::CreateRemoval( in CreateIfFixit()
653 Fixit2 = FixItHint::CreateRemoval( in CreateIfFixit()
659 Fixit1 = FixItHint::CreateRemoval( in CreateIfFixit()
663 Fixit1 = FixItHint::CreateRemoval(If->getSourceRange()); in CreateIfFixit()
718 FixItHint Fixit1, Fixit2; in DiagUninitUse()
[all …]
DDeclSpec.cpp934 FixItHint Hints[NumLocs]; in Finish()
942 Hints[I] = FixItHint::CreateRemoval(ExtraLocs[I]); in Finish()
1038 << FixItHint::CreateInsertion( in Finish()
1099 << FixItHint::CreateRemoval(StorageClassSpecLoc); in Finish()
1113 FixItHint StorageHint, ThreadHint; in Finish()
1118 StorageHint = FixItHint::CreateRemoval(SCLoc); in Finish()
1125 ThreadHint = FixItHint::CreateRemoval(SCLoc); in Finish()
1153 FixItHint Hint = FixItHint::CreateRemoval(SCLoc); in Finish()
DSemaExprObjC.cpp382 << FixItHint::CreateInsertion(OrigElement->getLocStart(), "@"); in CheckObjCCollectionLiteralElement()
398 << FixItHint::CreateInsertion(OrigElement->getLocStart(), "@"); in CheckObjCCollectionLiteralElement()
996 << Method->getSelector() << FixItHint::CreateInsertion(LParenLoc, "(") in HelperToDiagnoseMismatchedMethodsInGlobalPool()
997 << FixItHint::CreateInsertion(RParenLoc, ")"); in HelperToDiagnoseMismatchedMethodsInGlobalPool()
1051 << FixItHint::CreateReplacement(SelectorRange, MatchedSel.getAsString()); in ParseObjCSelectorExpression()
1322 << FixItHint::CreateReplacement(SelectorRange, MatchedSel.getAsString()); in CheckMessageArgumentTypes()
1692 << FixItHint::CreateReplacement(OpLoc, "->"); in HandleExprPropertyRefExpr()
2014 Builder.AddFixItHint(FixItHint::CreateInsertion(Edit.OrigLoc, in applyCocoaAPICheck()
2020 FixItHint::CreateInsertionFromRange(Edit.OrigLoc, in applyCocoaAPICheck()
2025 Builder.AddFixItHint(FixItHint::CreateRemoval(Edit.getFileRange(SM))); in applyCocoaAPICheck()
[all …]
DSemaDecl.cpp592 << FixItHint::CreateInsertion(SS->getRange().getBegin(), "typename "); in DiagnoseUnknownTypeName()
651 << FixItHint::CreateInsertion(NameLoc, FixItTagName); in isTagTypeWithMissingTag()
1449 FixItHint &Hint) { in GenerateFixForUnusedDecl()
1455 Hint = FixItHint::CreateRemoval(CharSourceRange:: in GenerateFixForUnusedDecl()
1467 FixItHint Hint; in DiagnoseUnusedDecl()
3453 << FixItHint::CreateRemoval(DS.getModulePrivateSpecLoc()); in ParsedFreeStandingDeclSpec()
3734 << FixItHint::CreateInsertion(Record->getLocation(), "static "); in BuildAnonymousStructOrUnion()
3747 << FixItHint::CreateRemoval(DS.getStorageClassSpecLoc()); in BuildAnonymousStructOrUnion()
3761 << FixItHint::CreateRemoval(DS.getConstSpecLoc()); in BuildAnonymousStructOrUnion()
3766 << FixItHint::CreateRemoval(DS.getVolatileSpecLoc()); in BuildAnonymousStructOrUnion()
[all …]
DSemaChecking.cpp2354 ArrayRef<FixItHint> Fixit = None);
2381 ArrayRef<FixItHint> Fixit = None);
2431 << FixItHint::CreateReplacement(LMRange, FixedLM->toString()); in HandleInvalidLengthModifier()
2434 FixItHint Hint; in HandleInvalidLengthModifier()
2436 Hint = FixItHint::CreateRemoval(LMRange); in HandleInvalidLengthModifier()
2465 << FixItHint::CreateReplacement(LMRange, FixedLM->toString()); in HandleNonStandardLengthModifier()
2493 << FixItHint::CreateReplacement(CSRange, FixedCS->toString()); in HandleNonStandardConversionSpecifier()
2629 ArrayRef<FixItHint> FixIt) { in EmitFormatDiagnostic()
2668 ArrayRef<FixItHint> FixIt) { in EmitFormatDiagnostic()
2672 for (ArrayRef<FixItHint>::iterator I = FixIt.begin(), E = FixIt.end(); in EmitFormatDiagnostic()
[all …]
DSemaExprMember.cpp980 << MemberName << DC << FixItHint::CreateReplacement(OpLoc, "->"); in BuildMemberReferenceExpr()
1217 << FixItHint::CreateReplacement(OpLoc, "."); in LookupMemberExpr()
1245 << FixItHint::CreateRemoval(SS.getRange()); in LookupMemberExpr()
1303 << FixItHint::CreateReplacement(OpLoc, "."); in LookupMemberExpr()
1398 << 0 << SS.getScopeRep() << FixItHint::CreateRemoval(SS.getRange()); in LookupMemberExpr()
1556 << FixItHint::CreateReplacement(OpLoc, "->"); in LookupMemberExpr()
/external/clang/include/clang/Basic/
DDiagnostic.h51 class FixItHint {
69 FixItHint() : BeforePreviousInsertions(false) { } in FixItHint() function
77 static FixItHint CreateInsertion(SourceLocation InsertionLoc,
80 FixItHint Hint;
90 static FixItHint CreateInsertionFromRange(SourceLocation InsertionLoc,
93 FixItHint Hint;
103 static FixItHint CreateRemoval(CharSourceRange RemoveRange) { in CreateRemoval()
104 FixItHint Hint; in CreateRemoval()
108 static FixItHint CreateRemoval(SourceRange RemoveRange) { in CreateRemoval()
114 static FixItHint CreateReplacement(CharSourceRange RemoveRange, in CreateReplacement()
[all …]
DPartialDiagnostic.h73 SmallVector<FixItHint, 6> FixItHints;
167 void AddFixItHint(const FixItHint &Hint) const { in AddFixItHint()
307 for (const FixItHint &Fix : DiagStorage->FixItHints) in Emit()
392 const FixItHint &Hint) {
/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,
143 ArrayRef<FixItHint> Hints,
648 ArrayRef<FixItHint> Hints, in EmitCodeContext()
661 for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end(); in EmitCodeContext()
663 const FixItHint &Fix = *I; in EmitCodeContext()
678 ArrayRef<FixItHint> Hints, in emitCodeContext()
DTextDiagnostic.cpp986 ArrayRef<FixItHint> Hints, in buildFixItInsertionLine()
994 for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end(); in buildFixItInsertionLine()
1059 ArrayRef<FixItHint> Hints, in emitSnippetAndCaret()
1215 void TextDiagnostic::emitParseableFixits(ArrayRef<FixItHint> Hints, in emitParseableFixits()
1222 for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end(); in emitParseableFixits()
1230 for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end(); in emitParseableFixits()
/external/clang/include/clang/Frontend/
DTextDiagnostic.h93 ArrayRef<FixItHint> Hints, in emitCodeContext()
112 ArrayRef<FixItHint> Hints,
117 void emitParseableFixits(ArrayRef<FixItHint> Hints, const SourceManager &SM);
DDiagnosticRenderer.h90 ArrayRef<FixItHint> Hints,
118 ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints,
123 ArrayRef<FixItHint> Hints,
144 ArrayRef<FixItHint> FixItHints,
/external/clang/lib/Parse/
DParseTemplate.cpp231 << FixItHint::CreateRemoval(DS.getStorageClassSpecLoc()); in ParseSingleDeclarationAfterTemplate()
248 << FixItHint::CreateInsertion(LAngleLoc, "<>"); in ParseSingleDeclarationAfterTemplate()
559 ? FixItHint::CreateReplacement(Tok.getLocation(), "class") in ParseTemplateTemplateParameter()
560 : FixItHint()); in ParseTemplateTemplateParameter()
565 << (Replace ? FixItHint::CreateReplacement(Tok.getLocation(), "class") in ParseTemplateTemplateParameter()
566 : FixItHint::CreateInsertion(Tok.getLocation(), "class ")); in ParseTemplateTemplateParameter()
686 FixItHint Insertion; in DiagnoseMisplacedEllipsis()
688 Insertion = FixItHint::CreateInsertion(CorrectLoc, "..."); in DiagnoseMisplacedEllipsis()
690 << FixItHint::CreateRemoval(EllipsisLoc) << Insertion in DiagnoseMisplacedEllipsis()
769 FixItHint Hint1 = FixItHint::CreateReplacement(ReplacementRange, in ParseGreaterThanInTemplateList()
[all …]
DParseDeclCXX.cpp106 << FixItHint::CreateRemoval(InlineLoc); in ParseNamespace()
160 << FixItHint::CreateReplacement(SourceRange(ExtraNamespaceLoc.front(), in ParseNamespace()
163 << FixItHint::CreateInsertion(rBraceToken.getLocation(), RBraces); in ParseNamespace()
387 << R << FixItHint::CreateRemoval(R); in ParseUsingDirectiveOrDeclaration()
550 << FixItHint::CreateInsertionFromRange( in ParseUsingDeclaration()
553 << FixItHint::CreateRemoval(MisplacedAttrs.Range); in ParseUsingDeclaration()
593 << FixItHint::CreateRemoval(SourceRange(TypenameLoc, in ParseUsingDeclaration()
597 << FixItHint::CreateRemoval(SS.getRange()); in ParseUsingDeclaration()
627 << R << FixItHint::CreateRemoval(R); in ParseUsingDeclaration()
639 << FixItHint::CreateRemoval(SourceRange(TypenameLoc)); in ParseUsingDeclaration()
[all …]
DParser.cpp99 << FixItHint::CreateInsertion(ParenRange.getBegin(), "(") in SuggestParentheses()
100 << FixItHint::CreateInsertion(EndLoc, ")"); in SuggestParentheses()
123 DB << FixItHint::CreateReplacement( in ExpectAndConsume()
145 ? Diag(EndLoc, DiagID) << FixItHint::CreateInsertion(EndLoc, Spelling) in ExpectAndConsume()
170 << FixItHint::CreateRemoval(Tok.getLocation()); in ExpectAndConsumeSemi()
198 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
201 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
209 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
213 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
1259 << FixItHint::CreateRemoval(RemovalRange); in ParseSimpleAsm()
[all …]
DParseStmt.cpp400 << FixItHint::CreateInsertion(OldToken.getLocation(), "case "); in ParseExprStatement()
682 << FixItHint::CreateReplacement(ColonLoc, ":"); in ParseCaseStatement()
687 << FixItHint::CreateInsertion(ExpectedLoc, ":"); in ParseCaseStatement()
727 << FixItHint::CreateInsertion(AfterColonLoc, " ;"); in ParseCaseStatement()
759 << FixItHint::CreateReplacement(ColonLoc, ":"); in ParseDefaultStatement()
764 << FixItHint::CreateInsertion(ExpectedLoc, ":"); in ParseDefaultStatement()
777 << FixItHint::CreateInsertion(AfterColonLoc, " ;"); in ParseDefaultStatement()
1050 << FixItHint::CreateRemoval(Tok.getLocation()); in ParseParenExprOrCondition()
1528 ? FixItHint::CreateInsertion(Loc, "auto &&") in ParseForStatement()
1529 : FixItHint()); in ParseForStatement()
DParseDecl.cpp443 << FixItHint::CreateReplacement(KindLoc, "put"); in ParseMicrosoftDeclSpecArgs()
1248 << FixItHint::CreateInsertionFromRange(CorrectLocation, AttrRange) in DiagnoseMisplacedCXX11Attribute()
1249 << FixItHint::CreateRemoval(AttrRange); in DiagnoseMisplacedCXX11Attribute()
1644 << FixItHint::CreateReplacement(CommaLoc, ";"); in ParseDeclGroup()
1777 << 2 << FixItHint::CreateRemoval(TemplateInfo.TemplateLoc); in ParseDeclarationAfterDeclaratorAndAttributes()
1785 << FixItHint::CreateInsertion(LAngleLoc, "<>"); in ParseDeclarationAfterDeclaratorAndAttributes()
1839 << FixItHint::CreateReplacement(EqualLoc, ":"); in ParseDeclarationAfterDeclaratorAndAttributes()
2096 << FixItHint::CreateInsertion(Tok.getLocation(), FixitTagName); in ParseImplicitInt()
2147 << FixItHint::CreateReplacement(Tok.getLocation(), II->getName()); in ParseImplicitInt()
2893 << FixItHint::CreateRemoval(DS.getStorageClassSpecLoc()); in ParseDeclarationSpecifiers()
[all …]
DParseInit.cpp150 << FixItHint::CreateReplacement(SourceRange(NameLoc, ColonLoc), in ParseInitializerWithPotentialDesignator()
359 << FixItHint::CreateInsertion(Tok.getLocation(), "= "); in ParseInitializerWithPotentialDesignator()
DParseExprCXX.cpp63 << FixItHint::CreateReplacement(Range, "< ::"); in FixDigraph()
138 << FixItHint::CreateRemoval(l_parenLoc) in CheckForLParenAfterColonColon()
139 << FixItHint::CreateRemoval(r_parenLoc); in CheckForLParenAfterColonColon()
421 << FixItHint::CreateReplacement(Next.getLocation(), "::"); in ParseOptionalCXXScopeSpecifier()
441 << FixItHint::CreateReplacement(Next.getLocation(), ":"); in ParseOptionalCXXScopeSpecifier()
525 << FixItHint::CreateInsertion(Tok.getLocation(), "template "); in ParseOptionalCXXScopeSpecifier()
1115 << FixItHint::CreateInsertion(Tok.getLocation(), "() "); in ParseLambdaExpressionAfterIntroducer()
1920 << FixItHint::CreateInsertion(Id.StartLocation, "template "); in ParseUnqualifiedIdTemplateId()
2237 Diag(DiagLoc, DiagId) << FixItHint::CreateReplacement( in ParseUnqualifiedIdOperator()
2378 << FixItHint::CreateRemoval( in ParseUnqualifiedId()
DParseExpr.cpp297 << tok::colon << FixItHint::CreateInsertion(FILoc, FIText); in ParseRHSOfBinaryExpression()
1374 << FixItHint::CreateRemoval(OpLoc); in ParsePostfixExpressionSuffix()
1506 << FixItHint::CreateInsertion(LParenLoc, "(") in ParseExprAfterUnaryExprOrTypeTrait()
1507 << FixItHint::CreateInsertion(RParenLoc, ")"); in ParseExprAfterUnaryExprOrTypeTrait()
1604 << FixItHint::CreateInsertion(LParenLoc, "(") in ParseUnaryExprOrTypeTraitExpression()
1605 << FixItHint::CreateInsertion(RParenLoc, ")"); in ParseUnaryExprOrTypeTraitExpression()
1958 << FixItHint::CreateReplacement(BridgeKeywordLoc, ""); in ParseParenExpression()
1997 << FixItHint::CreateReplacement(BridgeKeywordLoc, in ParseParenExpression()
/external/clang/include/clang/Sema/
DSemaFixItUtils.h42 std::vector<FixItHint> Hints;
/external/clang/tools/libclang/
DCXStoredDiagnostic.cpp105 const FixItHint &Hint = Diag.fixit_begin()[FixIt]; in getFixIt()
/external/clang/lib/AST/
DCommentSema.cpp247 << ArgRange << FixItHint::CreateReplacement(ArgRange, FixedName); in actOnParamCommandDirectionArg()
354 << FixItHint::CreateReplacement(ArgRange, CorrectedName); in actOnTParamCommandParamNameArg()
708 << FixItHint::CreateInsertion(FD->getLocEnd().getLocWithOffset(1), in checkDeprecatedCommand()
797 << FixItHint::CreateReplacement(ArgRange, CorrectedII->getName()); in resolveParamCommandIndexes()

123