/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/ |
D | com_github_javaparser_utils_PositionUtils.txt | 12 Line 71) signum(a.getBegin().line - b.getBegin().line) ==> java.lang.Integer.signum(int) 13 Line 71) a.getBegin() ==> com.github.javaparser.ast.Node.getBegin() 14 Line 71) b.getBegin() ==> com.github.javaparser.ast.Node.getBegin() 15 Line 73) signum(a.getBegin().column - b.getBegin().column) ==> java.lang.Integer.signum(int) 16 Line 73) a.getBegin() ==> com.github.javaparser.ast.Node.getBegin() 17 Line 73) b.getBegin() ==> com.github.javaparser.ast.Node.getBegin() 24 …94) beginNodeWithoutConsideringAnnotations(node).getBegin() ==> com.github.javaparser.ast.Node.get… 26 …99) beginNodeWithoutConsideringAnnotations(node).getBegin() ==> com.github.javaparser.ast.Node.get… 35 Line 126) contained.getBegin() ==> com.github.javaparser.ast.Node.getBegin() 36 Line 127) contained.getBegin() ==> com.github.javaparser.ast.Node.getBegin() [all …]
|
D | com_github_javaparser_ast_comments_CommentsCollection.txt | 19 Line 73) c.getBegin() ==> com.github.javaparser.ast.Node.getBegin() 20 Line 73) comment.getBegin() ==> com.github.javaparser.ast.Node.getBegin() 21 Line 74) c.getBegin() ==> com.github.javaparser.ast.Node.getBegin() 22 Line 74) comment.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
|
D | com_github_javaparser_CommentsInserter.txt | 22 Line 116) comment.getBegin() ==> com.github.javaparser.ast.Node.getBegin() 37 Line 166) node.getBegin() ==> com.github.javaparser.ast.Node.getBegin() 38 Line 166) lineComment.getBegin() ==> com.github.javaparser.ast.Node.getBegin() 49 Line 195) b.getBegin() ==> com.github.javaparser.ast.Node.getBegin()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/utils/ |
D | PositionUtils.java | 71 int signLine = signum( a.getBegin().line - b.getBegin().line ); in compare() 73 return signum(a.getBegin().column - b.getBegin().column); in compare() 94 return beginNodeWithoutConsideringAnnotations(node).getBegin().line; in beginLineWithoutConsideringAnnotation() 99 return beginNodeWithoutConsideringAnnotations(node).getBegin().column; in beginColumnWithoutConsideringAnnotation() 126 if (bl>contained.getBegin().line) return false; in nodeContains() 127 if (bl==contained.getBegin().line && bc>contained.getBegin().column) return false; in nodeContains()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/ |
D | com_github_javaparser_symbolsolver_SourceFileInfoExtractor.txt | 31 …Line 140) out.println(" Line " + node.getBegin().get().line + ") " + node + " ==> " + toString((M… 32 Line 140) node.getBegin().get() ==> java.util.Optional.get() 33 Line 140) node.getBegin() ==> com.github.javaparser.ast.nodeTypes.NodeWithRange.getBegin() 40 …Line 152) System.err.println("Error resolving call at L" + node.getBegin().get().line + ": " + nod… 41 Line 152) node.getBegin().get() ==> java.util.Optional.get() 42 Line 152) node.getBegin() ==> com.github.javaparser.ast.nodeTypes.NodeWithRange.getBegin() 48 …Line 170) nodes.sort((n1, n2) -> n1.getBegin().get().compareTo(n2.getBegin().get())) ==> java.util… 49 …Line 170) n1.getBegin().get().compareTo(n2.getBegin().get()) ==> com.github.javaparser.Position.co… 50 Line 170) n1.getBegin().get() ==> java.util.Optional.get() 51 Line 170) n1.getBegin() ==> com.github.javaparser.ast.nodeTypes.NodeWithRange.getBegin() [all …]
|
/external/llvm-project/clang/lib/Tooling/Refactoring/ |
D | ASTSelection.cpp | 30 ? CharSourceRange::getCharRange(R.getBegin(), LocAfterEnd) in getLexicalDeclRange() 42 SelectionBegin(Selection.getBegin()), in ASTSelectionFinder() 43 SelectionEnd(Selection.getBegin() == Selection.getEnd() in ASTSelectionFinder() 87 if (DeclRange.getBegin().isMacroID() && !DeclRange.getEnd().isMacroID()) in TraverseDecl() 90 FileLoc = SM.getSpellingLoc(DeclRange.getBegin()); in TraverseDecl() 144 if (!SourceLocation::isPairOfFileLocations(Range.getBegin(), End)) in selectionKindFor() 148 if (SM.isPointWithin(SelectionBegin, Range.getBegin(), End)) in selectionKindFor() 152 bool HasStart = SM.isPointWithin(SelectionBegin, Range.getBegin(), End); in selectionKindFor() 153 bool HasEnd = SM.isPointWithin(SelectionEnd, Range.getBegin(), End); in selectionKindFor() 156 if (SM.isPointWithin(Range.getBegin(), SelectionBegin, SelectionEnd) && in selectionKindFor() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | LambdaFunctionNameCheck.h | 28 if (L.getBegin() == R.getBegin()) { in operator() 31 return L.getBegin() < R.getBegin(); in operator()
|
/external/llvm-project/clang/lib/Tooling/Transformer/ |
D | SourceCode.cpp | 50 return CharSourceRange::getTokenRange(Range.getBegin(), Tok.getLocation()); in maybeExtendRange() 59 if (Range.getBegin().isMacroID() || Range.getEnd().isMacroID()) in validateEditRange() 63 if (SM.isInSystemHeader(Range.getBegin()) || in validateEditRange() 68 std::pair<FileID, unsigned> BeginInfo = SM.getDecomposedLoc(Range.getBegin()); in validateEditRange() 328 if (SM.isBeforeInTranslationUnit(T->getBeginLoc(), Range.getBegin())) in getAssociatedRange() 332 if (SM.isBeforeInTranslationUnit(T->getBeginLoc(), Range.getBegin())) in getAssociatedRange() 354 Range.getBegin()) && in getAssociatedRange() 367 !SM.isBeforeInTranslationUnit(Attr->getLocation(), Range.getBegin())) in getAssociatedRange() 375 SM.getBufferData(SM.getFileID(Range.getBegin()), &Invalid); in getAssociatedRange() 379 Source.substr(0, SM.getFileOffset(Range.getBegin())); in getAssociatedRange() [all …]
|
/external/clang/lib/Sema/ |
D | SemaCast.cpp | 331 = (CT == CT_CStyle)? InitializationKind::CreateCStyleCast(range.getBegin(), in tryDiagnoseOverloadedCast() 373 S.Diag(range.getBegin(), msg) in tryDiagnoseOverloadedCast() 391 S.Diag(opRange.getBegin(), msg) << castType in diagnoseBadCast() 596 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ref_or_ptr) in CheckDynamicCast() 606 if (Self.RequireCompleteType(OpRange.getBegin(), DestPointee, in CheckDynamicCast() 613 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast() 629 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ptr) in CheckDynamicCast() 636 Self.Diag(OpRange.getBegin(), diag::err_bad_cxx_cast_rvalue) in CheckDynamicCast() 651 if (Self.RequireCompleteType(OpRange.getBegin(), SrcPointee, in CheckDynamicCast() 658 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast() [all …]
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaCast.cpp | 183 Op.OpRange.getBegin()); in ~CheckNoDerefRAII() 431 = (CT == CT_CStyle)? InitializationKind::CreateCStyleCast(range.getBegin(), in tryDiagnoseOverloadedCast() 474 PartialDiagnosticAt(range.getBegin(), in tryDiagnoseOverloadedCast() 491 S.Diag(opRange.getBegin(), msg) << castType in diagnoseBadCast() 770 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ref_or_ptr) in CheckDynamicCast() 780 if (Self.RequireCompleteType(OpRange.getBegin(), DestPointee, in CheckDynamicCast() 787 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast() 803 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ptr) in CheckDynamicCast() 810 Self.Diag(OpRange.getBegin(), diag::err_bad_cxx_cast_rvalue) in CheckDynamicCast() 825 if (Self.RequireCompleteType(OpRange.getBegin(), SrcPointee, in CheckDynamicCast() [all …]
|
/external/clang/lib/Edit/ |
D | RewriteObjCFoundationAPI.cpp | 193 commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(), in rewriteToSubscriptGetCommon() 194 ArgRange.getBegin()), in rewriteToSubscriptGetCommon() 196 commit.replaceWithInner(SourceRange(ArgRange.getBegin(), MsgRange.getEnd()), in rewriteToSubscriptGetCommon() 242 commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(), in rewriteToArraySubscriptSet() 243 Arg0Range.getBegin()), in rewriteToArraySubscriptSet() 245 commit.replaceWithInner(CharSourceRange::getCharRange(Arg0Range.getBegin(), in rewriteToArraySubscriptSet() 246 Arg1Range.getBegin()), in rewriteToArraySubscriptSet() 248 commit.replaceWithInner(SourceRange(Arg1Range.getBegin(), MsgRange.getEnd()), in rewriteToArraySubscriptSet() 250 commit.insertWrap("[", CharSourceRange::getCharRange(Arg0Range.getBegin(), in rewriteToArraySubscriptSet() 251 Arg1Range.getBegin()), in rewriteToArraySubscriptSet() [all …]
|
D | Commit.cpp | 77 PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) { in insertFromRange() 94 addRemove(range.getBegin(), Offs, Len); in remove() 100 bool commitableBefore = insert(range.getBegin(), before, /*afterToken=*/false, in insertWrap() 117 if (!canInsert(range.getBegin(), Offs) || !canRemoveRange(range, Offs, Len)) { in replace() 122 addRemove(range.getBegin(), Offs, Len); in replace() 123 addInsert(range.getBegin(), Offs, text, false); in replace() 153 addRemove(range.getBegin(), in replaceWithInner() 302 if (range.getBegin().isMacroID() || range.getEnd().isMacroID()) in canRemoveRange() 304 if (SM.isInSystemHeader(range.getBegin()) || in canRemoveRange() 311 std::pair<FileID, unsigned> beginInfo = SM.getDecomposedLoc(range.getBegin()); in canRemoveRange()
|
/external/llvm-project/clang/lib/Edit/ |
D | RewriteObjCFoundationAPI.cpp | 192 commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(), in rewriteToSubscriptGetCommon() 193 ArgRange.getBegin()), in rewriteToSubscriptGetCommon() 195 commit.replaceWithInner(SourceRange(ArgRange.getBegin(), MsgRange.getEnd()), in rewriteToSubscriptGetCommon() 241 commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(), in rewriteToArraySubscriptSet() 242 Arg0Range.getBegin()), in rewriteToArraySubscriptSet() 244 commit.replaceWithInner(CharSourceRange::getCharRange(Arg0Range.getBegin(), in rewriteToArraySubscriptSet() 245 Arg1Range.getBegin()), in rewriteToArraySubscriptSet() 247 commit.replaceWithInner(SourceRange(Arg1Range.getBegin(), MsgRange.getEnd()), in rewriteToArraySubscriptSet() 249 commit.insertWrap("[", CharSourceRange::getCharRange(Arg0Range.getBegin(), in rewriteToArraySubscriptSet() 250 Arg1Range.getBegin()), in rewriteToArraySubscriptSet() [all …]
|
D | Commit.cpp | 82 PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) { in insertFromRange() 99 addRemove(range.getBegin(), Offs, Len); in remove() 105 bool commitableBefore = insert(range.getBegin(), before, /*afterToken=*/false, in insertWrap() 122 if (!canInsert(range.getBegin(), Offs) || !canRemoveRange(range, Offs, Len)) { in replace() 127 addRemove(range.getBegin(), Offs, Len); in replace() 128 addInsert(range.getBegin(), Offs, text, false); in replace() 158 addRemove(range.getBegin(), in replaceWithInner() 303 if (range.getBegin().isMacroID() || range.getEnd().isMacroID()) in canRemoveRange() 305 if (SM.isInSystemHeader(range.getBegin()) || in canRemoveRange() 312 std::pair<FileID, unsigned> beginInfo = SM.getDecomposedLoc(range.getBegin()); in canRemoveRange()
|
/external/llvm-project/clang/lib/Lex/ |
D | PreprocessingRecord.cpp | 83 SourceLocation Loc = PPE->getSourceRange().getBegin(); in isPreprocessedEntityIfInFileID() 139 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow() 145 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin())) in getPreprocessedEntitiesInRangeSlow() 171 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange() 173 unsigned Begin = findBeginLocalPreprocessedEntity(Range.getBegin()); in findLocalPreprocessedEntitiesInRange() 247 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in findEndLocalPreprocessedEntity() 254 SourceLocation BeginLoc = Entity->getSourceRange().getBegin(); in addPreprocessedEntity() 260 PreprocessedEntities.back()->getSourceRange().getBegin())) && in addPreprocessedEntity() 269 PreprocessedEntities.back()->getSourceRange().getBegin())) { in addPreprocessedEntity() 297 (*I)->getSourceRange().getBegin())) { in addPreprocessedEntity() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | QualifiedAutoCheck.cpp | 71 if (TypeSpecifier.getBegin().isMacroID() || in getTypeSpecifierLocation() 79 if (TypeSpecifier.getBegin().getLocWithOffset(-1) == ConstToken.getEndLoc()) { in mergeReplacementRange() 196 SourceLocation FixitLoc = FixItRange.getBegin(); in check() 198 if (Range.getBegin() < FixitLoc) in check() 199 FixitLoc = Range.getBegin(); in check() 252 if (TypeSpec->isInvalid() || TypeSpec->getBegin().isMacroID() || in check() 255 SourceLocation InsertPos = TypeSpec->getBegin(); in check() 272 if (TypeSpec->isInvalid() || TypeSpec->getBegin().isMacroID() || in check() 275 SourceLocation InsertPos = TypeSpec->getBegin(); in check()
|
/external/clang/lib/Lex/ |
D | PreprocessingRecord.cpp | 73 SourceLocation Loc = PPE->getSourceRange().getBegin(); in isPreprocessedEntityIfInFileID() 129 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow() 135 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin())) in getPreprocessedEntitiesInRangeSlow() 161 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange() 163 unsigned Begin = findBeginLocalPreprocessedEntity(Range.getBegin()); in findLocalPreprocessedEntitiesInRange() 240 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in findEndLocalPreprocessedEntity() 247 SourceLocation BeginLoc = Entity->getSourceRange().getBegin(); in addPreprocessedEntity() 253 PreprocessedEntities.back()->getSourceRange().getBegin())) && in addPreprocessedEntity() 262 PreprocessedEntities.back()->getSourceRange().getBegin())) { in addPreprocessedEntity() 290 (*I)->getSourceRange().getBegin())) { in addPreprocessedEntity() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/comments/ |
D | CommentsCollection.java | 73 if (c.getBegin().line == comment.getBegin().line && in contains() 74 c.getBegin().column == comment.getBegin().column && in contains()
|
/external/clang/lib/Format/ |
D | AffectedRangeManager.cpp | 65 if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), I->getBegin()) && in affectsCharSourceRange() 66 !SourceMgr.isBeforeInTranslationUnit(I->getEnd(), Range.getBegin())) in affectsCharSourceRange() 75 SourceLocation Start = First.WhitespaceRange.getBegin(); in affectsTokenRange() 86 Tok.WhitespaceRange.getBegin(), in affectsLeadingEmptyLines() 87 Tok.WhitespaceRange.getBegin().getLocWithOffset(Tok.LastNewlineOffset)); in affectsLeadingEmptyLines()
|
/external/llvm-project/clang/lib/Format/ |
D | AffectedRangeManager.cpp | 65 if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), I->getBegin()) && in affectsCharSourceRange() 66 !SourceMgr.isBeforeInTranslationUnit(I->getEnd(), Range.getBegin())) in affectsCharSourceRange() 75 SourceLocation Start = First.WhitespaceRange.getBegin(); in affectsTokenRange() 86 Tok.WhitespaceRange.getBegin(), in affectsLeadingEmptyLines() 87 Tok.WhitespaceRange.getBegin().getLocWithOffset(Tok.LastNewlineOffset)); in affectsLeadingEmptyLines()
|
/external/clang/lib/Rewrite/ |
D | Rewriter.cpp | 126 if (!isRewritable(Range.getBegin()) || in getRangeSize() 132 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRangeSize() 169 if (!isRewritable(Range.getBegin()) || in getRewrittenText() 175 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRewrittenText() 187 const char *Ptr = SourceMgr->getCharacterData(Range.getBegin()); in getRewrittenText() 314 if (!isRewritable(range.getBegin())) return true; in ReplaceText() 317 SourceLocation start = range.getBegin(); in ReplaceText() 321 unsigned newOffs = getLocationOffsetAndFileID(replacementRange.getBegin(), in ReplaceText() 330 if (!isRewritable(range.getBegin())) return true; in IncreaseIndentation() 337 StartOff = getLocationOffsetAndFileID(range.getBegin(), StartFileID); in IncreaseIndentation()
|
/external/llvm-project/clang/lib/Rewrite/ |
D | Rewriter.cpp | 147 if (!isRewritable(Range.getBegin()) || in getRangeSize() 151 unsigned StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRangeSize() 185 if (!isRewritable(Range.getBegin()) || in getRewrittenText() 191 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRewrittenText() 203 const char *Ptr = SourceMgr->getCharacterData(Range.getBegin()); in getRewrittenText() 331 if (!isRewritable(range.getBegin())) return true; in ReplaceText() 334 SourceLocation start = range.getBegin(); in ReplaceText() 338 unsigned newOffs = getLocationOffsetAndFileID(replacementRange.getBegin(), in ReplaceText() 347 if (!isRewritable(range.getBegin())) return true; in IncreaseIndentation() 354 StartOff = getLocationOffsetAndFileID(range.getBegin(), StartFileID); in IncreaseIndentation()
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | UseUsingCheck.cpp | 78 if (ReplaceRange.getBegin().isMacroID() || in check() 79 (Result.SourceManager->getFileID(ReplaceRange.getBegin()) != in check() 81 (ReplaceRange.getBegin() >= LastReplacementEnd)) { in check() 102 auto Diag = diag(ReplaceRange.getBegin(), UseUsingWarning); in check()
|
/external/llvm-project/clang-tools-extra/clang-tidy/google/ |
D | UpgradeGoogletestCaseCheck.cpp | 53 macroUsed(MacroNameTok, MD, Range.getBegin(), CheckAction::Rename); in MacroExpands() 77 macroUsed(MacroNameTok, MD, Range.getBegin(), CheckAction::Warn); in Defined() 301 if (MatchedTemplateLocations.count(ReplacementRange.getBegin()) == 0) { in check() 307 diag(ReplacementRange.getBegin(), RenameCaseToSuiteMessage); in check() 315 MatchedTemplateLocations.insert(ReplacementRange.getBegin()); in check() 319 diag(ReplacementRange.getBegin(), RenameCaseToSuiteMessage); in check() 334 diag(ReplacementRange.getBegin(), RenameCaseToSuiteMessage); in check()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | SourceCode.cpp | 244 if (!R.getBegin().isValid() || !R.getEnd().isValid()) in isValidFileRange() 249 std::tie(BeginFID, BeginOffset) = Mgr.getDecomposedLoc(R.getBegin()); in isValidFileRange() 325 SM.isBeforeInTranslationUnit(R1.getBegin(), R2.getBegin()) in unionTokenRange() 326 ? R1.getBegin() in unionTokenRange() 327 : R2.getBegin(); in unionTokenRange() 342 if (SM.isWrittenInSameFile(R.getBegin(), R.getEnd())) in rangeInCommonFile() 346 for (SourceLocation Begin = R.getBegin(); Begin.isValid(); in rangeInCommonFile() 349 : SM.getImmediateExpansionRange(Begin).getBegin()) { in rangeInCommonFile() 393 while (!FileRange.getBegin().isFileID()) { in getTokenFileRange() 394 if (SM.isMacroArgExpansion(FileRange.getBegin())) { in getTokenFileRange() [all …]
|