/external/clang/include/clang/AST/ |
H A D | OpenMPClause.h | 51 void setLocStart(SourceLocation Loc) { StartLoc = Loc; } argument 53 void setLocEnd(SourceLocation Loc) { EndLoc = Loc; } argument 132 void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; } argument 185 void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; } argument 239 void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; } argument 295 setLParenLoc(SourceLocation Loc) argument 351 setLParenLoc(SourceLocation Loc) argument 417 setLParenLoc(SourceLocation Loc) argument 488 setLParenLoc(SourceLocation Loc) argument 535 setLParenLoc(SourceLocation Loc) argument 545 setCommaLoc(SourceLocation Loc) argument 1058 setColonLoc(SourceLocation Loc) argument 1143 setColonLoc(SourceLocation Loc) argument [all...] |
H A D | TemplateBase.h | 533 void setLAngleLoc(SourceLocation Loc) { LAngleLoc = Loc; } argument 534 void setRAngleLoc(SourceLocation Loc) { RAngleLoc = Loc; } argument 550 void addArgument(const TemplateArgumentLoc &Loc) { argument 551 Arguments.push_back(Loc);
|
/external/clang/include/clang/Basic/ |
H A D | SourceLocation.h | 273 explicit FullSourceLoc(SourceLocation Loc, const SourceManager &SM) argument 274 : SourceLocation(Loc), SrcMgr(&SM) {} 311 /// \returns true if this source location comes before 'Loc', false otherwise. 312 bool isBeforeInTranslationUnitThan(SourceLocation Loc) const; 316 /// \returns true if this source location comes before 'Loc', false otherwise. 317 bool isBeforeInTranslationUnitThan(FullSourceLoc Loc) const { 318 assert(Loc.isValid()); 319 assert(SrcMgr == Loc.SrcMgr && "Loc comes from another SourceManager!"); 320 return isBeforeInTranslationUnitThan((SourceLocation)Loc); [all...] |
/external/clang/include/clang/Lex/ |
H A D | PPCallbacks.h | 47 /// \param Loc Indicates the new location. 49 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason, argument 153 /// \param Loc The location of the directive. 156 virtual void Ident(SourceLocation Loc, const std::string &str) { argument 160 virtual void PragmaDirective(SourceLocation Loc, argument 165 virtual void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, argument 171 virtual void PragmaDetectMismatch(SourceLocation Loc, argument 177 /// \param Loc The location of the debug directive. 179 virtual void PragmaDebug(SourceLocation Loc, StringRef DebugType) { argument 195 /// \param Loc Th 199 PragmaMessage(SourceLocation Loc, StringRef Namespace, PragmaMessageKind Kind, StringRef Str) argument 205 PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) argument 211 PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) argument 216 PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, diag::Severity mapping, StringRef Str) argument 227 PragmaWarning(SourceLocation Loc, StringRef WarningSpec, ArrayRef<int> Ids) argument 232 PragmaWarningPush(SourceLocation Loc, int Level) argument 236 PragmaWarningPop(SourceLocation Loc) argument 279 If(SourceLocation Loc, SourceRange ConditionRange, ConditionValueKind ConditionValue) argument 289 Elif(SourceLocation Loc, SourceRange ConditionRange, ConditionValueKind ConditionValue, SourceLocation IfLoc) argument 297 Ifdef(SourceLocation Loc, const Token &MacroNameTok, const MacroDirective *MD) argument 305 Ifndef(SourceLocation Loc, const Token &MacroNameTok, const MacroDirective *MD) argument 312 Else(SourceLocation Loc, SourceLocation IfLoc) argument 318 Endif(SourceLocation Loc, SourceLocation IfLoc) argument [all...] |
/external/clang/include/clang/Sema/ |
H A D | DelayedDiagnostic.h | 121 SourceLocation Loc; member in class:clang::sema::DelayedDiagnostic 126 SourceLocation Loc, 134 static DelayedDiagnostic makeAccess(SourceLocation Loc, argument 139 DD.Loc = Loc; 151 DD.Loc = loc; 181 /// Diag(diag.Loc, diag.getForbiddenTypeDiagnostic())
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | ExplodedGraph.h | 163 const ProgramPoint &Loc, 166 ID.Add(Loc); 162 Profile(llvm::FoldingSetNodeID &ID, const ProgramPoint &Loc, const ProgramStateRef &state, bool IsSink) argument
|
H A D | SVals.h | 10 // This file defines SVal, Loc, and NonLoc, classes that represent 50 LocKind = 2, // for subclass Loc (an L-value) 282 class Loc : public DefinedSVal { class in namespace:clang::ento 284 Loc() {} function in class:clang::ento::Loc 285 explicit Loc(unsigned SubKind, const void *D) function in class:clang::ento::Loc 373 assert (data.first.getAs<Loc>()); 378 Loc getLoc() const { 381 return D->first.castAs<Loc>(); 384 Loc getPersistentLoc() const { 388 return V.castAs<Loc>(); [all...] |
/external/clang/lib/AST/ |
H A D | CommentParser.cpp | 132 SourceLocation Loc, 136 Result.setLocation(Loc); 163 SourceLocation Loc = getSourceLocation(); local 183 formTokenWithChars(Tok, Loc, WordBegin, Length, Text); 196 SourceLocation Loc = getSourceLocation(); local 228 formTokenWithChars(Tok, Loc, WordBegin, 542 SourceLocation Loc; local 544 Loc = Tok.getLocation(); 549 Loc, 131 formTokenWithChars(Token &Result, SourceLocation Loc, const char *TokBegin, unsigned TokLength, StringRef Text) argument
|
/external/clang/lib/Analysis/ |
H A D | LiveVariables.cpp | 186 bool LiveVariables::isLive(const Stmt *Loc, const Stmt *S) { argument 187 return getImpl(impl).stmtsToLiveness[Loc].isLive(S);
|
/external/clang/lib/Basic/ |
H A D | DiagnosticIDs.cpp | 384 DiagnosticIDs::getDiagnosticLevel(unsigned DiagID, SourceLocation Loc, argument 392 return toLevel(getDiagnosticSeverity(DiagID, Loc, Diag)); 399 /// \param Loc The source location we are interested in finding out the 402 DiagnosticIDs::getDiagnosticSeverity(unsigned DiagID, SourceLocation Loc, argument 411 Pos = Diag.GetDiagStatePointForLoc(Loc); 475 if (Diag.SuppressSystemWarnings && !ShowInSystemHeader && Loc.isValid() && 477 Diag.getSourceManager().getExpansionLoc(Loc)))
|
/external/clang/lib/CodeGen/ |
H A D | CodeGenAction.cpp | 217 SourceLocation Loc = SourceLocation::getFromRawEncoding(LocCookie); local 218 ((BackendConsumer*)Context)->InlineAsmDiagHandler2(SM, Loc); 299 FullSourceLoc Loc; local 301 Loc = ConvertBackendLocation(D, Context->getSourceManager()); 322 DiagnosticBuilder B = Diags.Report(Loc, diag::note_fe_inline_asm_here); 328 B << SourceRange(Loc.getLocWithOffset(Range.first - Column), 329 Loc.getLocWithOffset(Range.second - Column)); 336 // If Loc is invalid, we still need to report the issue, it just gets no 338 Diags.Report(Loc, DiagID).AddString(Message); 393 // If Loc i 395 FullSourceLoc Loc; local 534 FullSourceLoc Loc; local 655 SourceLocation Loc; local [all...] |
/external/clang/lib/Frontend/ |
H A D | SerializedDiagnosticPrinter.cpp | 62 void emitDiagnosticMessage(SourceLocation Loc, 70 void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, 75 void emitNote(SourceLocation Loc, StringRef Message, 78 void emitCodeContext(SourceLocation Loc, 134 void EmitDiagnosticMessage(SourceLocation Loc, 160 void AddLocToRecord(SourceLocation Loc, const SourceManager *SM, 165 void AddLocToRecord(SourceLocation Loc, RecordDataImpl &Record, argument 168 AddLocToRecord(Loc, SM, SM ? SM->getPresumedLoc(Loc) : PresumedLoc(), 282 void SDiagsWriter::AddLocToRecord(SourceLocation Loc, argument 583 EmitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, StringRef Message, const SourceManager *SM, DiagOrStoredDiag D) argument 615 emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef<clang::CharSourceRange> Ranges, const SourceManager *SM, DiagOrStoredDiag D) argument 675 emitCodeContext(SourceLocation Loc, DiagnosticsEngine::Level Level, SmallVectorImpl<CharSourceRange> &Ranges, ArrayRef<FixItHint> Hints, const SourceManager &SM) argument 683 emitNote(SourceLocation Loc, StringRef Message, const SourceManager *SM) argument [all...] |
/external/clang/lib/Index/ |
H A D | CommentToXML.cpp | 899 SourceLocation Loc = DI->CurrentDecl->getLocation(); local 900 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
|
H A D | USRGeneration.cpp | 27 static bool printLoc(llvm::raw_ostream &OS, SourceLocation Loc, argument 29 if (Loc.isInvalid()) { 32 Loc = SM.getExpansionLoc(Loc); 33 const std::pair<FileID, unsigned> &Decomposed = SM.getDecomposedLoc(Loc); 820 SourceLocation Loc = MD->getLocation(); local 821 bool ShouldGenerateLocation = !SM.isInSystemHeader(Loc); 825 printLoc(Out, Loc, SM, /*IncludeOffset=*/true);
|
/external/clang/lib/Lex/ |
H A D | LiteralSupport.cpp | 80 FullSourceLoc Loc, unsigned CharWidth, 105 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 111 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 134 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 159 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 182 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 193 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 202 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 206 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, 262 FullSourceLoc Loc, DiagnosticsEngin 77 ProcessCharEscape(const char *ThisTokBegin, const char *&ThisTokBuf, const char *ThisTokEnd, bool &HadError, FullSourceLoc Loc, unsigned CharWidth, DiagnosticsEngine *Diags, const LangOptions &Features) argument 259 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 340 FullSourceLoc Loc; local 366 EncodeUCNEscape(const char *ThisTokBegin, const char *&ThisTokBuf, const char *ThisTokEnd, char *&ResultBuf, bool &HadError, FullSourceLoc Loc, unsigned CharByteWidth, DiagnosticsEngine *Diags, const LangOptions &Features) argument 946 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); llvm::SmallString<16> Buffer; StringRef Str(ThisTokBegin, n); if (Str.find(�) != StringRef::npos) { Buffer.reserve(n); std::remove_copy_if(Str.begin(), Str.end(), std::back_inserter(Buffer), &isDigitSeparator); Str = Buffer; } return Result.convertFromString(Str, 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] != �); expandUCNs(UDSuffixBuf, StringRef(end, UDSuffixEnd - end)); 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...] |
H A D | Preprocessor.cpp | 214 void Preprocessor::DumpLocation(SourceLocation Loc) const { 215 Loc.dump(SourceMgr); 303 SourceLocation Loc, 312 Def = I->second->findDirectiveAtLoc(Loc, SourceMgr); 428 SourceLocation Loc = ScratchBuf->getToken(Str.data(), Str.size(), DestPtr); local 431 Loc = SourceMgr.createExpansionLoc(Loc, ExpansionLocStart, 433 Tok.setLocation(Loc); 302 getLastMacroWithSpelling( SourceLocation Loc, ArrayRef<TokenValue> Tokens) const argument
|
/external/clang/lib/Parse/ |
H A D | ParseTemplate.cpp | 1138 SourceLocation Loc = Tok.getLocation(); local 1146 Loc); 1165 SourceLocation Loc = Tok.getLocation(); local 1171 ExprArg.get(), Loc);
|
/external/clang/lib/Sema/ |
H A D | JumpDiagnostics.cpp | 57 /// Loc - Location to emit the diagnostic. 58 SourceLocation Loc; member in struct:__anon17996::JumpScopeChecker::GotoScope 62 : ParentScope(parentScope), InDiag(InDiag), OutDiag(OutDiag), Loc(L) {} 256 SourceLocation Loc = D->getLocation(); local 257 if (Loc.isInvalid()) 258 Loc = BDecl->getLocation(); 260 Diags.first, Diags.second, Loc)); 514 SourceLocation Loc; local 516 Loc = CS->getLocStart(); 518 Loc [all...] |
H A D | MultiplexExternalSemaSource.cpp | 299 SourceLocation Loc, QualType T) { 301 if (Sources[I]->MaybeDiagnoseMissingCompleteType(Loc, T)) 298 MaybeDiagnoseMissingCompleteType( SourceLocation Loc, QualType T) argument
|
H A D | SemaAttr.cpp | 462 SourceLocation Loc = PP.getPragmaARCCFCodeAuditedLoc(); local 463 if (!Loc.isValid()) return; 470 D->addAttr(CFAuditedTransferAttr::CreateImplicit(Context, Loc)); 488 SourceLocation Loc) { 496 FD->addAttr(OptimizeNoneAttr::CreateImplicit(Context, Loc)); 498 FD->addAttr(NoInlineAttr::CreateImplicit(Context, Loc)); 568 SourceLocation Loc) { 573 PushPragmaVisibility(*this, NoVisibility, Loc); 487 AddOptnoneAttributeIfNoConflicts(FunctionDecl *FD, SourceLocation Loc) argument 567 PushNamespaceVisibilityAttr(const VisibilityAttr *Attr, SourceLocation Loc) argument
|
H A D | SemaExceptionSpec.cpp | 114 Sema::ResolveExceptionSpec(SourceLocation Loc, const FunctionProtoType *FPT) { argument 128 EvaluateImplicitExceptionSpec(Loc, cast<CXXMethodDecl>(SourceDecl)); 130 InstantiateExceptionSpec(Loc, SourceDecl);
|
H A D | SemaTemplateVariadic.cpp | 203 Sema::DiagnoseUnexpandedParameterPacks(SourceLocation Loc, argument 241 = Names.size() == 0? Diag(Loc, diag::err_unexpanded_parameter_pack_0) 243 : Names.size() == 1? Diag(Loc, diag::err_unexpanded_parameter_pack_1) 245 : Names.size() == 2? Diag(Loc, diag::err_unexpanded_parameter_pack_2) 247 : Diag(Loc, diag::err_unexpanded_parameter_pack_3_or_more) 255 bool Sema::DiagnoseUnexpandedParameterPack(SourceLocation Loc, argument 268 return DiagnoseUnexpandedParameterPacks(Loc, UPPC, Unexpanded); 337 bool Sema::DiagnoseUnexpandedParameterPack(SourceLocation Loc, argument 348 return DiagnoseUnexpandedParameterPacks(Loc, UPPC, Unexpanded);
|
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | CallEvent.cpp | 189 SourceLocation Loc = getSourceRange().getBegin(); local 191 return PreImplicitCall(D, Loc, getLocationContext(), Tag); 192 return PostImplicitCall(D, Loc, getLocationContext(), Tag); 303 Loc ParamLoc = SVB.makeLoc(MRMgr.getVarRegion(ParamDecl, CalleeCtx)); 416 assert(ThisVal.isUnknownOrUndef() || ThisVal.getAs<Loc>()); 494 Loc ThisLoc = SVB.getCXXThis(MD, CalleeCtx); 587 Loc ThisLoc = SVB.getCXXThis(MD, CalleeCtx); 895 Loc SelfLoc = SVB.makeLoc(MRMgr.getVarRegion(SelfD, CalleeCtx)); 940 Loc ThisPtr = SVB.getCXXThis(Ctor, CalleeCtx); 966 Loc ThisPt [all...] |
H A D | HTMLDiagnostics.cpp | 529 SourceLocation Loc = local 532 R.InsertTextBefore(Loc, os.str());
|
/external/clang/tools/libclang/ |
H A D | IndexingContext.h | 212 AttrInfo(CXIdxAttrKind Kind, CXCursor C, CXIdxLoc Loc, const Attr *A) { argument 215 loc = Loc; 224 IBOutletCollectionInfo(CXCursor C, CXIdxLoc Loc, const Attr *A) : argument 225 AttrInfo(CXIdxAttr_IBOutletCollection, C, Loc, A) { 420 bool handleSynthesizedObjCMethod(const ObjCMethodDecl *D, SourceLocation Loc, 431 bool handleReference(const NamedDecl *D, SourceLocation Loc, CXCursor Cursor, 437 bool handleReference(const NamedDecl *D, SourceLocation Loc, 443 bool isNotFromSourceFile(SourceLocation Loc) const; 453 void translateLoc(SourceLocation Loc, CXIdxClientFile *indexFile, CXFile *file, 466 SourceLocation Loc, CXCurso [all...] |