Home
last modified time | relevance | path

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

12

/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/clang/lib/Format/
H A DWhitespaceManager.h114 Change(const FormatToken &Tok, bool CreateReplacement,
126 bool CreateReplacement; member
H A DWhitespaceManager.cpp30 bool CreateReplacement, in Change() argument
37 : Tok(&Tok), CreateReplacement(CreateReplacement), in Change()
985 if (!Changes[i].CreateReplacement) in alignTrailingComments()
1425 if (C.CreateReplacement) { in generateChanges()
/openbsd/gnu/llvm/clang/lib/Sema/
H A DSemaExprObjC.cpp1774 << FixItHint::CreateReplacement(RecRange, in CheckMessageArgumentTypes()
2085 << FixItHint::CreateReplacement(MemberLoc, PDecl->getName()); in HandleExprPropertyRefExpr()
2118 << FixItHint::CreateReplacement(BaseExpr->getSourceRange(), in HandleExprPropertyRefExpr()
2144 << FixItHint::CreateReplacement(OpLoc, "->"); in HandleExprPropertyRefExpr()
2700 << FixItHint::CreateReplacement( in BuildClassMessage()
3153 Builder.AddFixItHint(FixItHint::CreateReplacement( in BuildInstanceMessage()
3166 Builder.AddFixItHint(FixItHint::CreateReplacement( in BuildInstanceMessage()
4668 << FixItHint::CreateReplacement(BridgeKeywordLoc, "__bridge"); in BuildObjCBridgedCast()
4671 << FixItHint::CreateReplacement(BridgeKeywordLoc, in BuildObjCBridgedCast()
4712 << FixItHint::CreateReplacement(BridgeKeywordLoc, "__bridge "); in BuildObjCBridgedCast()
[all …]
H A DSemaAvailability.cpp514 FixIts.push_back(FixItHint::CreateReplacement( in DoEmitAvailabilityWarning()
521 FixIts.push_back(FixItHint::CreateReplacement(UseRange, Replacement)); in DoEmitAvailabilityWarning()
523 FixIts.push_back(FixItHint::CreateReplacement(UseRange, Replacement)); in DoEmitAvailabilityWarning()
H A DSemaExprMember.cpp1020 << MemberName << DC << FixItHint::CreateReplacement(OpLoc, "->"); in BuildMemberReferenceExpr()
1283 << FixItHint::CreateReplacement(OpLoc, "."); in LookupMemberExpr()
1396 << FixItHint::CreateReplacement(OpLoc, "."); in LookupMemberExpr()
1662 << FixItHint::CreateReplacement(OpLoc, "->"); in LookupMemberExpr()
H A DAnalysisBasedWarnings.cpp908 Fixit1 = FixItHint::CreateReplacement(BO->getSourceRange(), FixitStr); in DiagUninitUse()
918 Fixit1 = FixItHint::CreateReplacement(Range, FixitStr); in DiagUninitUse()
928 Fixit1 = FixItHint::CreateReplacement(Range, FixitStr); in DiagUninitUse()
948 Fixit1 = FixItHint::CreateReplacement(Range, FixitStr); in DiagUninitUse()
H A DSemaCXXScopeSpec.cpp614 << FixItHint::CreateReplacement(IdInfo.CCLoc, ":"); in BuildCXXNestedNameSpecifier()
H A DSemaStmtAsm.cpp555 B << FixItHint::CreateReplacement(Piece.getRange(), SuggestedModifier); in ActOnGCCAsmStmt()
H A DSema.cpp616 << FixItHint::CreateReplacement(E->getSourceRange(), "nullptr"); in diagnoseZeroToNullptrConversion()
2395 FixItHint::CreateReplacement(MagicMarkerRange, MagicMarkerText); in ActOnComment()
/openbsd/gnu/llvm/clang/lib/Parse/
H A DParseHLSL.cpp115 << FixItHint::CreateReplacement(SourceRange(ArgLoc, EndNumLoc), FixedArg); in fixSeparateAttrArgAndNumber()
H A DParseTemplate.cpp656 << FixItHint::CreateReplacement(CharSourceRange::getCharRange( in ParseTemplateParameter()
926 ? FixItHint::CreateReplacement(Tok.getLocation(), "class") in ParseTemplateTemplateParameter()
933 ? FixItHint::CreateReplacement(Tok.getLocation(), "class") in ParseTemplateTemplateParameter()
1176 FixItHint Hint1 = FixItHint::CreateReplacement(ReplacementRange, in ParseGreaterThanInTemplateList()
H A DParseInit.cpp180 << FixItHint::CreateReplacement(SourceRange(NameLoc, ColonLoc), in ParseInitializerWithPotentialDesignator()
H A DParseDeclCXX.cpp207 << FixItHint::CreateReplacement( in ParseNamespace()
951 return FixItHint::CreateReplacement(BO->getOperatorLoc(), ","); in getStaticAssertNoMessageFixIt()
976 Diag(Tok, diag::ext_ms_static_assert) << FixItHint::CreateReplacement( in ParseStaticAssertDeclaration()
3133 << FixItHint::CreateReplacement(CommaLoc, ";"); in ParseCXXClassMemberDeclaration()
3357 << tok::colon << FixItHint::CreateReplacement(EndLoc, ":"); in ParseCXXClassMemberDeclarationWithPragmas()
3978 << Replacement << FixItHint::CreateReplacement(Range, Replacement); in diagnoseDynamicExceptionSpecification()
4222 << FixItHint::CreateReplacement(TokRange, "_Clang"); in TryParseCXX11AttributeIdentifier()
H A DParseExprCXX.cpp67 << FixItHint::CreateReplacement(Range, "< ::"); in FixDigraph()
405 << FixItHint::CreateReplacement(Next.getLocation(), "::"); in ParseOptionalCXXScopeSpecifier()
434 << FixItHint::CreateReplacement(Next.getLocation(), ":"); in ParseOptionalCXXScopeSpecifier()
2768 Diag(DiagLoc, DiagId) << FixItHint::CreateReplacement( in ParseUnqualifiedIdOperator()
H A DParseDecl.cpp652 << FixItHint::CreateReplacement(KindLoc, "put"); in ParseMicrosoftDeclSpecArgs()
2215 << FixItHint::CreateReplacement(CommaLoc, ";"); in ParseDeclGroup()
2470 << FixItHint::CreateReplacement(EqualLoc, ":"); in ParseDeclarationAfterDeclaratorAndAttributes()
2816 << FixItHint::CreateReplacement(Tok.getLocation(), II->getName()); in ParseImplicitInt()
3735 << FixItHint::CreateReplacement(SourceRange(AutoLoc, in ParseDeclarationSpecifiers()
7814 << FixItHint::CreateReplacement(Loc, "_BitInt"); in DiagnoseBitIntUse()
H A DParseStmt.cpp843 << FixItHint::CreateReplacement(ColonLoc, ":"); in ParseCaseStatement()
919 << FixItHint::CreateReplacement(ColonLoc, ":"); in ParseDefaultStatement()
/openbsd/gnu/llvm/clang/lib/AST/
H A DCommentSema.cpp247 << ArgRange << FixItHint::CreateReplacement(ArgRange, FixedName); in actOnParamCommandDirectionArg()
350 << FixItHint::CreateReplacement(ArgRange, CorrectedName); in actOnTParamCommandParamNameArg()
788 << FixItHint::CreateReplacement(ArgRange, CorrectedII->getName()); in resolveParamCommandIndexes()
H A DCommentLexer.cpp412 << FixItHint::CreateReplacement(CommandRange, CorrectedName); in lexCommentText()
/openbsd/gnu/llvm/clang/include/clang/Basic/
H A DDiagnostic.h134 static FixItHint CreateReplacement(CharSourceRange RemoveRange, in CreateReplacement() function
142 static FixItHint CreateReplacement(SourceRange RemoveRange, in CreateReplacement() function
144 return CreateReplacement(CharSourceRange::getTokenRange(RemoveRange), Code); in CreateReplacement()
/openbsd/gnu/llvm/clang/lib/Lex/
H A DPPDirectives.cpp448 auto Hint = FixItHint::CreateReplacement(DirectiveRange, SuggValue); in SuggestTypoedDirective()
2022 << FixItHint::CreateReplacement(FilenameRange, in LookupHeaderIncludeOrImport()
2051 isAngled ? FixItHint::CreateReplacement( in LookupHeaderIncludeOrImport()
2053 : FixItHint::CreateReplacement( in LookupHeaderIncludeOrImport()
2466 FixItHint::CreateReplacement(FilenameRange, Path); in HandleHeaderIncludeOrImport()
H A DPPLexerChange.cpp392 << FixItHint::CreateReplacement( in HandleEndOfFile()
H A DLiteralSupport.cpp495 << FixItHint::CreateReplacement( in DiagnoseInvalidUnicodeCharacterName()
527 << FixItHint::CreateReplacement( in DiagnoseInvalidUnicodeCharacterName()
/openbsd/gnu/llvm/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp52 MergedFixits.push_back(FixItHint::CreateReplacement(range, text)); in replace()
H A DCompilerInstance.cpp2036 << FixItHint::CreateReplacement(SourceRange(Path[0].second), in loadModule()
2068 << FixItHint::CreateReplacement(SourceRange(Path[I].second), in loadModule()

12