/external/bison/data/ |
H A D | glr.c | 514 # define YY_LOCATION_PRINT(File, Loc) \ 516 (Loc).first_line, (Loc).first_column, \ 517 (Loc).last_line, (Loc).last_column) 526 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
|
H A D | yacc.c | 623 # define YY_LOCATION_PRINT(File, Loc) \ 625 (Loc).first_line, (Loc).first_column, \ 626 (Loc).last_line, (Loc).last_column) 628 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
|
/external/clang/include/clang/Sema/ |
H A D | Initialization.h | 145 InitializedEntity(EntityKind Kind, SourceLocation Loc, QualType Type, argument 149 LocAndNRVO.Location = Loc.getRawEncoding(); 163 InitializedEntity(VarDecl *Var, FieldDecl *Field, SourceLocation Loc) argument 167 Capture.Location = Loc.getRawEncoding(); 274 SourceLocation Loc) { 275 return InitializedEntity(Var, Field, Loc); 272 InitializeLambdaCapture(VarDecl *Var, FieldDecl *Field, SourceLocation Loc) argument
|
/external/elfutils/src/ |
H A D | ldscript.c | 854 # define YY_LOCATION_PRINT(File, Loc) \ 856 (Loc).first_line, (Loc).first_column, \ 857 (Loc).last_line, (Loc).last_column) 859 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
|
/external/libpcap/ |
H A D | grammar.c | 1198 # define YY_LOCATION_PRINT(File, Loc) \ 1200 (Loc).first_line, (Loc).first_column, \ 1201 (Loc).last_line, (Loc).last_column) 1203 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
|
/external/llvm/lib/MC/MCParser/ |
H A D | AsmParser.cpp | 193 void PrintMessage(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Msg, argument 195 SrcMgr.PrintMessage(Loc, Kind, Msg, Ranges); 205 /// \brief Reset the current lexer position to that given by \arg Loc. The 208 void JumpToLoc(SMLoc Loc); 500 void AsmParser::JumpToLoc(SMLoc Loc) { argument 501 CurBuffer = SrcMgr.FindBufferContainingLoc(Loc); 502 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer), Loc.getPointer()); 729 SMLoc Loc = getTok().getLoc(); local 743 return Error(Loc, "invalid reference to undefined symbol"); 2104 SMLoc Loc local 2227 SMLoc Loc = getTok().getLoc(); local 2331 SMLoc Loc = getLexer().getLoc(); local 2696 SMLoc Loc = getTok().getLoc(); local 2707 SMLoc Loc = getTok().getLoc(); local 2726 SMLoc Loc = getTok().getLoc(); local [all...] |
H A D | AsmLexer.cpp | 46 AsmToken AsmLexer::ReturnError(const char *Loc, const std::string &Msg) { argument 47 SetError(SMLoc::getFromPointer(Loc), Msg); 49 return AsmToken(AsmToken::Error, StringRef(Loc, 0));
|
/external/webkit/Source/ThirdParty/ANGLE/src/compiler/ |
H A D | glslang_tab.cpp | 1365 # define YY_LOCATION_PRINT(File, Loc) \ 1367 (Loc).first_line, (Loc).first_column, \ 1368 (Loc).last_line, (Loc).last_column) 1370 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
|
/external/clang/lib/Basic/ |
H A D | DiagnosticIDs.cpp | 354 DiagnosticIDs::getDiagnosticLevel(unsigned DiagID, SourceLocation Loc, argument 362 return getDiagnosticLevel(DiagID, DiagClass, Loc, Diag); 369 /// \param Loc The source location we are interested in finding out the 373 SourceLocation Loc, 380 Pos = Diag.GetDiagStatePointForLoc(Loc); 465 Loc.isValid() && 467 Diag.getSourceManager().getExpansionLoc(Loc))) 372 getDiagnosticLevel(unsigned DiagID, unsigned DiagClass, SourceLocation Loc, const DiagnosticsEngine &Diag) const argument
|
/external/clang/lib/Lex/ |
H A D | Preprocessor.cpp | 207 void Preprocessor::DumpLocation(SourceLocation Loc) const { 208 Loc.dump(SourceMgr); 387 SourceLocation Loc = ScratchBuf->getToken(Buf, Len, DestPtr); local 390 Loc = SourceMgr.createExpansionLoc(Loc, ExpansionLocStart, 392 Tok.setLocation(Loc);
|
H A D | PPLexerChange.cpp | 72 SourceLocation Loc) { 89 getSourceManager().getBuffer(FID, Loc, &Invalid); 92 Diag(Loc, diag::err_pp_error_opening_file) 71 EnterSourceFile(FileID FID, const DirectoryLookup *CurDir, SourceLocation Loc) argument
|
H A D | LiteralSupport.cpp | 76 FullSourceLoc Loc, unsigned CharWidth, 101 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 107 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 130 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 155 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 178 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 189 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 198 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 202 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 216 FullSourceLoc Loc, DiagnosticsEngin 73 ProcessCharEscape(const char *ThisTokBegin, const char *&ThisTokBuf, const char *ThisTokEnd, bool &HadError, FullSourceLoc Loc, unsigned CharWidth, DiagnosticsEngine *Diags, const LangOptions &Features) argument 213 ProcessUCNEscape(const char *ThisTokBegin, const char *&ThisTokBuf, const char *ThisTokEnd, uint32_t &UcnVal, unsigned short &UcnLen, FullSourceLoc Loc, DiagnosticsEngine *Diags, const LangOptions &Features, bool in_char_string_literal = false) argument 294 FullSourceLoc Loc; local 320 EncodeUCNEscape(const char *ThisTokBegin, const char *&ThisTokBuf, const char *ThisTokEnd, char *&ResultBuf, bool &HadError, FullSourceLoc Loc, unsigned CharByteWidth, DiagnosticsEngine *Diags, const LangOptions &Features) argument 792 assert(C < radix && Ó); CharVal = C; OldVal = Val; Val *= RadixVal; OverflowOccurred |= Val.udiv(RadixVal) != OldVal; Val += CharVal; OverflowOccurred |= Val.ult(CharVal); } return OverflowOccurred; } llvm::APFloat::opStatus NumericLiteralParser::GetFloatValue(llvm::APFloat &Result) { using llvm::APFloat; unsigned n = std::min(SuffixBegin - ThisTokBegin, ThisTokEnd - ThisTokBegin); return Result.convertFromString(StringRef(ThisTokBegin, n), APFloat::rmNearestTiesToEven); } CharLiteralParser::CharLiteralParser(const char *begin, const char *end, SourceLocation Loc, Preprocessor &PP, tok::TokenKind kind) { HadError = false; Kind = kind; const char *TokBegin = begin; if (Kind != tok::char_constant) { ++begin; } assert(begin[0] == Ã && Ó); ++begin; if (end[-1] != Ã) { const char *UDSuffixEnd = end; do { --end; } while (end[-1] != Ã); UDSuffixBuf.assign(end, UDSuffixEnd); UDSuffixOffset = end - TokBegin; } assert(end != begin && Ó); --end; assert(PP.getTargetInfo().getCharWidth() == 8 && Ó); assert(PP.getTargetInfo().getIntWidth() <= 64 && (PP.getTargetInfo().getIntWidth() & 7) == 0 && Ó); assert(PP.getTargetInfo().getWCharWidth() <= 64 && Ó); SmallVector<uint32_t,4> codepoint_buffer; codepoint_buffer.resize(end-begin); uint32_t *buffer_begin = &codepoint_buffer.front(); uint32_t *buffer_end = buffer_begin + codepoint_buffer.size(); uint32_t largest_character_for_kind; if (tok::wide_char_constant == Kind) { largest_character_for_kind = 0xFFFFFFFFu >> (32-PP.getTargetInfo().getWCharWidth()); } else if (tok::utf16_char_constant == Kind) { largest_character_for_kind = 0xFFFF; } else if (tok::utf32_char_constant == Kind) { largest_character_for_kind = 0x10FFFF; } else { largest_character_for_kind = 0x7Fu; } while (begin!=end) { if (begin[0] != Ã) { char const *start = begin; do { ++begin; } while (begin != end && *begin != Ã); char const *tmp_in_start = start; uint32_t *tmp_out_start = buffer_begin; ConversionResult res = ConvertUTF8toUTF32(reinterpret_cast<UTF8 const **>(&start), reinterpret_cast<UTF8 const *>(begin), &buffer_begin,buffer_end,strictConversion); if (res!=conversionOK) { bool NoErrorOnBadEncoding = isAscii(); unsigned Msg = diag::err_bad_character_encoding; if (NoErrorOnBadEncoding) Msg = diag::warn_bad_character_encoding; PP.Diag(Loc, Msg); if (NoErrorOnBadEncoding) { start = tmp_in_start; buffer_begin = tmp_out_start; for ( ; start != begin; ++start, ++buffer_begin) *buffer_begin = static_cast<uint8_t>(*start); } else { HadError = true; } } else { for (; tmp_out_start <buffer_begin; ++tmp_out_start) { if (*tmp_out_start > largest_character_for_kind) { HadError = true; PP.Diag(Loc, diag::err_character_too_large); } } } continue; } if (begin[1] == Ã || begin[1] == Ã) { unsigned short UcnLen = 0; if (!ProcessUCNEscape(TokBegin, begin, end, *buffer_begin, UcnLen, FullSourceLoc(Loc, PP.getSourceManager()), &PP.getDiagnostics(), PP.getLangOpts(), true)) { HadError = true; } else if (*buffer_begin > largest_character_for_kind) argument [all...] |
/external/clang/lib/CodeGen/ |
H A D | CGDebugInfo.cpp | 52 void CGDebugInfo::setLocation(SourceLocation Loc) { argument 54 if (!Loc.isValid()) return; 56 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc); 213 llvm::DIFile CGDebugInfo::getOrCreateFile(SourceLocation Loc) { argument 214 if (!Loc.isValid()) 219 PresumedLoc PLoc = SM.getPresumedLoc(Loc); 249 unsigned CGDebugInfo::getLineNumber(SourceLocation Loc) { argument 250 if (Loc.isInvalid() && CurLoc.isInvalid()) 253 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc 259 getColumnNumber(SourceLocation Loc) argument 1199 getOrCreateRecordType(QualType RTy, SourceLocation Loc) argument 1208 getOrCreateInterfaceType(QualType D, SourceLocation Loc) argument 1360 SourceLocation Loc = PD->getLocation(); local 1425 SourceLocation Loc = PD->getLocation(); local 2027 SourceLocation Loc = D->getLocation(); local 2113 EmitLocation(CGBuilderTy &Builder, SourceLocation Loc) argument 2139 CreateLexicalBlock(SourceLocation Loc) argument 2153 EmitLexicalBlockStart(CGBuilderTy &Builder, SourceLocation Loc) argument 2168 EmitLexicalBlockEnd(CGBuilderTy &Builder, SourceLocation Loc) argument [all...] |
/external/clang/lib/ARCMigrate/ |
H A D | TransRetainReleaseDealloc.cpp | 248 SourceLocation Loc = Msg->getExprLoc(); local 249 if (!Loc.isMacroID()) 252 StringRef MacroName = Lexer::getImmediateMacroName(Loc, SM,
|
/external/clang/lib/Parse/ |
H A D | ParseInit.cpp | 112 static void CheckArrayDesignatorSyntax(Parser &P, SourceLocation Loc, argument 120 P.Diag(Loc, diag::ext_gnu_missing_equal_designator); 122 P.Diag(Loc, diag::err_expected_equal_designator);
|
H A D | ParseStmt.cpp | 308 SourceLocation Loc = ConsumeToken(); local 309 return ParseSEHTryBlockCommon(Loc); 332 SourceLocation Loc = ConsumeToken(); local 333 Handler = ParseSEHExceptBlock(Loc); 335 SourceLocation Loc = ConsumeToken(); local 336 Handler = ParseSEHFinallyBlock(Loc); 812 SourceLocation Loc, 818 ParseCXXCondition(ExprResult, DeclResult, Loc, ConvertToBoolean); 826 = Actions.ActOnBooleanCondition(getCurScope(), Loc, ExprResult.get()); 1743 SourceLocation Loc local 810 ParseParenExprOrCondition(ExprResult &ExprResult, Decl *&DeclResult, SourceLocation Loc, bool ConvertToBoolean) argument 2046 SourceLocation Loc = ConsumeToken(); local 2050 SourceLocation Loc = ConsumeToken(); local [all...] |
/external/clang/include/clang/AST/ |
H A D | DeclObjC.h | 524 void setAtStartLoc(SourceLocation Loc) { AtStart = Loc; } argument 959 void setSuperClassLoc(SourceLocation Loc) { data().SuperClassLoc = Loc; } argument 1397 void setCategoryNameLoc(SourceLocation Loc) { CategoryNameLoc = Loc; } argument 1399 void setIvarLBraceLoc(SourceLocation Loc) { IvarLBraceLoc = Loc; } argument 1401 void setIvarRBraceLoc(SourceLocation Loc) { IvarRBraceLoc = Loc; } argument 1659 setIvarLBraceLoc(SourceLocation Loc) argument 1661 setIvarRBraceLoc(SourceLocation Loc) argument 1954 setAtLoc(SourceLocation Loc) argument [all...] |
/external/clang/include/clang/Frontend/ |
H A D | ASTUnit.h | 545 /// \brief If \arg Loc is a loaded location from the preamble, returns 547 /// \arg Loc. 548 SourceLocation mapLocationFromPreamble(SourceLocation Loc); 550 /// \brief If \arg Loc is a local location of the main file but inside the 552 /// preamble, otherwise it returns \arg Loc. 553 SourceLocation mapLocationToPreamble(SourceLocation Loc); 555 bool isInPreambleFileID(SourceLocation Loc); 556 bool isInMainFileID(SourceLocation Loc);
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | AttrNonNullChecker.cpp | 59 if (!isa<Loc>(*DV)) {
|
H A D | CStringChecker.cpp | 383 if (Loc *BufLoc = dyn_cast<Loc>(&BufStart)) { 403 if (Loc *BufLoc = dyn_cast<Loc>(&BufStart)) { 439 Loc *firstLoc = dyn_cast<Loc>(&firstVal); 443 Loc *secondLoc = dyn_cast<Loc>(&secondVal); 477 Loc *tmpLoc = firstLoc; 500 Loc *FirstStartLo [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | ExprEngineCXX.cpp | 96 Loc ThisPtr = getSValBuilder().getCXXThis(CurCtor, 125 Loc ThisPtr = getSValBuilder().getCXXThis(CurCtor, 268 if (isa<Loc>(Location)) 269 State = State->bindLoc(cast<Loc>(Location), State->getSVal(Init, LCtx));
|
/external/llvm/lib/TableGen/ |
H A D | TGLexer.h | 110 tgtok::TokKind ReturnError(const char *Loc, const Twine &Msg);
|
/external/clang/lib/Frontend/ |
H A D | TextDiagnostic.cpp | 660 TextDiagnostic::emitDiagnosticMessage(SourceLocation Loc, 670 if (Loc.isValid()) 671 emitDiagnosticLoc(Loc, PLoc, Level, Ranges, *SM); 750 void TextDiagnostic::emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, 756 FileID FID = SM.getFileID(Loc); 804 SM.getFileID(SM.getExpansionLoc(Loc)); 858 void TextDiagnostic::emitIncludeLocation(SourceLocation Loc, 872 /// \param Loc The location for the caret. 876 SourceLocation Loc, DiagnosticsEngine::Level Level, 880 assert(!Loc [all...] |
/external/clang/lib/Sema/ |
H A D | SemaTemplateVariadic.cpp | 198 Sema::DiagnoseUnexpandedParameterPacks(SourceLocation Loc, argument 236 = Names.size() == 0? Diag(Loc, diag::err_unexpanded_parameter_pack_0) 238 : Names.size() == 1? Diag(Loc, diag::err_unexpanded_parameter_pack_1) 240 : Names.size() == 2? Diag(Loc, diag::err_unexpanded_parameter_pack_2) 242 : Diag(Loc, diag::err_unexpanded_parameter_pack_3_or_more) 250 bool Sema::DiagnoseUnexpandedParameterPack(SourceLocation Loc, argument 263 return DiagnoseUnexpandedParameterPacks(Loc, UPPC, Unexpanded); 332 bool Sema::DiagnoseUnexpandedParameterPack(SourceLocation Loc, argument 343 return DiagnoseUnexpandedParameterPacks(Loc, UPPC, Unexpanded);
|
H A D | SemaExprCXX.cpp | 510 Sema::ActOnCXXNullPtrLiteral(SourceLocation Loc) { argument 511 return Owned(new (Context) CXXNullPtrLiteralExpr(Context.NullPtrTy, Loc)); 705 void Sema::CheckCXXThisCapture(SourceLocation Loc, bool Explicit) { argument 730 Diag(Loc, diag::err_this_capture) << Explicit; 748 = FieldDecl::Create(Context, Lambda, Loc, Loc, 0, ThisTy, 749 Context.getTrivialTypeSourceInfo(ThisTy, Loc), 754 ThisExpr = new (Context) CXXThisExpr(Loc, ThisTy, /*isImplicit=*/true); 757 CSI->addThisCapture(isNested, Loc, ThisTy, ThisExpr); 761 ExprResult Sema::ActOnCXXThis(SourceLocation Loc) { argument 1166 diagnoseNotInt(Sema &S, SourceLocation Loc, QualType T) argument 1172 diagnoseIncomplete(Sema &S, SourceLocation Loc, QualType T) argument 1178 diagnoseExplicitConv(Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) argument 1192 diagnoseAmbiguous(Sema &S, SourceLocation Loc, QualType T) argument 1203 diagnoseConversion(Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) argument 1443 CheckAllocatedType(QualType AllocType, SourceLocation Loc, SourceRange R) argument 2872 CheckUnaryTypeTraitTypeCompleteness(Sema &S, UnaryTypeTrait UTT, SourceLocation Loc, QualType ArgTy) argument 3795 CheckPointerToMemberOperands(ExprResult &LHS, ExprResult &RHS, ExprValueKind &VK, SourceLocation Loc, bool isIndirect) argument 4389 FindCompositePointerType(SourceLocation Loc, Expr *&E1, Expr *&E2, bool *NonStandardCompositeType) argument [all...] |