Home
last modified time | relevance | path

Searched refs:CreateReplacement (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/include/clang/Tooling/
H A DFixIt.h64 return FixItHint::CreateReplacement(internal::getSourceRange(Destination), in createReplacement()
71 return FixItHint::CreateReplacement(internal::getSourceRange(Destination), in createReplacement()
/freebsd/contrib/llvm-project/clang/lib/Format/
H A DWhitespaceManager.h109 Change(const FormatToken &Tok, bool CreateReplacement,
121 bool CreateReplacement; member
H A DWhitespaceManager.cpp35 bool CreateReplacement, in Change() argument
42 : Tok(&Tok), CreateReplacement(CreateReplacement), in Change()
1130 if (!C.CreateReplacement) in alignTrailingComments()
1670 if (C.CreateReplacement) { in generateChanges()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprObjC.cpp1320 << FixItHint::CreateReplacement(SelectorRange, MatchedSel.getAsString()); in ParseObjCSelectorExpression()
1775 << FixItHint::CreateReplacement(SelectorRange, MatchedSel.getAsString()); in CheckMessageArgumentTypes()
1790 << FixItHint::CreateReplacement(RecRange, in CheckMessageArgumentTypes()
2098 << FixItHint::CreateReplacement(MemberLoc, PDecl->getName()); in HandleExprPropertyRefExpr()
2131 << FixItHint::CreateReplacement(BaseExpr->getSourceRange(), in HandleExprPropertyRefExpr()
2158 << FixItHint::CreateReplacement(OpLoc, "->"); in HandleExprPropertyRefExpr()
2711 << FixItHint::CreateReplacement( in BuildClassMessage()
3163 Builder.AddFixItHint(FixItHint::CreateReplacement( in BuildInstanceMessage()
3176 Builder.AddFixItHint(FixItHint::CreateReplacement( in BuildInstanceMessage()
3179 Builder.AddFixItHint(FixItHint::CreateReplacement(SuperLoc, "self")); in BuildInstanceMessage()
[all …]
H A DSemaAvailability.cpp603 FixIts.push_back(FixItHint::CreateReplacement( in DoEmitAvailabilityWarning()
610 FixIts.push_back(FixItHint::CreateReplacement(UseRange, Replacement)); in DoEmitAvailabilityWarning()
612 FixIts.push_back(FixItHint::CreateReplacement(UseRange, Replacement)); in DoEmitAvailabilityWarning()
H A DSemaExprMember.cpp1061 << MemberName << DC << FixItHint::CreateReplacement(OpLoc, "->"); in BuildMemberReferenceExpr()
1329 << FixItHint::CreateReplacement(OpLoc, "."); in LookupMemberExpr()
1443 << FixItHint::CreateReplacement(OpLoc, "."); in LookupMemberExpr()
1708 << FixItHint::CreateReplacement(OpLoc, "->"); in LookupMemberExpr()
H A DAnalysisBasedWarnings.cpp932 Fixit1 = FixItHint::CreateReplacement(BO->getSourceRange(), FixitStr); in DiagUninitUse()
942 Fixit1 = FixItHint::CreateReplacement(Range, FixitStr); in DiagUninitUse()
952 Fixit1 = FixItHint::CreateReplacement(Range, FixitStr); in DiagUninitUse()
972 Fixit1 = FixItHint::CreateReplacement(Range, FixitStr); in DiagUninitUse()
H A DSemaCXXScopeSpec.cpp525 << FixItHint::CreateReplacement(IdInfo.CCLoc, ":"); in BuildCXXNestedNameSpecifier()
H A DSemaChecking.cpp6296 << FixItHint::CreateReplacement(LMRange, FixedLM->toString()); in HandleInvalidLengthModifier()
6330 << FixItHint::CreateReplacement(LMRange, FixedLM->toString()); in HandleNonStandardLengthModifier()
6358 << FixItHint::CreateReplacement(CSRange, FixedCS->toString()); in HandleNonStandardConversionSpecifier()
7465 FixItHint::CreateReplacement(SpecRange, os.str())); in checkFormatExpr()
7485 Hints.push_back(FixItHint::CreateReplacement(SpecRange, os.str())); in checkFormatExpr()
7490 Hints.push_back(FixItHint::CreateReplacement(CastRange, CastFix.str())); in checkFormatExpr()
7795 FixItHint::CreateReplacement( in HandleScanfSpecifier()
8180 << FunctionName << FixItHint::CreateReplacement(Range, FunctionName); in emitReplacement()
8918 << FixItHint::CreateReplacement(OriginalSizeArg->getSourceRange(), in CheckStrlcpycatArguments()
9019 << FixItHint::CreateReplacement(SR, OS.str()); in CheckStrncatArguments()
[all …]
H A DSemaStmtAsm.cpp557 B << FixItHint::CreateReplacement(Piece.getRange(), SuggestedModifier); in ActOnGCCAsmStmt()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp2014 FixItHint::CreateReplacement(PlusWithSurroundingWhitespace, "["), in getFixits()
2015 FixItHint::CreateReplacement(ClosingParenWithPrecWhitespace, "]")}}; in getFixits()
2120 FixItHint::CreateReplacement(Node->getSourceRange(), SS.str())}; in fixUPCAddressofArraySubscriptWithSpan()
2153 Fixes.push_back(FixItHint::CreateReplacement( in getFixits()
2187 Fixes.push_back(FixItHint::CreateReplacement( in getFixits()
2379 FixIts.push_back(FixItHint::CreateReplacement( in fixLocalVarDeclWithSpan()
2629 return {FixItHint::CreateReplacement(PVD->getSourceRange(), SS.str())}; in fixParamWithSpan()
2723 FixIts.push_back(FixItHint::CreateReplacement( in fixVarDeclWithArray()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseTemplate.cpp545 << FixItHint::CreateReplacement(CharSourceRange::getCharRange( in ParseTemplateParameter()
829 ? FixItHint::CreateReplacement(Tok.getLocation(), "class") in ParseTemplateTemplateParameter()
836 ? FixItHint::CreateReplacement(Tok.getLocation(), "class") in ParseTemplateTemplateParameter()
1086 FixItHint Hint1 = FixItHint::CreateReplacement(ReplacementRange, in ParseGreaterThanInTemplateList()
H A DParseHLSL.cpp116 << FixItHint::CreateReplacement(SourceRange(ArgLoc, EndNumLoc), FixedArg); in fixSeparateAttrArgAndNumber()
H A DParseInit.cpp183 << FixItHint::CreateReplacement(SourceRange(NameLoc, ColonLoc), in ParseInitializerWithPotentialDesignator()
H A DParseDeclCXX.cpp218 << FixItHint::CreateReplacement( in ParseNamespace()
1006 return FixItHint::CreateReplacement(BO->getOperatorLoc(), ","); in getStaticAssertNoMessageFixIt()
1033 Diag(Tok, diag::ext_ms_static_assert) << FixItHint::CreateReplacement( in ParseStaticAssertDeclaration()
3349 << FixItHint::CreateReplacement(CommaLoc, ";"); in ParseCXXClassMemberDeclaration()
3595 << tok::colon << FixItHint::CreateReplacement(EndLoc, ":"); in ParseCXXClassMemberDeclarationWithPragmas()
4228 << Replacement << FixItHint::CreateReplacement(Range, Replacement); in diagnoseDynamicExceptionSpecification()
4489 << FixItHint::CreateReplacement(TokRange, "_Clang"); in TryParseCXX11AttributeIdentifier()
H A DParseExprCXX.cpp70 << FixItHint::CreateReplacement(Range, "< ::"); in FixDigraph()
451 << FixItHint::CreateReplacement(Next.getLocation(), "::"); in ParseOptionalCXXScopeSpecifier()
480 << FixItHint::CreateReplacement(Next.getLocation(), ":"); in ParseOptionalCXXScopeSpecifier()
2887 Diag(DiagLoc, DiagId) << FixItHint::CreateReplacement( in ParseUnqualifiedIdOperator()
H A DParser.cpp130 DB << FixItHint::CreateReplacement( in ExpectAndConsume()
2282 << FixItHint::CreateReplacement(SourceRange(Tok.getLocation()), "="); in isTokenEqualOrEqualTypo()
H A DParseStmt.cpp899 << FixItHint::CreateReplacement(ColonLoc, ":"); in ParseCaseStatement()
977 << FixItHint::CreateReplacement(ColonLoc, ":"); in ParseDefaultStatement()
H A DParseDecl.cpp836 << FixItHint::CreateReplacement(KindLoc, "put"); in ParseMicrosoftDeclSpecArgs()
2534 << FixItHint::CreateReplacement(CommaLoc, ";"); in ParseDeclGroup()
2806 << FixItHint::CreateReplacement(EqualLoc, ":"); in ParseDeclarationAfterDeclaratorAndAttributes()
3152 << FixItHint::CreateReplacement(Tok.getLocation(), II->getName()); in ParseImplicitInt()
4165 << FixItHint::CreateReplacement(SourceRange(AutoLoc, in ParseDeclarationSpecifiers()
8581 << FixItHint::CreateReplacement(Loc, "_BitInt"); in DiagnoseBitIntUse()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPDirectives.cpp467 auto Hint = FixItHint::CreateReplacement(DirectiveRange, SuggValue); in SuggestTypoedDirective()
2146 << FixItHint::CreateReplacement(FilenameRange, in LookupHeaderIncludeOrImport()
2176 isAngled ? FixItHint::CreateReplacement( in LookupHeaderIncludeOrImport()
2178 : FixItHint::CreateReplacement( in LookupHeaderIncludeOrImport()
2589 FixItHint::CreateReplacement(FilenameRange, Path); in HandleHeaderIncludeOrImport()
H A DPPLexerChange.cpp400 << FixItHint::CreateReplacement( in HandleEndOfFile()
H A DLiteralSupport.cpp557 << FixItHint::CreateReplacement( in DiagnoseInvalidUnicodeCharacterName()
589 << FixItHint::CreateReplacement( in DiagnoseInvalidUnicodeCharacterName()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp52 MergedFixits.push_back(FixItHint::CreateReplacement(range, text)); in replace()
H A DCompilerInstance.cpp2112 << FixItHint::CreateReplacement(SourceRange(Path[0].second), in loadModule()
2144 << FixItHint::CreateReplacement(SourceRange(Path[I].second), in loadModule()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DCommentLexer.cpp412 << FixItHint::CreateReplacement(CommandRange, CorrectedName); in lexCommentText()

12