Home
last modified time | relevance | path

Searched refs:getLocation (Results 1 – 25 of 866) sorted by relevance

12345678910>>...35

/external/llvm-project/clang/unittests/Lex/
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()
121 toks[0].getLocation(), toks[2].getLocation())); in TEST_F()
[all …]
/external/clang/unittests/Lex/
DPPConditionalDirectiveRecordTest.cpp121 SourceRange(toks[0].getLocation(), toks[1].getLocation()))); in TEST_F()
123 SourceRange(toks[0].getLocation(), toks[2].getLocation()))); in TEST_F()
125 SourceRange(toks[3].getLocation(), toks[4].getLocation()))); in TEST_F()
127 SourceRange(toks[1].getLocation(), toks[5].getLocation()))); in TEST_F()
129 SourceRange(toks[2].getLocation(), toks[6].getLocation()))); in TEST_F()
131 SourceRange(toks[2].getLocation(), toks[5].getLocation()))); in TEST_F()
133 SourceRange(toks[0].getLocation(), toks[6].getLocation()))); in TEST_F()
135 SourceRange(toks[2].getLocation(), toks[8].getLocation()))); in TEST_F()
137 SourceRange(toks[0].getLocation(), toks[9].getLocation()))); in TEST_F()
140 toks[0].getLocation(), toks[2].getLocation())); in TEST_F()
[all …]
/external/llvm-project/clang/lib/Parse/
DParsePragma.cpp108 PP.Diag(Tok.getLocation(), diag::warn_pragma_fp_ignored) in HandlePragma()
120 Toks[0].setLocation(Tok.getLocation()); in HandlePragma()
121 Toks[0].setAnnotationEndLoc(Tok.getLocation()); in HandlePragma()
576 SourceLocation PragmaLoc = Tok.getLocation(); in HandlePragmaPack()
605 Actions.ActOnPragmaOptionsAlign(Kind, Tok.getLocation()); in HandlePragmaAlign()
615 Actions.ActOnPragmaDump(getCurScope(), Tok.getLocation(), II); in HandlePragmaDump()
623 Tok.getLocation()); in HandlePragmaWeak()
631 SourceLocation WeakNameLoc = Tok.getLocation(); in HandlePragmaWeakAlias()
634 SourceLocation AliasNameLoc = Tok.getLocation(); in HandlePragmaWeakAlias()
645 SourceLocation RedefNameLoc = Tok.getLocation(); in HandlePragmaRedefineExtname()
[all …]
/external/clang/lib/Parse/
DParsePragma.cpp382 Actions.ActOnPragmaDump(getCurScope(), Tok.getLocation(), II); in HandlePragmaDump()
390 Tok.getLocation()); in HandlePragmaWeak()
398 SourceLocation WeakNameLoc = Tok.getLocation(); in HandlePragmaWeakAlias()
401 SourceLocation AliasNameLoc = Tok.getLocation(); in HandlePragmaWeakAlias()
412 SourceLocation RedefNameLoc = Tok.getLocation(); in HandlePragmaRedefineExtname()
415 SourceLocation AliasNameLoc = Tok.getLocation(); in HandlePragmaRedefineExtname()
440 SourceLocation Loc = Tok.getLocation(); in HandlePragmaCaptured()
467 SourceLocation NameLoc = Tok.getLocation(); in HandlePragmaOpenCLExtension()
737 Toks[0].setLocation(Tok.getLocation()); in HandlePragmaMSInitSeg()
800 Actions.Context, Info->PragmaName.getLocation(), PragmaNameInfo); in HandlePragmaLoopHint()
[all …]
/external/llvm-project/clang/lib/AST/
DCommentParser.cpp64 Pos.BufferStartLoc = Tok.getLocation(); in setupBuffer()
271 Arg.getLocation(), in parseParamCommandArgs()
277 Arg.getLocation(), in parseParamCommandArgs()
287 Arg.getLocation(), in parseTParamCommandArgs()
301 Args[ParsedArgs] = Argument(SourceRange(Arg.getLocation(), in parseBlockCommandArgs()
320 PC = S.actOnParamCommandStart(Tok.getLocation(), in parseBlockCommand()
325 TPC = S.actOnTParamCommandStart(Tok.getLocation(), in parseBlockCommand()
330 BC = S.actOnBlockCommandStart(Tok.getLocation(), in parseBlockCommand()
415 IC = S.actOnInlineCommand(CommandTok.getLocation(), in parseInlineCommand()
418 ArgTok.getLocation(), in parseInlineCommand()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DRedundantDeclarationCheck.cpp50 if (!Prev->getLocation().isValid()) in check()
52 if (Prev->getLocation() == D->getLocation()) in check()
55 (D->getLocation().isMacroID() || Prev->getLocation().isMacroID())) in check()
65 !SM.isInMainFile(D->getLocation()) && in check()
66 !SM.isWrittenInSameFile(Prev->getLocation(), D->getLocation()); in check()
82 auto Diag = diag(D->getLocation(), "redundant %0 declaration") << D; in check()
87 diag(Prev->getLocation(), "previously declared here", DiagnosticIDs::Note); in check()
DRedundantAccessSpecifiersCheck.cpp38 if (ASDecl->getLocation().isMacroID()) { in check()
51 diag(ASDecl->getLocation(), in check()
63 if (LastASDecl->getLocation().isMacroID()) { in check()
68 diag(ASDecl->getLocation(), in check()
72 diag(LastASDecl->getLocation(), "previously declared here", in check()
/external/clang/lib/AST/
DCommentParser.cpp65 Pos.BufferStartLoc = Tok.getLocation(); in setupBuffer()
272 Arg.getLocation(), in parseParamCommandArgs()
278 Arg.getLocation(), in parseParamCommandArgs()
288 Arg.getLocation(), in parseTParamCommandArgs()
302 Args[ParsedArgs] = Argument(SourceRange(Arg.getLocation(), in parseBlockCommandArgs()
321 PC = S.actOnParamCommandStart(Tok.getLocation(), in parseBlockCommand()
326 TPC = S.actOnTParamCommandStart(Tok.getLocation(), in parseBlockCommand()
331 BC = S.actOnBlockCommandStart(Tok.getLocation(), in parseBlockCommand()
416 IC = S.actOnInlineCommand(CommandTok.getLocation(), in parseInlineCommand()
419 ArgTok.getLocation(), in parseInlineCommand()
[all …]
/external/llvm-project/clang/tools/libclang/
DCXStoredDiagnostic.cpp40 CXSourceLocation CXStoredDiagnostic::getLocation() const { in getLocation() function in CXStoredDiagnostic
41 if (Diag.getLocation().isInvalid()) in getLocation()
44 return translateSourceLocation(Diag.getLocation().getManager(), in getLocation()
45 LangOpts, Diag.getLocation()); in getLocation()
80 if (Diag.getLocation().isInvalid()) in getNumRanges()
87 assert(Diag.getLocation().isValid()); in getRange()
88 return translateSourceRange(Diag.getLocation().getManager(), in getRange()
94 if (Diag.getLocation().isInvalid()) in getNumFixIts()
106 *ReplacementRange = translateSourceRange(Diag.getLocation().getManager(), in getFixIt()
/external/clang/tools/libclang/
DCXStoredDiagnostic.cpp44 CXSourceLocation CXStoredDiagnostic::getLocation() const { in getLocation() function in CXStoredDiagnostic
45 if (Diag.getLocation().isInvalid()) in getLocation()
48 return translateSourceLocation(Diag.getLocation().getManager(), in getLocation()
49 LangOpts, Diag.getLocation()); in getLocation()
84 if (Diag.getLocation().isInvalid()) in getNumRanges()
91 assert(Diag.getLocation().isValid()); in getRange()
92 return translateSourceRange(Diag.getLocation().getManager(), in getRange()
98 if (Diag.getLocation().isInvalid()) in getNumFixIts()
110 *ReplacementRange = translateSourceRange(Diag.getLocation().getManager(), in getFixIt()
/external/clang/lib/Sema/
DSemaObjCProperty.cpp100 S.Diag(property->getLocation(), in checkPropertyDeclWithOwnership()
334 Loc = Tok.getLocation(); in LocPropertyAttribute()
404 S.Diag(NewProperty->getLocation(), diag::warn_property_attribute) in checkAtomicPropertyMismatch()
407 S.Diag(OldProperty->getLocation(), diag::note_property_declare); in checkAtomicPropertyMismatch()
431 Diag(CDecl->getLocation(), diag::err_continuation_class); in HandlePropertyInClassExtension()
446 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
468 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
478 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
494 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
508 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
[all …]
DSemaDecl.cpp396 (*Res)->getLocation().getRawEncoding() < in getTypeName()
397 IIDecl->getLocation().getRawEncoding()) in getTypeName()
431 MarkAnyDeclReferenced(TD->getLocation(), TD, /*OdrUse=*/false); in getTypeName()
661 Diag(TplDecl->getLocation(), diag::note_template_decl_here) in DiagnoseUnknownTypeName()
747 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type) in isTagTypeWithMissingTag()
783 BuildCXXNestedNameSpecifier(S, *Name, NameLoc, NextToken.getLocation(), in ClassifyName()
1017 MarkAnyDeclReferenced(Type->getLocation(), Type, /*OdrUse=*/false); in ClassifyName()
1440 if (FD->isInlined() && !isMainFileLoc(*this, FD->getLocation())) in ShouldWarnIfUnusedFileScopedDecl()
1451 if (!isMainFileLoc(*this, VD->getLocation())) in ShouldWarnIfUnusedFileScopedDecl()
1461 if (VD->isInline() && !isMainFileLoc(*this, VD->getLocation())) in ShouldWarnIfUnusedFileScopedDecl()
[all …]
DSemaDeclObjC.cpp96 SourceLocation loc = method->getLocation(); in checkInitMethod()
138 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
144 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
151 Diag(Overridden->getLocation(), in CheckObjCMethodOverride()
156 Diag(Overridden->getLocation(), in CheckObjCMethodOverride()
162 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
164 Diag(Overridden->getLocation(), diag::note_previous_decl) in CheckObjCMethodOverride()
169 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
171 Diag(Overridden->getLocation(), diag::note_previous_decl) in CheckObjCMethodOverride()
183 Diag(newDecl->getLocation(), in CheckObjCMethodOverride()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseOverrideCheck.cpp61 if (Sources.isBeforeInTranslationUnit(Range.getEnd(), Tok.getLocation())) in ParseTokens()
69 Sources.getCharacterData(Tok.getLocation()), Tok.getLength())); in ParseTokens()
79 return StringRef(Sources.getCharacterData(Tok.getLocation()), in GetText()
93 if (Method->isImplicit() || Method->getLocation().isMacroID() || in check()
126 auto Diag = diag(Method->getLocation(), Message) in check()
145 SourceLocation MethodLoc = Method->getLocation(); in check()
149 !Sources.isBeforeInTranslationUnit(T.getLocation(), MethodLoc)) { in check()
150 InsertLoc = T.getLocation(); in check()
192 InsertLoc = Tokens[Tokens.size() - 2].getLocation(); in check()
197 InsertLoc = Tokens.back().getLocation(); in check()
[all …]
DUseTrailingReturnTypeCheck.cpp148 StringRef(SM.getCharacterData(T.getLocation()), T.getLength())); in findTrailingReturnTypeSourceLocation()
217 SourceLocation BeginNameF = expandIfMacroId(F.getLocation(), SM); in classifyTokensBeforeFunctionName()
228 SM.isBeforeInTranslationUnit(T.getLocation(), BeginNameF)) { in classifyTokensBeforeFunctionName()
231 StringRef(SM.getCharacterData(T.getLocation()), T.getLength())); in classifyTokensBeforeFunctionName()
237 diag(F.getLocation(), Message); in classifyTokensBeforeFunctionName()
249 diag(F.getLocation(), Message); in classifyTokensBeforeFunctionName()
278 diag(F.getLocation(), Message); in findReturnTypeAndCVSourceRange()
293 SourceLocation BeginNameF = expandIfMacroId(F.getLocation(), SM); in findReturnTypeAndCVSourceRange()
305 SM.isBeforeInTranslationUnit(T.getLocation(), BeginNameF)) { in findReturnTypeAndCVSourceRange()
306 LastTLoc = T.getLocation(); in findReturnTypeAndCVSourceRange()
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaObjCProperty.cpp97 S.Diag(property->getLocation(), in checkPropertyDeclWithOwnership()
335 Loc = Tok.getLocation(); in LocPropertyAttribute()
405 S.Diag(NewProperty->getLocation(), diag::warn_property_attribute) in checkAtomicPropertyMismatch()
408 S.Diag(OldProperty->getLocation(), diag::note_property_declare); in checkAtomicPropertyMismatch()
435 Diag(CDecl->getLocation(), diag::err_continuation_class); in HandlePropertyInClassExtension()
451 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
473 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
483 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
499 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
513 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
[all …]
DSemaDeclObjC.cpp96 SourceLocation loc = method->getLocation(); in checkInitMethod()
117 S.Diag(NewD->getLocation(), diag::warn_overriding_method_missing_noescape); in diagnoseNoescape()
118 S.Diag(OldD->getLocation(), diag::note_overridden_marked_noescape); in diagnoseNoescape()
131 S.Diag(CD->getLocation(), diag::note_cat_conform_to_noescape_prot) in diagnoseNoescape()
162 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
168 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
175 Diag(Overridden->getLocation(), in CheckObjCMethodOverride()
180 Diag(Overridden->getLocation(), in CheckObjCMethodOverride()
186 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
191 Diag(Overridden->getLocation(), diag::note_previous_decl) << "method"; in CheckObjCMethodOverride()
[all …]
DSemaDecl.cpp440 (*Res)->getLocation().getRawEncoding() < in getTypeName()
441 IIDecl->getLocation().getRawEncoding()) in getTypeName()
486 MarkAnyDeclReferenced(TD->getLocation(), TD, /*OdrUse=*/false); in getTypeName()
827 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type) in isTagTypeWithMissingTag()
1133 MarkAnyDeclReferenced(Type->getLocation(), Type, /*OdrUse=*/false); in ClassifyName()
1595 Diag(New->getLocation(), diag::err_mismatched_owning_module) in CheckRedeclarationModuleOwnership()
1601 Diag(Old->getLocation(), diag::note_previous_declaration); in CheckRedeclarationModuleOwnership()
1702 if (FD->isInlined() && !isMainFileLoc(*this, FD->getLocation())) in ShouldWarnIfUnusedFileScopedDecl()
1713 if (!isMainFileLoc(*this, VD->getLocation())) in ShouldWarnIfUnusedFileScopedDecl()
1727 if (VD->isInline() && !isMainFileLoc(*this, VD->getLocation())) in ShouldWarnIfUnusedFileScopedDecl()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DProblem.java72 …return getLocation().map(l -> l.getBegin().getRange().map(r -> r.begin.toString()).orElse("(line ?… in getVerboseMessage()
78 public Optional<TokenRange> getLocation() { in getLocation() method in Problem
93 …final Optional<Position> aBegin= a.getLocation().flatMap(l -> l.getBegin().getRange().map(r -> r.b…
94 …final Optional<Position> bBegin = b.getLocation().flatMap(l -> l.getBegin().getRange().map(r -> r.…
99 if (a.getLocation().isPresent() || b.getLocation().isPresent()) {
100 if (a.getLocation().isPresent()) {
/external/llvm-project/clang/lib/Lex/
DPPDirectives.cpp86 Res.setBegin(Tmp.getLocation()); in DiscardUntilEndOfDirective()
91 Res.setEnd(Tmp.getLocation()); in DiscardUntilEndOfDirective()
277 SourceLocation MacroNameLoc = MacroNameTok.getLocation(); in CheckMacroName()
358 return Tmp.getLocation(); in CheckEndOfDirective()
367 Hint = FixItHint::CreateInsertion(Tmp.getLocation(),"//"); in CheckEndOfDirective()
527 CurPPLexer->pushConditionalLevel(Tok.getLocation(), /*wasskipping*/true, in SkipExcludedConditionalBlock()
548 Callbacks->Endif(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
575 Callbacks->Else(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
601 Tok.getLocation(), DER.ExprRange, in SkipExcludedConditionalBlock()
631 Tok.getLocation()); in SkipExcludedConditionalBlock()
[all …]
DPPMacroExpansion.cpp234 IsSystemMacro &= SourceMgr.isInSystemHeader(DMD->getLocation()); in updateModuleMacroInfo()
482 Callbacks->MacroExpands(Identifier, M, Identifier.getLocation(), in HandleMacroExpandedIdentifier()
495 SourceLocation ExpansionEnd = Identifier.getLocation(); in HandleMacroExpandedIdentifier()
523 SourceLocation ExpandLoc = Identifier.getLocation(); in HandleMacroExpandedIdentifier()
599 SourceMgr.createExpansionLoc(Identifier.getLocation(), ExpandLoc, in HandleMacroExpandedIdentifier()
713 SourceRange(ArgStartIterator->getLocation(), in GenerateNewArgTokens()
714 PP.getLocForEndOfToken(ClosingBrace->getLocation()))); in GenerateNewArgTokens()
722 TempToken.setLocation(ArgStartIterator->getLocation()); in GenerateNewArgTokens()
732 SourceLocation Loc = PP.getLocForEndOfToken((I - 1)->getLocation()); in GenerateNewArgTokens()
738 ParenHints.push_back(SourceRange(ArgStartIterator->getLocation(), in GenerateNewArgTokens()
[all …]
DTokenLexer.cpp48 ExpandLocStart = Tok.getLocation(); in Init()
64 assert(Tokens[0].getLocation().isValid()); in Init()
65 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) && in Init()
73 MacroDefStart = SM.getExpansionLoc(Tokens[0].getLocation()); in Init()
165 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in MaybeRemoveCommaBeforeVaArgs()
271 VCtx.sawVAOptFollowedByOpeningParens(CurTok.getLocation(), in ExpandFunctionArguments()
291 VCtx.sawOpeningParen(Tokens[I].getLocation()); in ExpandFunctionArguments()
323 /*ClosingParenLoc*/ Tokens[I].getLocation()); in ExpandFunctionArguments()
382 getExpansionLocForMacroDefLoc(CurTok.getLocation()); in ExpandFunctionArguments()
384 getExpansionLocForMacroDefLoc(Tokens[I+1].getLocation()); in ExpandFunctionArguments()
[all …]
DPPExpressions.cpp104 SourceLocation beginLoc(PeekTok.getLocation()); in EvaluateDefined()
114 LParenLoc = PeekTok.getLocation(); in EvaluateDefined()
146 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined()
150 PP.Diag(PeekTok.getLocation(), diag::err_pp_expected_after) in EvaluateDefined()
157 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined()
160 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined()
212 SourceRange(beginLoc, PeekTok.getLocation())); in EvaluateDefined()
262 PeekTok.getLocation())) { in EvaluateValue()
277 Result.setRange(PeekTok.getLocation()); in EvaluateValue()
298 NumericLiteralParser Literal(Spelling, PeekTok.getLocation(), in EvaluateValue()
[all …]
/external/clang/lib/Lex/
DTokenLexer.cpp36 ExpandLocStart = Tok.getLocation(); in Init()
51 assert(Tokens[0].getLocation().isValid()); in Init()
52 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) && in Init()
60 MacroDefStart = SM.getExpansionLoc(Tokens[0].getLocation()); in Init()
149 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in MaybeRemoveCommaBeforeVaArgs()
194 getExpansionLocForMacroDefLoc(CurTok.getLocation()); in ExpandFunctionArguments()
196 getExpansionLocForMacroDefLoc(Tokens[i+1].getLocation()); in ExpandFunctionArguments()
299 updateLocForMacroArgTokens(CurTok.getLocation(), in ExpandFunctionArguments()
329 PP.Diag(ResultToks.pop_back_val().getLocation(), diag::ext_paste_comma); in ExpandFunctionArguments()
344 updateLocForMacroArgTokens(CurTok.getLocation(), in ExpandFunctionArguments()
[all …]
DPPDirectives.cpp267 SourceLocation MacroNameLoc = MacroNameTok.getLocation(); in CheckMacroName()
352 Hint = FixItHint::CreateInsertion(Tmp.getLocation(),"//"); in CheckEndOfDirective()
477 CurPPLexer->pushConditionalLevel(Tok.getLocation(), /*wasskipping*/true, in SkipExcludedConditionalBlock()
498 Callbacks->Endif(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
525 Callbacks->Else(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
551 Callbacks->Elif(Tok.getLocation(), in SkipExcludedConditionalBlock()
576 Callbacks->SourceRangeSkipped(SourceRange(BeginLoc, Tok.getLocation())); in SkipExcludedConditionalBlock()
992 return HandleIncludeDirective(SavedHash.getLocation(), Result); in HandleDirective()
995 return HandleIncludeMacrosDirective(SavedHash.getLocation(), Result); in HandleDirective()
1013 return HandlePragmaDirective(SavedHash.getLocation(), PIK_HashPragma); in HandleDirective()
[all …]

12345678910>>...35