/external/llvm/lib/TableGen/ |
H A D | Error.cpp | 23 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind, argument 26 if (Loc.empty()) 27 Loc = NullLoc; 28 SrcMgr.PrintMessage(Loc.front(), Kind, Msg); 29 for (unsigned i = 1; i < Loc.size(); ++i) 30 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note, 38 void PrintWarning(const char *Loc, const Twine &Msg) { argument 39 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); 54 void PrintError(const char *Loc, const Twine &Msg) { argument 55 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMg [all...] |
/external/clang/include/clang/Lex/ |
H A D | PPCallbacks.h | 44 /// \param Loc Indicates the new location. 46 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason, argument 130 /// \param Loc The location of the directive. 133 virtual void Ident(SourceLocation Loc, const std::string &str) { argument 137 virtual void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, argument 142 /// \param Loc The location of the message directive. 144 virtual void PragmaMessage(SourceLocation Loc, StringRef Str) { argument 149 virtual void PragmaDiagnosticPush(SourceLocation Loc, argument 155 virtual void PragmaDiagnosticPop(SourceLocation Loc, argument 160 virtual void PragmaDiagnostic(SourceLocation Loc, StringRe argument 195 If(SourceLocation Loc, SourceRange ConditionRange) argument 203 Elif(SourceLocation Loc, SourceRange ConditionRange, SourceLocation IfLoc) argument 210 Ifdef(SourceLocation Loc, const Token &MacroNameTok) argument 216 Ifndef(SourceLocation Loc, const Token &MacroNameTok) argument 222 Else(SourceLocation Loc, SourceLocation IfLoc) argument 228 Endif(SourceLocation Loc, SourceLocation IfLoc) argument 245 FileChanged(SourceLocation Loc, FileChangeReason Reason, SrcMgr::CharacteristicKind FileType, FileID PrevFID) argument 284 Ident(SourceLocation Loc, const std::string &str) argument 289 PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, const std::string &Str) argument 295 PragmaMessage(SourceLocation Loc, StringRef Str) argument 300 PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) argument 306 PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) argument 312 PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, diag::Mapping mapping, StringRef Str) argument 345 If(SourceLocation Loc, SourceRange ConditionRange) argument 351 Elif(SourceLocation Loc, SourceRange ConditionRange, SourceLocation IfLoc) argument 358 Ifdef(SourceLocation Loc, const Token &MacroNameTok) argument 364 Ifndef(SourceLocation Loc, const Token &MacroNameTok) argument 370 Else(SourceLocation Loc, SourceLocation IfLoc) argument 376 Endif(SourceLocation Loc, SourceLocation IfLoc) argument [all...] |
/external/clang/include/clang/Sema/ |
H A D | PrettyDeclStackTrace.h | 34 SourceLocation Loc; member in class:clang::PrettyDeclStackTraceEntry 38 PrettyDeclStackTraceEntry(Sema &S, Decl *D, SourceLocation Loc, argument 40 : S(S), TheDecl(D), Loc(Loc), Message(Msg) {}
|
H A D | TemplateDeduction.h | 40 SourceLocation Loc; member in class:clang::sema::TemplateDeductionInfo 54 TemplateDeductionInfo(ASTContext &Context, SourceLocation Loc) argument 55 : Context(Context), Deduced(0), Loc(Loc), HasSFINAEDiagnostic(false) { } 64 return Loc; 96 void addSFINAEDiagnostic(SourceLocation Loc, PartialDiagnostic PD) { argument 102 std::make_pair(Loc, PartialDiagnostic::NullDiagnostic())); 108 void addSuppressedDiagnostic(SourceLocation Loc, argument 113 std::make_pair(Loc, PartialDiagnostic::NullDiagnostic()));
|
H A D | Weak.h | 32 WeakInfo(IdentifierInfo *Alias, SourceLocation Loc) argument 33 : alias(Alias), loc(Loc), used(false) {}
|
H A D | ScopeInfo.h | 54 SourceLocation Loc; member in class:clang::sema::PossiblyUnreachableDiag 57 PossiblyUnreachableDiag(const PartialDiagnostic &PD, SourceLocation Loc, argument 59 : PD(PD), Loc(Loc), stmt(stmt) {} 182 SourceLocation Loc; member in class:clang::sema::CapturingScopeInfo::Capture 193 SourceLocation Loc, SourceLocation EllipsisLoc, 196 CopyExprAndNested(Cpy, isNested), Loc(Loc), EllipsisLoc(EllipsisLoc), 200 Capture(IsThisCapture, bool isNested, SourceLocation Loc, argument 202 : VarAndKind(0, Cap_This), CopyExprAndNested(Cpy, isNested), Loc(Lo 192 Capture(VarDecl *Var, bool block, bool byRef, bool isNested, SourceLocation Loc, SourceLocation EllipsisLoc, QualType CaptureType, Expr *Cpy) argument 256 addCapture(VarDecl *Var, bool isBlock, bool isByref, bool isNested, SourceLocation Loc, SourceLocation EllipsisLoc, QualType CaptureType, Expr *Cpy) argument 264 addThisCapture(bool isNested, SourceLocation Loc, QualType CaptureType, Expr *Cpy) argument [all...] |
/external/clang/include/clang/Basic/ |
H A D | PrettyStackTrace.h | 29 SourceLocation Loc; member in class:clang::PrettyStackTraceLoc 33 : SM(sm), Loc(L), Message(Msg) {}
|
H A D | SourceManager.h | 169 /// \param Loc If specified, is the location that invalid file diagnostics 175 SourceLocation Loc = SourceLocation(), 747 SourceLocation createMacroArgExpansionLoc(SourceLocation Loc, 754 SourceLocation createExpansionLoc(SourceLocation Loc, 817 const llvm::MemoryBuffer *getBuffer(FileID FID, SourceLocation Loc, argument 828 return Entry.getFile().getContentCache()->getBuffer(Diag, *this, Loc, 961 /// \brief Given a SourceLocation object \p Loc, return the expansion 963 SourceLocation getExpansionLoc(SourceLocation Loc) const { 966 if (Loc.isFileID()) return Loc; 1082 isInSLocAddrSpace(SourceLocation Loc, SourceLocation Start, unsigned Length, unsigned *RelativeOffset = 0) const argument 1223 isInFileID(SourceLocation Loc, FileID FID, unsigned *RelativeOffset = 0) const argument [all...] |
/external/clang/tools/libclang/ |
H A D | CXSourceLocation.h | 31 SourceLocation Loc) { 32 if (Loc.isInvalid()) 36 Loc.getRawEncoding() }; 42 SourceLocation Loc) { 45 Loc); 30 translateSourceLocation(const SourceManager &SM, const LangOptions &LangOpts, SourceLocation Loc) argument 41 translateSourceLocation(ASTContext &Context, SourceLocation Loc) argument
|
/external/clang/lib/Frontend/ |
H A D | DiagnosticRenderer.cpp | 41 static StringRef getImmediateMacroName(SourceLocation Loc, argument 44 assert(Loc.isMacroID() && "Only reasonble to call this on macros"); 46 while (SM.isMacroArgExpansion(Loc)) 47 Loc = SM.getImmediateExpansionRange(Loc).first; 52 Loc = SM.getSpellingLoc(SM.getImmediateExpansionRange(Loc).first); 56 std::pair<FileID, unsigned> ExpansionInfo = SM.getDecomposedLoc(Loc); 57 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpts); 117 void DiagnosticRenderer::emitDiagnostic(SourceLocation Loc, argument 189 emitIncludeStack(SourceLocation Loc, DiagnosticsEngine::Level Level, const SourceManager &SM) argument 205 emitIncludeStackRecursively(SourceLocation Loc, const SourceManager &SM) argument 234 emitMacroExpansionsAndCarets( SourceLocation Loc, DiagnosticsEngine::Level Level, SmallVectorImpl<CharSourceRange>& Ranges, ArrayRef<FixItHint> Hints, const SourceManager &SM, unsigned &MacroDepth, unsigned OnMacroInst) argument 318 emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc, const SourceManager &SM) argument [all...] |
/external/clang/include/clang/AST/ |
H A D | TypeLoc.h | 133 void initialize(ASTContext &Context, SourceLocation Loc) const { 134 initializeImpl(Context, *this, Loc); 166 SourceLocation Loc); 215 void initializeLocal(ASTContext &Context, SourceLocation Loc) { argument 409 void setNameLoc(SourceLocation Loc) { argument 410 this->getLocalData()->NameLoc = Loc; 415 void initializeLocal(ASTContext &Context, SourceLocation Loc) { argument 416 setNameLoc(Loc); 439 void setBuiltinLoc(SourceLocation Loc) { argument 440 getLocalData()->BuiltinLoc = Loc; 516 initializeLocal(ASTContext &Context, SourceLocation Loc) argument 769 setLAngleLoc(SourceLocation Loc) argument 776 setRAngleLoc(SourceLocation Loc) argument [all...] |
H A D | CommentBriefParser.h | 39 SourceLocation Loc = Tok.getLocation(); local 41 return Loc;
|
/external/clang/include/clang/Analysis/Analyses/ |
H A D | ThreadSafety.h | 74 /// \param Loc -- the SourceLocation of the unresolved expression. 75 virtual void handleInvalidLockExp(SourceLocation Loc) {} argument 81 /// \param Loc -- The SourceLocation of the Unlock 82 virtual void handleUnmatchedUnlock(Name LockName, SourceLocation Loc) {} argument 87 /// \param Loc -- The location of the second lock expression. 88 virtual void handleDoubleLock(Name LockName, SourceLocation Loc) {} argument 121 /// \param Loc -- The location of the protected operation. 123 AccessKind AK, SourceLocation Loc) {} 132 /// \param Loc -- The location of the protected operation. 135 LockKind LK, SourceLocation Loc, 122 handleNoMutexHeld(const NamedDecl *D, ProtectedOperationKind POK, AccessKind AK, SourceLocation Loc) argument 133 handleMutexNotHeld(const NamedDecl *D, ProtectedOperationKind POK, Name LockName, LockKind LK, SourceLocation Loc, Name *PossibleMatch=0) argument 144 handleFunExcludesLock(Name FunName, Name LockName, SourceLocation Loc) argument [all...] |
/external/clang/lib/AST/ |
H A D | TypeLoc.cpp | 82 SourceLocation Loc) { 89 TLCasted.initializeLocal(Context, Loc); \ 258 SourceLocation Loc) { 259 setElaboratedKeywordLoc(Loc); 261 Builder.MakeTrivial(Context, getTypePtr()->getQualifier(), Loc); 266 SourceLocation Loc) { 267 setElaboratedKeywordLoc(Loc); 269 Builder.MakeTrivial(Context, getTypePtr()->getQualifier(), Loc); 271 setNameLoc(Loc); 276 SourceLocation Loc) { 81 initializeImpl(ASTContext &Context, TypeLoc TL, SourceLocation Loc) argument 257 initializeLocal(ASTContext &Context, SourceLocation Loc) argument 265 initializeLocal(ASTContext &Context, SourceLocation Loc) argument 275 initializeLocal(ASTContext &Context, SourceLocation Loc) argument 294 initializeArgLocs(ASTContext &Context, unsigned NumArgs, const TemplateArgument *Args, TemplateArgumentLocInfo *ArgInfos, SourceLocation Loc) argument [all...] |
/external/clang/include/clang/Frontend/ |
H A D | DiagnosticRenderer.h | 73 virtual void emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc, 80 virtual void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, 87 virtual void emitCodeContext(SourceLocation Loc, 93 virtual void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc, 103 void emitIncludeStack(SourceLocation Loc, DiagnosticsEngine::Level Level, 105 void emitIncludeStackRecursively(SourceLocation Loc, const SourceManager &SM); 106 void emitMacroExpansionsAndCarets(SourceLocation Loc, 121 /// \param Loc The location for this caret. 127 /// frontend, thus \p Loc will be invalid. 128 void emitDiagnostic(SourceLocation Loc, DiagnosticsEngin [all...] |
H A D | TextDiagnostic.h | 81 virtual void emitDiagnosticMessage(SourceLocation Loc,PresumedLoc PLoc, 88 virtual void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, 93 virtual void emitCodeContext(SourceLocation Loc, argument 98 emitSnippetAndCaret(Loc, Level, Ranges, Hints, SM); 103 virtual void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc, 107 void emitSnippetAndCaret(SourceLocation Loc, DiagnosticsEngine::Level Level,
|
/external/llvm/include/llvm/MC/ |
H A D | MCFixup.h | 75 SMLoc Loc; member in class:llvm::MCFixup 78 MCFixupKind Kind, SMLoc Loc = SMLoc()) { 84 FI.Loc = Loc; 107 SMLoc getLoc() const { return Loc; }
|
/external/clang/lib/Sema/ |
H A D | DelayedDiagnostic.cpp | 22 DelayedDiagnostic DelayedDiagnostic::makeDeprecation(SourceLocation Loc, argument 29 DD.Loc = Loc;
|
/external/llvm/lib/Analysis/ |
H A D | LibCallAliasAnalysis.cpp | 47 const Location &Loc) { 69 LibCallLocationInfo::LocResult Res = LocInfo.isLocation(CS, Loc); 90 LibCallLocationInfo::LocResult Res = LocInfo.isLocation(CS, Loc); 121 const Location &Loc) { 129 MRInfo = ModRefResult(MRInfo & AnalyzeLibCallDetails(FI, CS, Loc)); 136 return (ModRefResult)(MRInfo | AliasAnalysis::getModRefInfo(CS, Loc)); 45 AnalyzeLibCallDetails(const LibCallFunctionInfo *FI, ImmutableCallSite CS, const Location &Loc) argument 120 getModRefInfo(ImmutableCallSite CS, const Location &Loc) argument
|
/external/llvm/lib/AsmParser/ |
H A D | LLParser.h | 59 LLLexer::LocTy Loc; member in struct:llvm::ValID 104 SMLoc Loc; member in struct:llvm::LLParser::MDRef 147 GlobalValue *GetGlobalVal(const std::string &N, Type *Ty, LocTy Loc); 148 GlobalValue *GetGlobalVal(unsigned ID, Type *Ty, LocTy Loc); 157 bool ParseOptionalToken(lltok::Kind T, bool &Present, LocTy *Loc = 0) { 161 if (Loc) 162 *Loc = Lex.getLoc(); 170 bool ParseUInt32(unsigned &Val, LocTy &Loc) { argument 171 Loc = Lex.getLoc(); 213 bool ParseGlobal(const std::string &Name, LocTy Loc, unsigne 224 ParseType(Type *&Result, LocTy &Loc, bool AllowVoid = false) argument 286 ParseValue(Type *Ty, Value *&V, LocTy &Loc, PerFunctionState &PFS) argument 296 ParseTypeAndValue(Value *&V, LocTy &Loc, PerFunctionState &PFS) argument 303 LocTy Loc; local 309 LocTy Loc; member in struct:llvm::LLParser::ParamInfo 330 LocTy Loc; member in struct:llvm::LLParser::ArgInfo [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | CheckerContext.cpp | 76 StringRef CheckerContext::getMacroNameOrSpelling(SourceLocation &Loc) { argument 77 if (Loc.isMacroID()) 78 return Lexer::getImmediateMacroName(Loc, getSourceManager(), 81 return Lexer::getSpelling(Loc, buf, getSourceManager(), getLangOpts());
|
H A D | SValBuilder.cpp | 33 if (Loc::isLocType(type)) 50 assert(!Loc::isLocType(type)); 58 assert(!Loc::isLocType(type)); 65 assert(!Loc::isLocType(type)); 72 assert(!Loc::isLocType(toTy)); 103 if (Loc::isLocType(T)) 127 if (Loc::isLocType(type)) 143 if (Loc::isLocType(type)) 154 assert(Loc::isLocType(T)); 170 if (Loc [all...] |
/external/llvm/lib/Support/ |
H A D | SourceMgr.cpp | 72 int SourceMgr::FindBufferContainingLoc(SMLoc Loc) const { 74 if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() && 77 Loc.getPointer() <= Buffers[i].Buffer->getBufferEnd()) 85 SourceMgr::getLineAndColumn(SMLoc Loc, int BufferID) const { argument 86 if (BufferID == -1) BufferID = FindBufferContainingLoc(Loc); 103 Cache->LastQuery <= Loc.getPointer()) { 110 for (; SMLoc::getFromPointer(Ptr) != Loc; ++Ptr) 147 SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, SourceMgr::DiagKind Kind, argument 158 if (Loc.isValid()) { 159 int CurBuf = FindBufferContainingLoc(Loc); 208 PrintMessage(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Msg, ArrayRef<SMRange> Ranges, bool ShowColors) const argument [all...] |
/external/clang/include/clang/Rewrite/Core/ |
H A D | Rewriter.h | 162 static bool isRewritable(SourceLocation Loc) { argument 163 return Loc.isFileID(); 186 /// using the indentation of the source line in position \arg Loc. 187 bool InsertText(SourceLocation Loc, StringRef Str, 195 bool InsertTextAfter(SourceLocation Loc, StringRef Str) { argument 196 return InsertText(Loc, Str); 201 bool InsertTextAfterToken(SourceLocation Loc, StringRef Str); 208 bool InsertTextBefore(SourceLocation Loc, StringRef Str) { argument 209 return InsertText(Loc, Str, false); 290 unsigned getLocationOffsetAndFileID(SourceLocation Loc, FileI [all...] |
/external/clang/lib/Basic/ |
H A D | SourceManager.cpp | 88 SourceLocation Loc, 127 Diag.Report(Loc, diag::err_cannot_open_file) 143 Diag.Report(Loc, diag::err_file_modified) 169 Diag.Report(Loc, diag::err_unsupported_bom) 296 /// specified by Loc. If FilenameID is -1, it is considered to be 298 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, argument 300 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); 318 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, argument 327 return AddLineNote(Loc, LineNo, FilenameID); 330 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); 86 getBuffer(DiagnosticsEngine &Diag, const SourceManager &SM, SourceLocation Loc, bool *Invalid) const argument 1041 isInvalid(SourceLocation Loc, bool *Invalid) argument 1048 getSpellingColumnNumber(SourceLocation Loc, bool *Invalid) const argument 1055 getExpansionColumnNumber(SourceLocation Loc, bool *Invalid) const argument 1062 getPresumedColumnNumber(SourceLocation Loc, bool *Invalid) const argument 1281 getSpellingLineNumber(SourceLocation Loc, bool *Invalid) const argument 1287 getExpansionLineNumber(SourceLocation Loc, bool *Invalid) const argument 1293 getPresumedLineNumber(SourceLocation Loc, bool *Invalid) const argument 1338 getBufferName(SourceLocation Loc, bool *Invalid) const argument 1778 MoveUpIncludeHierarchy(std::pair<FileID, unsigned> &Loc, const SourceManager &SM) argument [all...] |