Searched defs:range (Results 376 - 400 of 658) sorted by path

<<11121314151617181920>>

/external/clang/include/clang/Sema/
H A DDeclSpec.h153 /// \brief Adopt an existing nested-name-specifier (with source-range
187 assert(R.isValid() && "Must have a valid source range");
372 /// TSTNameLoc provides source range info for tag types.
502 void setTypeofParensRange(SourceRange range) { TypeofParensRange = range; } argument
1031 /// \brief Return the source range that covers this unqualified-id.
1632 /// \brief Get the source range that spans this declarator.
1638 /// SetRangeBegin - Set the start of the source range to Loc, unless it's
1644 /// SetRangeEnd - Set the end of the source range to Loc, unless it's invalid.
1649 /// ExtendWithDeclSpec - Extend the declarator source range t
[all...]
/external/clang/lib/ARCMigrate/
H A DARCMT.cpp28 SourceRange range) {
29 if (range.isInvalid())
36 if ((IDs.empty() || // empty means clear all diagnostics in the range.
38 !diagLoc.isBeforeInTranslationUnitThan(range.getBegin()) &&
39 (diagLoc == range.getEnd() ||
40 diagLoc.isBeforeInTranslationUnitThan(range.getEnd()))) {
58 SourceRange range) const {
59 if (range.isInvalid())
65 if ((IDs.empty() || // empty means any diagnostic in the range.
67 !diagLoc.isBeforeInTranslationUnitThan(range
27 clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range) argument
[all...]
H A DInternals.h32 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range);
33 bool hasDiagnostic(ArrayRef<unsigned> IDs, SourceRange range) const;
64 void remove(SourceRange range);
66 void replace(SourceRange range, StringRef text);
67 void replace(SourceRange range, SourceRange replacementRange);
71 void increaseIndentation(SourceRange range,
74 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range);
75 bool clearAllDiagnostics(SourceRange range) { argument
76 return clearDiagnostic(ArrayRef<unsigned>(), range);
78 bool clearDiagnostic(unsigned ID1, unsigned ID2, SourceRange range) { argument
82 clearDiagnostic(unsigned ID1, unsigned ID2, unsigned ID3, SourceRange range) argument
88 hasDiagnostic(unsigned ID, SourceRange range) argument
92 hasDiagnostic(unsigned ID1, unsigned ID2, SourceRange range) argument
[all...]
H A DTransformActions.cpp23 /// with applyRewrites(). E.g. if the same source range
64 /// \brief A range to remove. It is a character range.
68 CharRange(CharSourceRange range, SourceManager &srcMgr, Preprocessor &PP) { argument
69 SourceLocation beginLoc = range.getBegin(), endLoc = range.getEnd();
71 if (range.isTokenRange()) {
136 void remove(SourceRange range);
138 void replace(SourceRange range, StringRef text);
139 void replace(SourceRange range, SourceRang
305 remove(SourceRange range) argument
321 replace(SourceRange range, StringRef text) argument
328 replace(SourceRange range, SourceRange replacementRange) argument
357 increaseIndentation(SourceRange range, SourceLocation parentIndent) argument
368 clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range) argument
408 canRemoveRange(SourceRange range) argument
412 canReplaceRange(SourceRange range, SourceRange replacementRange) argument
445 commitRemove(SourceRange range) argument
463 commitReplace(SourceRange range, SourceRange replacementRange) argument
491 commitIncreaseIndentation(SourceRange range, SourceLocation parentIndent) argument
500 commitClearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range) argument
519 addRemoval(CharSourceRange range) argument
568 CharSourceRange range = CharSourceRange::getCharRange(I->first.Begin, local
575 CharSourceRange range = CharSourceRange::getCharRange(I->Begin, I->End); local
634 remove(SourceRange range) argument
642 replace(SourceRange range, StringRef text) argument
646 replace(SourceRange range, SourceRange replacementRange) argument
661 increaseIndentation(SourceRange range, SourceLocation parentIndent) argument
667 clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range) argument
676 report(SourceLocation loc, unsigned diagId, SourceRange range) argument
683 reportError(StringRef message, SourceLocation loc, SourceRange range) argument
688 reportWarning(StringRef message, SourceLocation loc, SourceRange range) argument
693 reportNote(StringRef message, SourceLocation loc, SourceRange range) argument
[all...]
/external/clang/lib/Edit/
H A DCommit.cpp60 CharSourceRange range,
64 if (!canRemoveRange(range, RangeOffs, RangeLen)) {
77 PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) {
86 bool Commit::remove(CharSourceRange range) { argument
89 if (!canRemoveRange(range, Offs, Len)) {
94 addRemove(range.getBegin(), Offs, Len);
98 bool Commit::insertWrap(StringRef before, CharSourceRange range, argument
100 bool commitableBefore = insert(range.getBegin(), before, /*afterToken=*/false,
103 if (range.isTokenRange())
104 commitableAfter = insertAfterToken(range
59 insertFromRange(SourceLocation loc, CharSourceRange range, bool afterToken, bool beforePreviousInsertions) argument
111 replace(CharSourceRange range, StringRef text) argument
127 replaceWithInner(CharSourceRange range, CharSourceRange replacementRange) argument
295 canRemoveRange(CharSourceRange range, FileOffset &Offs, unsigned &Len) argument
[all...]
H A DEditedSource.cpp22 void EditsReceiver::remove(CharSourceRange range) { argument
23 replace(range, StringRef());
264 /// \brief Check the range that we are going to remove and:
266 /// -Insert a space if removing the range is going to mess up the source tokens.
273 return; // the range is not at the beginning of a token, keep the range.
315 CharSourceRange range = CharSourceRange::getCharRange(Loc, local
320 receiver.remove(range);
325 receiver.replace(range, text);
/external/clang/lib/Rewrite/Core/
H A DRewriter.cpp109 /// ReplaceText - This method replaces a range of characters in the input
126 /// getRangeSize - Return the size in bytes of the specified range if they
142 // If edits have been made to this buffer, the delta between the range may
154 // start of the last token if this is a token range.
167 /// range. If the start or end of the range was unrewritable or if they are
185 // If edits have been made to this buffer, the delta between the range may
304 /// ReplaceText - This method replaces a range of characters in the input
317 bool Rewriter::ReplaceText(SourceRange range, SourceRange replacementRange) { argument
318 if (!isRewritable(range
360 IncreaseIndentation(CharSourceRange range, SourceLocation parentIndent) argument
[all...]
/external/clang/lib/Sema/
H A DSemaCast.cpp312 SourceRange range, Expr *src,
335 = (CT == CT_CStyle)? InitializationKind::CreateCStyleCast(range.getBegin(),
336 range, listInitialization)
337 : (CT == CT_Functional)? InitializationKind::CreateFunctionalCast(range,
339 : InitializationKind::CreateCast(/*type range?*/ range);
377 S.Diag(range.getBegin(), msg)
379 << range << src->getSourceRange();
311 tryDiagnoseOverloadedCast(Sema &S, CastType CT, SourceRange range, Expr *src, QualType destType, bool listInitialization) argument
H A DSemaChecking.cpp62 SourceRange range(call->getArg(desiredArgCount)->getLocStart(),
65 return S.Diag(range.getBegin(), diag::err_typecheck_call_too_many_args)
353 // Get the valid immediate range for the specified NEON type code.
473 // instruction, range check them here.
617 // range check them here.
1963 /// TheCall is a constant expression in the range [Low, High].
3158 // to be within the valid range.
3338 "format string specifier index out of range");
4479 // If this var binds to another reference var, show the range of the next
4481 // show the range o
4482 SourceRange range = (i < e-1) ? refVars[i+1]->getSourceRange() local
[all...]
H A DSemaDeclAttr.cpp1887 static T *mergeVisibilityAttr(Sema &S, Decl *D, SourceRange range, argument
1896 S.Diag(range.getBegin(), diag::note_previous_attribute);
1899 return ::new (S.Context) T(range, S.Context, value, attrSpellingListIndex);
H A DSemaExprObjC.cpp304 // Use the effective source range of the literal, including the leading '@'.
1226 SourceRange range; local
1228 range = TSI->getTypeLoc().getSourceRange();
1229 loc = range.getBegin();
1234 << /*current method*/ 1 << range;
3060 SourceRange range(NCE->getOperatorLoc(),
3065 char PrevChar = *SM.getCharacterData(range.getBegin().getLocWithOffset(-1));
3070 DiagB.AddFixItHint(FixItHint::CreateReplacement(range, BridgeCall));
3078 SourceRange range = castedE->getSourceRange(); local
3083 char PrevChar = *SM.getCharacterData(range
3121 SourceRange range = castedE->getSourceRange(); local
[all...]
/external/clang/lib/Serialization/
H A DASTReader.cpp1154 Error("source location entry ID out-of-range for AST file");
1282 Error("source location entry ID out-of-range for AST file");
2240 // All user input files reside at the index range [0, Record[1]), and
2870 // Make our entry in the range map. BaseID is negative and growing, so
2872 // the range.
2906 // Continuous range maps we may be updating in our module.
5681 SourceRange range; local
5682 range.setBegin(ReadSourceLocation(Record, Idx));
5683 range.setEnd(ReadSourceLocation(Record, Idx));
5684 TL.setAttrOperandParensRange(range);
[all...]
H A DASTWriter.cpp569 SourceRange range = TL.getAttrOperandParensRange(); local
570 Writer.AddSourceLocation(range.getBegin(), Record);
571 Writer.AddSourceLocation(range.getEnd(), Record);
/external/clang/lib/StaticAnalyzer/Checkers/
H A DStackAddrEscapeChecker.cpp50 SourceRange range; local
60 range = CL->getSourceRange();
65 range = ARE->getSourceRange();
72 range = BD->getSourceRange();
79 range = VR->getDecl()->getSourceRange();
86 range = TOR->getExpr()->getSourceRange();
92 return range;
109 SourceRange range = genName(os, R, C.getASTContext()); local
113 if (range.isValid())
114 report->addRange(range);
229 SourceRange range = genName(os, cb.V[i].second, Ctx.getASTContext()); local
[all...]
/external/clang/lib/StaticAnalyzer/Core/
H A DBugReporter.cpp988 // For contexts, we only one the first character as the range.
1634 "Loop body skipped when range is empty";
2127 /// If the locations in the range are not on the same line, returns None.
2604 const SourceRange range = *I; local
2605 if (!range.isValid())
2607 hash.AddInteger(range.getBegin().getRawEncoding());
2608 hash.AddInteger(range.getEnd().getRawEncoding());
2725 // If no custom ranges, add the range of the statement corresponding to
2734 // User-specified absence of range info.
3557 // FIXME: actually print the range
[all...]
/external/clang/test/CodeGen/
H A Dstruct.c71 } range; typedef in typeref:struct:__anon18703
72 extern range f6();
74 range r = f6();
79 range range1;
80 range range2;
86 range r = p.range1;
89 void f9(range *p) {
90 range r = *p;
93 void f10(range *p) {
94 range
[all...]
/external/clang/test/CodeGenCXX/
H A Dreference-in-blocks.cpp5 template<typename T> class range { class
8 range(T i) {_i = i;}; function in class:range
35 void (^bl)(range<int> ) = ^(range<int> i){printf("Hello Blocks %d\n", i.get()); };
38 void (^bl2)(range<int>& ) = ^(range<int>& i){printf("Hello Blocks %d\n", i.get()); };
/external/clang/test/PCH/
H A Dcrash-12631281.cpp33 pair<int, int> range() { function in class:A
/external/clang/test/SemaCXX/
H A Dfor-range-examples.cpp51 value_range_detail::value_range<T> range(const T &a, const T &b) { return value_range_detail::value_range<T>(a, b); } function
54 value_range_detail::value_range_step<T> range(const T &a, const T &b, const T &step) { return value_range_detail::value_range_step<T>(a, b, step); } function
122 for (auto n : range(1, 5)) {
127 for (auto n : range(10, 100, 10)) {
199 // expected-error@-1 {{cannot build range expression with array function parameter 'arr' since parameter with array type 'int []' is treated as pointer type 'int *'}}
210 // expected-error@-1 {{cannot build range expression with array function parameter 'arr' since parameter with array type 'test6::vector []' is treated as pointer type 'test6::vector *'}}
/external/clang/tools/arcmt-test/
H A Darcmt-test.cpp73 static void printSourceRange(CharSourceRange range, ASTContext &Ctx,
96 void remove(CharSourceRange range) override {
99 printSourceRange(range, *Ctx, OS);
317 static void printSourceRange(CharSourceRange range, ASTContext &Ctx, argument
322 PresumedLoc PL = SM.getPresumedLoc(range.getBegin());
329 SourceLocation end = range.getEnd();
333 if (!range.isTokenRange())
/external/clang/tools/c-index-test/
H A Dc-index-test.c952 CXSourceRange range; local
953 CXString insertion_text = clang_getDiagnosticFixIt(Diagnostic, i, &range);
954 CXSourceLocation start = clang_getRangeStart(range);
955 CXSourceLocation end = clang_getRangeEnd(range);
2223 CXSourceRange range = local
2225 if (clang_Range_isNull(range))
2227 PrintRange(range, 0);
2287 CXCursor cursor, CXSourceRange range) {
2288 if (clang_Range_isNull(range))
2292 PrintRange(range, "");
2286 findFileRefsVisit(void *context, CXCursor cursor, CXSourceRange range) argument
2399 findFileIncludesVisit(void *context, CXCursor cursor, CXSourceRange range) argument
3308 CXSourceRange range; local
[all...]
/external/clang/tools/libclang/
H A DCIndexHigh.cpp516 CXSourceRange range) {
518 return INVOKE_BLOCK2(block, cursor, range);
514 _visitCursorAndRange(void *context, CXCursor cursor, CXSourceRange range) argument
H A DCXSourceLocation.cpp84 int clang_Range_isNull(CXSourceRange range) { argument
85 return clang_equalRanges(range, clang_getNullRange());
89 CXSourceLocation clang_getRangeStart(CXSourceRange range) { argument
91 if ((uintptr_t)range.ptr_data[0] & 0x1) {
92 CXSourceLocation Result = { { range.ptr_data[0], nullptr }, 0 };
96 CXSourceLocation Result = { { range.ptr_data[0], range.ptr_data[1] },
97 range.begin_int_data };
101 CXSourceLocation clang_getRangeEnd(CXSourceRange range) { argument
103 if ((uintptr_t)range
[all...]
/external/clang/unittests/Lex/
H A DLexerTest.cpp303 CharSourceRange range = Lexer::makeFileCharRange( local
305 EXPECT_TRUE(range.isInvalid());
306 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(idLoc, rsqrLoc),
308 EXPECT_TRUE(range.isInvalid());
309 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(lsqrLoc, rsqrLoc),
311 EXPECT_TRUE(!range.isTokenRange());
312 EXPECT_EQ(range.getAsRange(),
328 range = Lexer::makeFileCharRange(
332 range.getAsRange());
334 range
[all...]
/external/deqp/framework/randomshaders/
H A DrsgStatement.cpp75 // Random number in range
283 // \note Currently booleans are always treated as not having undefined range and thus
297 // Take copy of value range for generating initializer expression
431 ValueRange range = ValueRange(VariableType::getScalarType(VariableType::TYPE_BOOL)); local
432 range.getMin().asBool() = false;
433 range.getMax().asBool() = true;
435 m_condition = generator.generate(range, 1);

Completed in 553 milliseconds

<<11121314151617181920>>