Home
last modified time | relevance | path

Searched refs:SourceRange (Results 1 – 25 of 439) sorted by relevance

12345678910>>...18

/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DInternals.h65 void remove(SourceRange range);
67 void replace(SourceRange range, StringRef text);
68 void replace(SourceRange range, SourceRange replacementRange);
72 void increaseIndentation(SourceRange range,
76 bool clearAllDiagnostics(SourceRange range) { in clearAllDiagnostics()
84 SourceRange range) { in clearDiagnostic()
89 bool hasDiagnostic(unsigned ID, SourceRange range) { in hasDiagnostic()
99 SourceRange range = SourceRange());
101 SourceRange range = SourceRange());
103 SourceRange range = SourceRange());
[all …]
H A DTransformActions.cpp46 SourceRange R1, R2;
97 static RangeComparison compare(SourceRange LHS, SourceRange RHS, in compare()
135 void remove(SourceRange range);
137 void replace(SourceRange range, StringRef text);
138 void replace(SourceRange range, SourceRange replacementRange);
142 void increaseIndentation(SourceRange range,
152 bool canRemoveRange(SourceRange range);
153 bool canReplaceRange(SourceRange range, SourceRange replacementRange);
158 void commitRemove(SourceRange range);
160 void commitReplace(SourceRange range, SourceRange replacementRange);
[all …]
/llvm-project-15.0.7/clang/include/clang/AST/
H A DTypeLoc.h546 SourceRange BuiltinRange;
837 return SourceRange(start, end); in getLocalSourceRange()
1045 return SourceRange(start, end); in getLocalSourceRange()
1434 SourceRange getParensRange() const { in getParensRange()
1709 SourceRange OperandParens;
1861 SourceRange OperandParens;
1968 SourceRange getParensRange() const { in getParensRange()
2084 SourceRange getParensRange() const { in getParensRange()
2566 SourceRange getParensRange() const { in getParensRange()
2595 SourceRange getLocalSourceRange() const { return SourceRange(getKWLoc()); } in getLocalSourceRange()
[all …]
H A DComment.h58 SourceRange Range;
177 void setSourceRange(SourceRange SR) { in setSourceRange()
198 SourceRange Range;
346 SourceRange getCommandNameRange() const { in getCommandNameRange()
372 SourceRange TagNameRange;
397 return SourceRange(L.getLocWithOffset(1), in getTagNameSourceRange()
420 SourceRange ValueRange;
437 SourceRange getNameRange() const { in getNameRange()
751 SourceRange getParamNameRange() const { in getParamNameRange()
821 SourceRange getParamNameRange() const { in getParamNameRange()
[all …]
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DPreprocessingRecord.h90 SourceRange Range;
95 PreprocessedEntity(EntityKind Kind, SourceRange Range) in PreprocessedEntity()
136 PreprocessingDirective(EntityKind Kind, SourceRange Range) in PreprocessingDirective()
153 SourceRange Range) in MacroDefinitionRecord()
324 std::vector<SourceRange> SkippedRanges;
488 getPreprocessedEntitiesInRange(SourceRange R);
515 const std::vector<SourceRange> &getSkippedRanges() { in getSkippedRanges()
549 SourceRange Range) override;
551 void SourceRangeSkipped(SourceRange Range,
555 SourceRange Range);
[all …]
H A DPPConditionalDirectiveRecord.h75 bool rangeIntersectsConditionalDirective(SourceRange Range) const;
88 void If(SourceLocation Loc, SourceRange ConditionRange,
90 void Elif(SourceLocation Loc, SourceRange ConditionRange,
98 void Elifdef(SourceLocation Loc, SourceRange ConditionRange,
102 void Elifndef(SourceLocation Loc, SourceRange ConditionRange,
H A DPPCallbacks.h302 const MacroDefinition &MD, SourceRange Range, in MacroExpands()
324 SourceRange Range) { in Defined()
352 virtual void If(SourceLocation Loc, SourceRange ConditionRange, in If()
362 virtual void Elif(SourceLocation Loc, SourceRange ConditionRange, in Elif()
386 virtual void Elifdef(SourceLocation Loc, SourceRange ConditionRange, in Elifdef()
410 virtual void Elifndef(SourceLocation Loc, SourceRange ConditionRange, in Elifndef()
616 SourceRange Range) override { in Defined()
627 void If(SourceLocation Loc, SourceRange ConditionRange, in If()
634 void Elif(SourceLocation Loc, SourceRange ConditionRange, in Elif()
654 void Elifdef(SourceLocation Loc, SourceRange ConditionRange, in Elifdef()
[all …]
/llvm-project-15.0.7/clang/unittests/Lex/
H A DPPConditionalDirectiveRecordTest.cpp102 SourceRange(toks[0].getLocation(), toks[1].getLocation()))); in TEST_F()
104 SourceRange(toks[0].getLocation(), toks[2].getLocation()))); in TEST_F()
106 SourceRange(toks[3].getLocation(), toks[4].getLocation()))); in TEST_F()
108 SourceRange(toks[1].getLocation(), toks[5].getLocation()))); in TEST_F()
110 SourceRange(toks[2].getLocation(), toks[6].getLocation()))); in TEST_F()
112 SourceRange(toks[2].getLocation(), toks[5].getLocation()))); in TEST_F()
114 SourceRange(toks[0].getLocation(), toks[6].getLocation()))); in TEST_F()
116 SourceRange(toks[2].getLocation(), toks[8].getLocation()))); in TEST_F()
118 SourceRange(toks[0].getLocation(), toks[9].getLocation()))); in TEST_F()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/Dynamic/
H A DDiagnostics.h36 struct SourceRange { struct
45 SourceRange Range; argument
111 SourceRange MatcherRange);
115 SourceRange MatcherRange, unsigned ArgNumber);
144 ArgStream addError(SourceRange Range, ErrorType Error);
149 SourceRange Range;
157 SourceRange Range;
179 ArgStream pushContextFrame(ContextType Type, SourceRange Range);
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DAttributeCommonInfo.h67 SourceRange AttrRange;
79 AttributeCommonInfo(SourceRange AttrRange) in AttributeCommonInfo()
88 const IdentifierInfo *ScopeName, SourceRange AttrRange, in AttributeCommonInfo()
96 const IdentifierInfo *ScopeName, SourceRange AttrRange, in AttributeCommonInfo()
103 const IdentifierInfo *ScopeName, SourceRange AttrRange, in AttributeCommonInfo()
110 AttributeCommonInfo(const IdentifierInfo *AttrName, SourceRange AttrRange, in AttributeCommonInfo()
116 AttributeCommonInfo(SourceRange AttrRange, Kind K, Syntax SyntaxUsed) in AttributeCommonInfo()
121 AttributeCommonInfo(SourceRange AttrRange, Kind K, Syntax SyntaxUsed, in AttributeCommonInfo()
133 SourceRange getRange() const { return AttrRange; } in getRange()
134 void setRange(SourceRange R) { AttrRange = R; } in setRange()
H A DSourceLocation.h210 class SourceRange {
215 SourceRange() = default;
216 SourceRange(SourceLocation loc) : B(loc), E(loc) {}
228 bool operator==(const SourceRange &X) const {
232 bool operator!=(const SourceRange &X) const {
237 bool fullyContains(const SourceRange &other) const {
254 SourceRange Range;
265 static CharSourceRange getCharRange(SourceRange R) {
270 return getTokenRange(SourceRange(B, E));
274 return getCharRange(SourceRange(B, E));
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DQualifiedAutoCheck.cpp62 llvm::Optional<SourceRange>
65 SourceRange TypeSpecifier( in getTypeSpecifierLocation()
77 llvm::Optional<SourceRange> mergeReplacementRange(SourceRange &TypeSpecifier, in mergeReplacementRange()
163 SourceRange TypeSpecifier; in check()
164 if (llvm::Optional<SourceRange> TypeSpec = in check()
170 llvm::SmallVector<SourceRange, 4> RemoveQualifiersRange; in check()
176 if (llvm::Optional<SourceRange> Result = in check()
201 for (SourceRange &Range : RemoveQualifiersRange) { in check()
222 for (SourceRange &Range : RemoveQualifiersRange) { in check()
255 if (llvm::Optional<SourceRange> TypeSpec = in check()
[all …]
H A DElseAfterReturnCheck.cpp34 SmallVectorImpl<SourceRange> &Collection = Collections[SM.getFileID(Loc)]; in Endif()
148 SourceRange(ElseExpandedLoc, EndLoc), Repl); in removeElseAndBrackets()
207 const SmallVectorImpl<SourceRange> &ConditionalBranches = Iter->getSecond(); in hasPreprocessorBranchEndBetweenLocations()
210 [](const SourceRange &LHS, const SourceRange &RHS) { in hasPreprocessorBranchEndBetweenLocations()
217 [](const SourceRange &LHS, const SourceLocation &RHS) { in hasPreprocessorBranchEndBetweenLocations()
270 << SourceRange(ElseLoc); in check()
273 SourceRange(If->getIfLoc()), in check()
286 Diag << tooling::fixit::createReplacement(SourceRange(If->getIfLoc()), in check()
306 << SourceRange(ElseLoc); in check()
308 SourceRange(If->getIfLoc()), in check()
[all …]
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DRefactoringActionRulesTest.cpp60 std::pair<SourceRange, int> Selection; in TEST_F()
63 ReplaceAWithB(std::pair<SourceRange, int> Selection) in TEST_F() argument
68 std::pair<SourceRange, int> Selection) { in TEST_F() argument
87 Expected<std::pair<SourceRange, int>> in TEST_F()
89 Expected<SourceRange> R = in TEST_F()
151 SourceRange R) { in TEST_F()
155 ErrorRule(SourceRange R) {} in TEST_F()
200 SourceRange Selection; in TEST_F()
203 FindOccurrences(SourceRange Selection) : Selection(Selection) {} in TEST_F()
206 SourceRange Selection) { in TEST_F()
[all …]
H A DASTSelectionTest.cpp31 llvm::function_ref<void(SourceRange SelectionRange,
38 llvm::function_ref<void(SourceRange SelectionRange, in SelectionFinderVisitor()
48 SourceRange SelRange; in VisitTranslationUnitDecl()
50 SelRange = SourceRange(SelectionRange->first.translate(SM), in VisitTranslationUnitDecl()
54 SelRange = SourceRange(Loc, Loc); in VisitTranslationUnitDecl()
68 llvm::function_ref<void(SourceRange SelectionRange, in findSelectedASTNodesWithRange()
84 [&](SourceRange, Optional<SelectedASTNode> Selection) { in findSelectedASTNodes() argument
692 [](SourceRange SelectionRange, Optional<SelectedASTNode> Node) { in TEST()
700 [](SourceRange SelectionRange, Optional<SelectedASTNode> Node) { in TEST()
709 [](SourceRange SelectionRange, Optional<SelectedASTNode> Node) { in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/MIRParser/
H A DMIRParser.cpp590 return error(VReg.ID.SourceRange.Start, in parseRegisterInfo()
607 VReg.Class.SourceRange.Start, in parseRegisterInfo()
764 return error(Object.ID.SourceRange.Start, in initializeFrameInfo()
771 return error(Object.ID.SourceRange.Start, in initializeFrameInfo()
790 return error(Name.SourceRange.Start, in initializeFrameInfo()
905 return error(Error, Source.SourceRange); in parseMDNode()
951 return error(Entry.ID.SourceRange.Start, in initializeJumpTableInfo()
963 return error(Error, Source.SourceRange); in parseMBBReference()
971 return error(Error, Source.SourceRange); in parseMachineMetadata()
993 SMLoc Loc = SourceRange.Start; in diagFromMIStringDiag()
[all …]
/llvm-project-15.0.7/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp188 SourceRange MsgRange = Msg->getSourceRange(); in rewriteToSubscriptGetCommon()
189 SourceRange RecRange = Rec->getSourceRange(); in rewriteToSubscriptGetCommon()
236 SourceRange MsgRange = Msg->getSourceRange(); in rewriteToArraySubscriptSet()
237 SourceRange RecRange = Rec->getSourceRange(); in rewriteToArraySubscriptSet()
270 SourceRange MsgRange = Msg->getSourceRange(); in rewriteToDictionarySubscriptSet()
271 SourceRange RecRange = Rec->getSourceRange(); in rewriteToDictionarySubscriptSet()
388 SourceRange MsgRange = Msg->getSourceRange(); in rewriteToArrayLiteral()
492 SourceRange MsgRange = Msg->getSourceRange(); in rewriteToDictionaryLiteral()
649 SourceRange ArgRange = Arg->getSourceRange(); in rewriteToCharLiteral()
826 SourceRange ArgRange = Arg->getSourceRange(); in rewriteToNumberLiteral()
[all …]
/llvm-project-15.0.7/clang/include/clang/Rewrite/Core/
H A DRewriter.h88 int getRangeSize(SourceRange Range,
105 std::string getRewrittenText(SourceRange Range) const { in getRewrittenText()
151 bool RemoveText(SourceRange range, RewriteOptions opts = RewriteOptions()) {
171 bool ReplaceText(SourceRange range, StringRef NewStr) { in ReplaceText()
178 bool ReplaceText(SourceRange range, SourceRange replacementRange);
185 bool IncreaseIndentation(SourceRange range, SourceLocation parentIndent) { in IncreaseIndentation()
/llvm-project-15.0.7/clang/lib/Lex/
H A DPreprocessingRecord.cpp46 SourceRange Range) in InclusionDirective()
60 PreprocessingRecord::getPreprocessedEntitiesInRange(SourceRange Range) { in getPreprocessedEntitiesInRange()
138 PreprocessingRecord::getPreprocessedEntitiesInRangeSlow(SourceRange Range) { in getPreprocessedEntitiesInRangeSlow()
181 template <SourceLocation (SourceRange::*getRangeLoc)() const>
204 SourceRange Range = PPE->getSourceRange(); in getLoc()
308 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in addPreprocessedEntity()
395 SourceRange Range) { in addMacroExpansion()
442 SourceRange Range) { in Defined()
449 void PreprocessingRecord::SourceRangeSkipped(SourceRange Range, in SourceRangeSkipped()
457 SourceRange Range, in MacroExpands()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DMakeSmartPtrCheck.cpp198 SourceRange BraceRange = Construct->getParenOrBraceRange(); in checkConstruct()
277 SourceRange NewRange = SkipParensParents(New)->getSourceRange(); in replaceNew()
326 Diag << FixItHint::CreateRemoval(SourceRange(NewStart, NewEnd)); in replaceNew()
330 Diag << FixItHint::CreateReplacement(SourceRange(NewStart, NewEnd), in replaceNew()
358 SourceRange InitRange = New->getDirectInitRange(); in replaceNew()
360 SourceRange(NewStart, InitRange.getBegin())); in replaceNew()
367 Diag << FixItHint::CreateReplacement(SourceRange(NewStart, NewEnd), in replaceNew()
374 SourceRange InitRange; in replaceNew()
400 InitRange = SourceRange( in replaceNew()
421 InitRange = SourceRange( in replaceNew()
[all …]
H A DConcatNestedNamespacesCheck.cpp39 const SourceRange &ReplacementRange, in alreadyConcatenated()
70 const SourceRange &FrontReplacement, const SourceRange &BackReplacement) { in reportDiagnostic()
93 SourceRange FrontReplacement(Namespaces.front()->getBeginLoc(), in check()
95 SourceRange BackReplacement(Namespaces.back()->getRBraceLoc(), in check()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCoverageMappingGen.h40 SourceRange Range;
52 SkippedRange(SourceRange Range, Kind K,
79 void AddSkippedRange(SourceRange Range, SkippedRange::Kind RangeKind);
81 void SourceRangeSkipped(SourceRange Range, SourceLocation EndifLoc) override;
83 void HandleEmptyline(SourceRange Range) override;
85 bool HandleComment(Preprocessor &PP, SourceRange Range) override;
/llvm-project-15.0.7/clang/lib/AST/
H A DMicrosoftMangle.cpp456 SourceRange Range);
637 SourceRange SR = VD->getSourceRange(); in mangleVariableEncoding()
1584 mangleType(T, SourceRange(), QMM_Escape); in mangleTemplateArg()
1807 mangleType(T, SourceRange(), QMM_Escape); in mangleTemplateArgValue()
1825 mangleType(T, SourceRange(), QMM_Escape); in mangleTemplateArgValue()
1836 mangleType(T, SourceRange(), QMM_Escape); in mangleTemplateArgValue()
1846 mangleType(T, SourceRange(), QMM_Escape); in mangleTemplateArgValue()
1871 mangleType(T, SourceRange(), QMM_Escape); in mangleTemplateArgValue()
2545 SourceRange Range; in mangleFunctionType()
3246 SourceRange Range) { in mangleType()
[all …]
/llvm-project-15.0.7/clang/include/clang/Edit/
H A DCommit.h95 bool insertFromRange(SourceLocation loc, SourceRange TokenRange,
102 bool insertWrap(StringRef before, SourceRange TokenRange, StringRef after) { in insertWrap()
106 bool remove(SourceRange TokenRange) { in remove()
110 bool replace(SourceRange TokenRange, StringRef text) { in replace()
114 bool replaceWithInner(SourceRange TokenRange, SourceRange TokenInnerRange) { in replaceWithInner()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DASTUtils.h31 bool rangeIsEntirelyWithinMacroArgument(SourceRange Range,
35 bool rangeContainsMacroExpansion(SourceRange Range, const SourceManager *SM);
39 bool rangeCanBeFixed(SourceRange Range, const SourceManager *SM);

12345678910>>...18