Home
last modified time | relevance | path

Searched refs:OrigLoc (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Edit/
H A DCommit.cpp181 void Commit::addInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text, in addInsert() argument
188 data.OrigLoc = OrigLoc; in addInsert()
195 void Commit::addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, in addInsertFromRange() argument
203 data.OrigLoc = OrigLoc; in addInsertFromRange()
211 void Commit::addRemove(SourceLocation OrigLoc, in addRemove() argument
218 data.OrigLoc = OrigLoc; in addRemove()
282 bool Commit::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { in canInsertInOffset() argument
292 return Editor->canInsertInOffset(OrigLoc, Offs); in canInsertInOffset()
H A DEditedSource.cpp72 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { in canInsertInOffset() argument
79 if (SourceMgr.isMacroArgExpansion(OrigLoc)) { in canInsertInOffset()
82 deconstructMacroArgLoc(OrigLoc, ExpLoc, ArgUse); in canInsertInOffset()
109 bool EditedSource::commitInsert(SourceLocation OrigLoc, in commitInsert() argument
112 if (!canInsertInOffset(OrigLoc, Offs)) in commitInsert()
117 if (SourceMgr.isMacroArgExpansion(OrigLoc)) { in commitInsert()
120 deconstructMacroArgLoc(OrigLoc, ExpLoc, ArgUse); in commitInsert()
139 bool EditedSource::commitInsertFromRange(SourceLocation OrigLoc, in commitInsertFromRange() argument
194 return commitInsert(OrigLoc, Offs, StrVec, beforePreviousInsertions); in commitInsertFromRange()
197 void EditedSource::commitRemove(SourceLocation OrigLoc, in commitRemove() argument
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Edit/
H A DEditedSource.h84 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs);
95 bool commitInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text,
97 bool commitInsertFromRange(SourceLocation OrigLoc, FileOffset Offs,
100 void commitRemove(SourceLocation OrigLoc, FileOffset BeginOffs, unsigned Len);
H A DCommit.h40 SourceLocation OrigLoc; member
125 void addInsert(SourceLocation OrigLoc,
127 void addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs,
130 void addRemove(SourceLocation OrigLoc, FileOffset Offs, unsigned Len);
135 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs);
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateVariadic.cpp1250 TemplateArgumentLoc OrigLoc, SourceLocation &Ellipsis, in getTemplateArgumentPackExpansionPattern() argument
1252 const TemplateArgument &Argument = OrigLoc.getArgument(); in getTemplateArgumentPackExpansionPattern()
1258 TypeSourceInfo *ExpansionTSInfo = OrigLoc.getTypeSourceInfo(); in getTemplateArgumentPackExpansionPattern()
1291 Ellipsis = OrigLoc.getTemplateEllipsisLoc(); in getTemplateArgumentPackExpansionPattern()
1294 OrigLoc.getTemplateQualifierLoc(), in getTemplateArgumentPackExpansionPattern()
1295 OrigLoc.getTemplateNameLoc()); in getTemplateArgumentPackExpansionPattern()
H A DSemaDecl.cpp13260 QualType OrigTy, SourceLocation OrigLoc, in DiagNonTrivalCUnionDefaultInitializeVisitor()
13262 : OrigTy(OrigTy), OrigLoc(OrigLoc), UseContext(UseContext), S(S) {} in DiagNonTrivalCUnionDefaultInitializeVisitor()
13288 if (OrigLoc.isValid()) { in visitStruct()
13292 S.Diag(OrigLoc, diag::err_non_trivial_c_union_in_invalid_context) in visitStruct()
13295 OrigLoc = SourceLocation(); in visitStruct()
13314 SourceLocation OrigLoc; member
13325 SourceLocation OrigLoc, in DiagNonTrivalCUnionDestructedTypeVisitor()
13328 : OrigTy(OrigTy), OrigLoc(OrigLoc), UseContext(UseContext), S(S) {} in DiagNonTrivalCUnionDestructedTypeVisitor()
13354 if (OrigLoc.isValid()) { in visitStruct()
13358 S.Diag(OrigLoc, diag::err_non_trivial_c_union_in_invalid_context) in visitStruct()
[all …]
H A DSemaHLSL.cpp2506 SourceLocation OrigLoc = Arg->getExprLoc(); in CheckModifiableLValue() local
2507 if (Arg->IgnoreCasts()->isModifiableLvalue(S->Context, &OrigLoc) == in CheckModifiableLValue()
2510 S->Diag(OrigLoc, diag::error_hlsl_inout_lvalue) << Arg << 0; in CheckModifiableLValue()
H A DSemaExprObjC.cpp2471 Builder.AddFixItHint(FixItHint::CreateInsertion(Edit.OrigLoc, in applyCocoaAPICheck()
2477 FixItHint::CreateInsertionFromRange(Edit.OrigLoc, in applyCocoaAPICheck()
H A DSemaExpr.cpp13751 SourceLocation OrigLoc = Loc; in CheckForModifiableLvalue() local
13804 if (Loc != OrigLoc) in CheckForModifiableLvalue()
13805 Assign = SourceRange(OrigLoc, OrigLoc); in CheckForModifiableLvalue()
13865 if (Loc != OrigLoc) in CheckForModifiableLvalue()
13866 Assign = SourceRange(OrigLoc, OrigLoc); in CheckForModifiableLvalue()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseObjc.cpp3276 SourceLocation OrigLoc = Tok.getLocation(); in ParseLexedObjCMethodDefs() local
3285 Eof.setLocation(OrigLoc); in ParseLexedObjCMethodDefs()
3319 if (Tok.getLocation() != OrigLoc) { in ParseLexedObjCMethodDefs()
3326 OrigLoc)) in ParseLexedObjCMethodDefs()
3327 while (Tok.getLocation() != OrigLoc && Tok.isNot(tok::eof)) in ParseLexedObjCMethodDefs()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h14526 getTemplateArgumentPackExpansionPattern(TemplateArgumentLoc OrigLoc,