/external/clang/unittests/Tooling/ |
D | RefactoringTest.cpp | 36 Replacement createReplacement(SourceLocation Start, unsigned Length, in createReplacement() 38 return Replacement(Context.Sources, Start, Length, ReplacementText); in createReplacement() 47 Replacement Replace(createReplacement(Location, 4, "")); in TEST_F() 55 Replacement Replace(createReplacement(Location, 17, "")); in TEST_F() 63 Replacement Replace(createReplacement(Location, 0, "result")); in TEST_F() 72 Replacement Replace(createReplacement(Location, 12, "x")); in TEST_F() 81 Replacement Replace1(createReplacement(Location1, 12, "x\ny\n")); in TEST_F() 88 Replacement Replace2(createReplacement(Location2, 1, "f")); in TEST_F() 94 Replacement Replace("nonexistent-file.cpp", 0, 1, ""); in TEST_F() 99 Replacement Replace("/path/to/file.cpp", 0, 1, ""); in TEST_F() [all …]
|
/external/clang/include/clang/Tooling/ |
D | Refactoring.h | 39 class Replacement { 42 Replacement(); 50 Replacement(StringRef FilePath, unsigned Offset, 55 Replacement(SourceManager &Sources, SourceLocation Start, unsigned Length, 59 Replacement(SourceManager &Sources, const CharSourceRange &Range, 64 Replacement(SourceManager &Sources, const Node &NodeToReplace, 89 bool operator()(const Replacement &R1, const Replacement &R2) const; 106 typedef std::set<Replacement, Replacement::Less> Replacements; 154 Replacement::Replacement(SourceManager &Sources, const Node &NodeToReplace, in Replacement() function
|
/external/clang/lib/Tooling/ |
D | Refactoring.cpp | 28 Replacement::Replacement() in Replacement() function in clang::tooling::Replacement 31 Replacement::Replacement(StringRef FilePath, unsigned Offset, in Replacement() function in clang::tooling::Replacement 36 Replacement::Replacement(SourceManager &Sources, SourceLocation Start, in Replacement() function in clang::tooling::Replacement 41 Replacement::Replacement(SourceManager &Sources, const CharSourceRange &Range, in Replacement() function in clang::tooling::Replacement 46 bool Replacement::isApplicable() const { in isApplicable() 50 bool Replacement::apply(Rewriter &Rewrite) const { in apply() 74 std::string Replacement::toString() const { in toString() 82 bool Replacement::Less::operator()(const Replacement &R1, in operator ()() 83 const Replacement &R2) const { in operator ()() 90 void Replacement::setFromSourceLocation(SourceManager &Sources, in setFromSourceLocation() [all …]
|
D | RefactoringCallbacks.cpp | 23 static Replacement replaceStmtWithText(SourceManager &Sources, in replaceStmtWithText() 26 return tooling::Replacement(Sources, CharSourceRange::getTokenRange( in replaceStmtWithText() 29 static Replacement replaceStmtWithStmt(SourceManager &Sources, in replaceStmtWithStmt() 43 Replace.insert(tooling::Replacement( in run()
|
/external/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCContract.cpp | 484 Instruction *Replacement = Inst; in runOnFunction() local 490 if (Replacement->getType() != UseTy) in runOnFunction() 491 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction() 503 PHI->setIncomingValue(i, Replacement); in runOnFunction() 506 if (Replacement->getType() != UseTy) in runOnFunction() 507 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction() 509 U.set(Replacement); in runOnFunction()
|
/external/chromium/chrome/browser/search_engines/ |
D | template_url.cc | 118 replacements->push_back(Replacement(SEARCH_TERMS, start)); in ParseParameter() 131 replacements->push_back(Replacement(LANGUAGE, start)); in ParseParameter() 133 replacements->push_back(Replacement(ENCODING, start)); in ParseParameter() 138 replacements->push_back(Replacement(GOOGLE_ACCEPTED_SUGGESTION, start)); in ParseParameter() 140 replacements->push_back(Replacement(GOOGLE_BASE_URL, start)); in ParseParameter() 142 replacements->push_back(Replacement(GOOGLE_BASE_SUGGEST_URL, start)); in ParseParameter() 144 replacements->push_back(Replacement(GOOGLE_ORIGINAL_QUERY_FOR_SUGGESTION, in ParseParameter() 147 replacements->push_back(Replacement(GOOGLE_RLZ, start)); in ParseParameter() 149 replacements->push_back(Replacement(GOOGLE_UNESCAPED_SEARCH_TERMS, start)); in ParseParameter()
|
D | template_url.h | 165 struct Replacement { struct 166 Replacement(ReplacementType type, size_t index) in Replacement() function 173 typedef std::vector<struct Replacement> Replacements; argument
|
/external/webkit/Source/WebCore/dom/ |
D | DocumentMarker.h | 43 Replacement = 1 << 3, enumerator 77 …: MarkerTypes(Spelling | Grammar | TextMatch | Replacement | CorrectionIndicator | RejectedCorrect… in AllMarkers()
|
/external/webkit/Source/WebCore/editing/ |
D | SpellingCorrectionController.cpp | 55 markerTypesForAutoCorrection.append(DocumentMarker::Replacement); in markerTypesForAutocorrection() 67 markerTypesForReplacement.append(DocumentMarker::Replacement); in markerTypesForReplacement() 242 …rectionPanelInfo::PanelTypeReversion && (markerType == DocumentMarker::Replacement || markerType =… in applyCorrectionPanelInfo() 278 markers->addMarker(range.get(), DocumentMarker::Replacement); in respondToUnappliedSpellCorrection() 452 … if (markerType == DocumentMarker::Replacement || markerType == DocumentMarker::Autocorrected) in markCorrection()
|
D | SpellingCorrectionController.h | 125 return (((marker.type == DocumentMarker::Replacement && !marker.description.isNull()) in shouldStartTimeFor()
|
/external/clang/include/clang/AST/ |
D | TemplateName.h | 344 TemplateName Replacement; variable 349 Parameter(parameter), Replacement(replacement) {} in SubstTemplateTemplateParmStorage() 353 TemplateName getReplacement() const { return Replacement; } in getReplacement()
|
D | ExprCXX.h | 3513 Stmt *Replacement; variable 3533 Param(param), Replacement(replacement), NameLoc(loc) {} in SubstNonTypeTemplateParmExpr() 3539 Expr *getReplacement() const { return cast<Expr>(Replacement); } in getReplacement() 3548 child_range children() { return child_range(&Replacement, &Replacement+1); } in children()
|
/external/llvm/include/llvm/Support/ |
D | SourceMgr.h | 186 SMFixIt(SMRange R, const Twine &Replacement) in SMFixIt() argument 187 : Range(R), Text(Replacement.str()) { in SMFixIt()
|
/external/llvm/lib/IR/ |
D | Constants.cpp | 2556 Constant *Replacement = 0; in replaceUsesOfWithOnConstant() local 2558 Replacement = ConstantAggregateZero::get(getType()); in replaceUsesOfWithOnConstant() 2560 Replacement = UndefValue::get(getType()); in replaceUsesOfWithOnConstant() 2568 Replacement = I->first; in replaceUsesOfWithOnConstant() 2594 assert(Replacement != this && "I didn't contain From!"); in replaceUsesOfWithOnConstant() 2597 replaceAllUsesWith(Replacement); in replaceUsesOfWithOnConstant() 2642 Constant *Replacement = 0; in replaceUsesOfWithOnConstant() local 2644 Replacement = ConstantAggregateZero::get(getType()); in replaceUsesOfWithOnConstant() 2646 Replacement = UndefValue::get(getType()); in replaceUsesOfWithOnConstant() 2654 Replacement = I->first; in replaceUsesOfWithOnConstant() [all …]
|
D | BasicBlock.cpp | 70 Constant *Replacement = in ~BasicBlock() local 74 BA->replaceAllUsesWith(ConstantExpr::getIntToPtr(Replacement, in ~BasicBlock()
|
/external/clang/utils/TableGen/ |
D | ClangDiagnosticsEmitter.cpp | 236 SmallString<64> Replacement; in groupDiagnostics() local 238 Replacement += "InGroup<"; in groupDiagnostics() 239 Replacement += (*I)->ExplicitDef->getName(); in groupDiagnostics() 240 Replacement += ">"; in groupDiagnostics() 242 SMFixIt FixIt(InGroupRange, Replacement.str()); in groupDiagnostics()
|
/external/clang/lib/AST/ |
D | TemplateName.cpp | 31 Profile(ID, Parameter, Replacement); in Profile()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 1096 Value *Replacement; in RewriteLoopBodyWithConditionConstant() local 1098 Replacement = Val; in RewriteLoopBodyWithConditionConstant() 1100 Replacement = ConstantInt::get(Type::getInt1Ty(Val->getContext()), in RewriteLoopBodyWithConditionConstant() 1113 (*UI)->replaceUsesOfWith(LIC, Replacement); in RewriteLoopBodyWithConditionConstant()
|
/external/clang/lib/Rewrite/Frontend/ |
D | RewriteObjC.cpp | 1334 Stmt *Replacement = SynthMessageExpr(NewMsg); in RewritePropertyOrImplicitSetter() local 1335 ReplaceStmtWithRange(PseudoOp, Replacement, OldRange); in RewritePropertyOrImplicitSetter() 1336 return Replacement; in RewritePropertyOrImplicitSetter() 1410 Stmt *Replacement = SynthMessageExpr(NewMsg); in RewritePropertyOrImplicitGetter() local 1411 ReplaceStmtWithRange(PseudoOp, Replacement, OldRange); in RewritePropertyOrImplicitGetter() 1412 return Replacement; in RewritePropertyOrImplicitGetter() 2015 Expr *Replacement = StringLiteral::Create(*Context, StrEncoding, in RewriteAtEncode() local 2018 ReplaceStmt(Exp, Replacement); in RewriteAtEncode() 2022 return Replacement; in RewriteAtEncode() 4859 CastExpr *Replacement = new (Context) CastExpr(ICE->getType(), in RewriteFunctionBodyOrGlobalInitializer() [all …]
|
D | RewriteModernObjC.cpp | 1532 Stmt *Replacement = SynthMessageExpr(NewMsg); in RewritePropertyOrImplicitSetter() local 1533 ReplaceStmtWithRange(PseudoOp, Replacement, OldRange); in RewritePropertyOrImplicitSetter() 1534 return Replacement; in RewritePropertyOrImplicitSetter() 1615 Stmt *Replacement = SynthMessageExpr(NewMsg); in RewritePropertyOrImplicitGetter() local 1616 ReplaceStmtWithRange(PseudoOp, Replacement, OldRange); in RewritePropertyOrImplicitGetter() 1617 return Replacement; in RewritePropertyOrImplicitGetter() 2109 Expr *Replacement = StringLiteral::Create(*Context, StrEncoding, in RewriteAtEncode() local 2112 ReplaceStmt(Exp, Replacement); in RewriteAtEncode() 2116 return Replacement; in RewriteAtEncode() 5859 CastExpr *Replacement = new (Context) CastExpr(ICE->getType(), in RewriteFunctionBodyOrGlobalInitializer() [all …]
|
/external/clang/lib/Format/ |
D | Format.cpp | 122 Replaces.insert(tooling::Replacement( in replaceWhitespace() 186 tooling::Replacement(SourceMgr, InsertAt, 0, ReplacementText)); in breakToken() 218 Replaces.insert(tooling::Replacement(SourceMgr, LineStarts[i], 0, in indentBlockComment() 222 tooling::Replacement(SourceMgr, LineStarts[i], -IndentDelta, "")); in indentBlockComment() 295 Replaces.insert(tooling::Replacement(SourceMgr, Tok.WhiteSpaceStart, in storeReplacement()
|
/external/llvm/docs/ |
D | Lexicon.rst | 208 Scalar Replacement of Aggregates
|
/external/llvm/lib/Transforms/Utils/ |
D | Local.cpp | 497 Constant *Replacement = in MergeBasicBlockIntoOnlyPred() local 499 BA->replaceAllUsesWith(ConstantExpr::getIntToPtr(Replacement, in MergeBasicBlockIntoOnlyPred()
|
/external/clang/lib/Sema/ |
D | SemaTemplateDeduction.cpp | 3512 QualType Replacement; member in __anonfdb30e180111::SubstituteAutoTransform 3514 SubstituteAutoTransform(Sema &SemaRef, QualType Replacement) : in SubstituteAutoTransform() argument 3515 TreeTransform<SubstituteAutoTransform>(SemaRef), Replacement(Replacement) { in SubstituteAutoTransform() 3525 if (isa<TemplateTypeParmType>(Replacement)) { in TransformAutoType() 3526 QualType Result = Replacement; in TransformAutoType() 3531 QualType Result = RebuildAutoType(Replacement); in TransformAutoType()
|
/external/webkit/Source/WebCore/rendering/ |
D | HitTestResult.cpp | 219 …rNonSharedNode->document()->markers()->markerContainingPoint(m_point, DocumentMarker::Replacement); in replacedString()
|