Searched refs:getLocation (Results 1 - 25 of 203) sorted by relevance

123456789

/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Sema/
H A DWeak.h35 inline SourceLocation getLocation() const { return loc; } function in class:clang::WeakInfo
39 return alias == RHS.getAlias() && loc == RHS.getLocation();
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/AST/
H A DCommentParser.cpp56 Pos.BufferStartLoc = Tok.getLocation();
263 Arg.getLocation(),
269 Arg.getLocation(),
279 Arg.getLocation(),
293 Args[ParsedArgs] = Argument(SourceRange(Arg.getLocation(),
312 PC = S.actOnParamCommandStart(Tok.getLocation(),
317 TPC = S.actOnTParamCommandStart(Tok.getLocation(),
322 BC = S.actOnBlockCommandStart(Tok.getLocation(),
407 IC = S.actOnInlineCommand(CommandTok.getLocation(),
410 ArgTok.getLocation(),
[all...]
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Parse/
H A DParsePragma.cpp87 Tok.getLocation());
95 SourceLocation WeakNameLoc = Tok.getLocation();
98 SourceLocation AliasNameLoc = Tok.getLocation();
109 SourceLocation RedefNameLoc = Tok.getLocation();
112 SourceLocation AliasNameLoc = Tok.getLocation();
137 SourceLocation Loc = Tok.getLocation();
164 SourceLocation NameLoc = Tok.getLocation();
191 SourceLocation VisLoc = VisTok.getLocation();
204 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen)
211 PP.Diag(Tok.getLocation(), dia
[all...]
H A DParseCXXInlineMethods.cpp234 Eof.setLocation(Tok.getLocation());
325 SourceLocation origLoc = Tok.getLocation();
356 Diag(Tok.getLocation(), diag::err_default_arg_unparsed);
362 Tok.getLocation()) &&
366 while (Tok.getLocation() != origLoc && Tok.isNot(tok::eof))
409 SourceLocation origLoc = Tok.getLocation();
430 Tok.getLocation()) &&
434 while (Tok.getLocation() != origLoc && Tok.isNot(tok::eof))
445 while (Tok.getLocation() != origLoc && Tok.isNot(tok::eof))
464 if (Tok.getLocation() !
[all...]
H A DParseAST.cpp51 if (Tok.getLocation().isInvalid()) {
57 Tok.getLocation().print(OS, PP.getSourceManager());
66 const char *Spelling = SM.getCharacterData(Tok.getLocation(), &Invalid);
H A DParseTemplate.cpp113 Diag(Tok.getLocation(), diag::err_expected_template);
277 Diag(Tok.getLocation(), diag::err_expected_less_after) << "template";
294 RAngleLoc = Tok.getLocation();
295 Tok.setLocation(Tok.getLocation().getLocWithOffset(1));
299 Diag(Tok.getLocation(), diag::err_expected_greater);
336 Diag(Tok.getLocation(), diag::err_expected_comma_greater);
476 Diag(Tok.getLocation(), diag::err_expected_ident);
530 Diag(Tok.getLocation(), diag::err_class_on_template_template_param)
531 << (Replace ? FixItHint::CreateReplacement(Tok.getLocation(), "class")
532 : FixItHint::CreateInsertion(Tok.getLocation(), "clas
[all...]
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/AST/
H A DCommentBriefParser.h39 SourceLocation Loc = Tok.getLocation();
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Rewrite/Frontend/
H A DRewriteMacros.cpp115 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation());
134 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//");
140 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//");
155 unsigned RawOffs = SM.getFileOffset(RawTok.getLocation());
177 RawOffs = SM.getFileOffset(RawTok.getLocation());
200 PPLoc = SM.getExpansionLoc(PPTok.getLocation());
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Sema/
H A DSemaOpenMP.cpp82 Diag(Lookup.getFoundDecl()->getLocation(), diag::note_declared_at);
93 Diag(VD->getLocation(), diag::note_forward_declaration) << VD;
115 Diag(VD->getLocation(), diag::note_forward_declaration) << VD;
150 SourceLocation ILoc = (*I)->getLocation();
164 Diag(VD->getLocation(), diag::note_forward_declaration) << VD;
171 Diag(VD->getLocation(), diag::note_forward_declaration) << VD;
H A DSemaObjCProperty.cpp99 S.Diag(property->getLocation(),
307 Loc = Tok.getLocation();
353 Diag(prevDecl->getLocation(), diag::note_property_declare);
384 Diag(CDecl->getLocation(), diag::err_continuation_class);
428 Diag(PIDecl->getLocation(), diag::note_property_declare);
443 Diag(PIDecl->getLocation(), diag::note_property_declare);
489 Diag(PIDecl->getLocation(), diag::note_property_declare);
542 Diag(PDecl->getLocation(), diag::err_duplicate_property);
543 Diag(prevDecl->getLocation(), diag::note_property_declare);
656 S.Diag(ivar->getLocation(), dia
[all...]
H A DSemaDecl.cpp248 Diag(FirstDecl->getLocation(), diag::note_previous_decl)
280 (*Res)->getLocation().getRawEncoding() <
281 IIDecl->getLocation().getRawEncoding())
442 Diag(Result->getLocation(), diag::note_previous_decl)
466 Diag(TplDecl->getLocation(), diag::note_template_decl_here)
559 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type)
597 BuildCXXNestedNameSpecifier(S, *Name, NameLoc, NextToken.getLocation(),
707 Diag(FirstDecl->getLocation(), diag::note_previous_decl)
1368 Diag(D->getLocation(), DiagID) << D->getDeclName() << Hint;
1376 S.Diag(L->getLocation(), dia
[all...]
H A DSemaDeclObjC.cpp95 SourceLocation loc = method->getLocation();
140 Diag(NewMethod->getLocation(),
146 Diag(NewMethod->getLocation(),
153 Diag(Overridden->getLocation(),
158 Diag(Overridden->getLocation(),
164 Diag(NewMethod->getLocation(),
166 Diag(Overridden->getLocation(), diag::note_previous_decl)
171 Diag(NewMethod->getLocation(),
173 Diag(Overridden->getLocation(), diag::note_previous_decl)
185 Diag(newDecl->getLocation(),
[all...]
H A DSemaDeclCXX.cpp252 if (RequireCompleteType(Param->getLocation(), Param->getType(),
266 InitializationKind Kind = InitializationKind::CreateCopy(Param->getLocation(),
390 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc)
391 << SourceRange((*Toks)[1].getLocation(),
392 Toks->back().getLocation());
396 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc)
477 Diag(NewParam->getLocation(), DiagDefaultParamID)
490 Diag(OldParam->getLocation(), diag::note_previous_definition)
505 Diag(NewParam->getLocation(),
508 Diag(Old->getLocation(), dia
[all...]
H A DSemaTemplateInstantiateDecl.cpp71 S.AddAlignedAttr(Aligned->getLocation(), New, Result.takeAs<Expr>(),
75 TemplateArgs, Aligned->getLocation(),
78 S.AddAlignedAttr(Aligned->getLocation(), New, Result,
104 SourceLocation EllipsisLoc = Aligned->getLocation();
160 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(),
192 D->getLocation(), D->getDeclName());
198 SemaRef.MarkDeclarationsReferencedInType(D->getLocation(), DI->getType());
221 D->getLocation(), D->getIdentifier(), DI);
224 D->getLocation(), D->getIdentifier(), DI);
240 NamedDecl *InstPrev = SemaRef.FindInstantiatedDecl(D->getLocation(), Pre
[all...]
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Frontend/
H A DTextDiagnosticBuffer.cpp33 Notes.push_back(std::make_pair(Info.getLocation(), Buf.str()));
36 Warnings.push_back(std::make_pair(Info.getLocation(), Buf.str()));
40 Errors.push_back(std::make_pair(Info.getLocation(), Buf.str()));
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Lex/
H A DPreprocessorLexer.cpp48 PP->Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename);
H A DTokenLexer.cpp36 ExpandLocStart = Tok.getLocation();
50 assert(Tokens[0].getLocation().isValid());
51 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) &&
59 MacroDefStart = SM.getExpansionLoc(Tokens[0].getLocation());
154 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma);
197 getExpansionLocForMacroDefLoc(CurTok.getLocation());
199 getExpansionLocForMacroDefLoc(Tokens[i+1].getLocation());
288 updateLocForMacroArgTokens(CurTok.getLocation(),
322 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma);
338 updateLocForMacroArgTokens(CurTok.getLocation(),
[all...]
H A DMacroInfo.cpp44 SourceLocation macroStart = firstToken.getLocation();
45 SourceLocation macroEnd = lastToken.getLocation();
141 UndefLoc = UndefMD->getLocation();
157 if (Def.getLocation().isInvalid() || // For macros defined on the command line.
158 SM.isBeforeInTranslationUnit(Def.getLocation(), L))
H A DPPDirectives.cpp223 Hint = FixItHint::CreateInsertion(Tmp.getLocation(),"//");
350 CurPPLexer->pushConditionalLevel(Tok.getLocation(), /*wasskipping*/true,
371 Callbacks->Endif(Tok.getLocation(), CondInfo.IfLoc);
398 Callbacks->Else(Tok.getLocation(), CondInfo.IfLoc);
431 Callbacks->Elif(Tok.getLocation(),
451 Callbacks->SourceRangeSkipped(SourceRange(BeginLoc, Tok.getLocation()));
709 return HandleIncludeDirective(SavedHash.getLocation(), Result);
712 return HandleIncludeMacrosDirective(SavedHash.getLocation(), Result);
734 return HandleImportDirective(SavedHash.getLocation(), Result);
736 return HandleIncludeNextDirective(SavedHash.getLocation(), Resul
[all...]
H A DPPMacroExpansion.cpp226 Identifier.getLocation(),/*Args=*/0);
238 SourceLocation ExpansionEnd = Identifier.getLocation();
268 SourceLocation ExpandLoc = Identifier.getLocation();
361 SourceMgr.createExpansionLoc(Identifier.getLocation(), ExpandLoc,
427 SourceLocation ArgStartLoc = Tok.getLocation();
456 MacroEnd = Tok.getLocation();
504 ArgStartLoc = ArgTokens[ArgTokenStart].getLocation();
527 EOFTok.setLocation(Tok.getLocation());
549 EOFTok.setLocation(Tok.getLocation());
595 SourceLocation EndLoc = Tok.getLocation();
[all...]
H A DPragma.cpp176 SourceLocation PragmaLoc = Tok.getLocation();
219 SourceLocation RParenLoc = Tok.getLocation();
280 SourceLocation TokLoc = TmpTok.getLocation();
300 SourceLocation PragmaLoc = Tok.getLocation();
424 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation());
432 Callbacks->FileChanged(SysHeaderTok.getLocation(),
438 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine()+1,
461 GetIncludeFilenameSpelling(FilenameTok.getLocation(), Filename);
505 Diag(PragmaTok.getLocation(), diag::err_pragma_push_pop_macro_malformed)
513 Diag(PragmaTok.getLocation(), dia
[all...]
H A DPPCaching.cpp107 if (AnnotBegin->getLocation() == Tok.getLocation()) {
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DAnalyzerStatsChecker.cpp50 const LocationContext *LC = GraphRoot->getLocation().getLocationContext();
57 const ProgramPoint &P = I->getLocation();
93 PresumedLoc Loc = SM.getPresumedLoc(D->getLocation());
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Rewrite/Core/
H A DTokenRewriter.cpp61 TokenAtLoc.find(I->getLocation());
73 bool InsertSuccess = TokenAtLoc.insert(std::make_pair(T.getLocation(),
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransProtectedScope.cpp120 isInRange(I->getLocation(), BodyRange)) {
133 SourceLocation ErrLoc = DiagI->getLocation();
151 if (isInRange(Diag.getLocation(), info.Range)) {
158 Pass.TA.clearDiagnostic(Diag.getID(), Diag.getLocation());
183 if (isInRange(DRE->getDecl()->getLocation(), info.Range) &&
184 !isInRange(DRE->getLocation(), info.Range))

Completed in 307 milliseconds

123456789