/external/clang/lib/Frontend/ |
H A D | DiagnosticRenderer.cpp | 44 SourceLocation Loc) { 45 if (!Loc.isMacroID()) return Loc; 50 if (SM.isMacroArgExpansion(Loc)) 51 return SM.getImmediateSpellingLoc(Loc); 55 return SM.getImmediateExpansionRange(Loc).first; 61 SourceLocation Loc) { 62 if (!Loc.isMacroID()) return Loc; 67 if (SM.isMacroArgExpansion(Loc)) 43 getImmediateMacroCallerLoc(const SourceManager &SM, SourceLocation Loc) argument 60 getImmediateMacroCalleeLoc(const SourceManager &SM, SourceLocation Loc) argument 91 getImmediateMacroName(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument 114 getDiagnosticPresumedLoc(const SourceManager &SM, SourceLocation Loc) argument 182 emitDiagnostic(SourceLocation Loc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> FixItHints, DiagOrStoredDiag D) argument 247 emitIncludeStack(SourceLocation Loc, DiagnosticsEngine::Level Level) argument 262 emitIncludeStackRecursively(SourceLocation Loc) argument 290 emitMacroExpansionsAndCarets( SourceLocation Loc, DiagnosticsEngine::Level Level, SmallVectorImpl<CharSourceRange>& Ranges, ArrayRef<FixItHint> Hints, unsigned &MacroDepth, unsigned OnMacroInst) argument 373 emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc) argument [all...] |
/external/clang/include/clang/Lex/ |
H A D | PPCallbacks.h | 47 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason, argument 127 /// \param Loc The location of the directive. 130 virtual void Ident(SourceLocation Loc, const std::string &str) { argument 136 virtual void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, argument 142 /// \param Loc The location of the message directive. 145 virtual void PragmaMessage(SourceLocation Loc, StringRef Str) { argument 150 virtual void PragmaDiagnosticPush(SourceLocation Loc, argument 156 virtual void PragmaDiagnosticPop(SourceLocation Loc, argument 162 virtual void PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, argument 193 /// \param Loc th 196 If(SourceLocation Loc, SourceRange ConditionRange) argument 204 Elif(SourceLocation Loc, SourceRange ConditionRange, SourceLocation IfLoc) argument 211 Ifdef(SourceLocation Loc, const Token &MacroNameTok) argument 217 Ifndef(SourceLocation Loc, const Token &MacroNameTok) argument 223 Else(SourceLocation Loc, SourceLocation IfLoc) argument 229 Endif(SourceLocation Loc, SourceLocation IfLoc) argument 246 FileChanged(SourceLocation Loc, FileChangeReason Reason, SrcMgr::CharacteristicKind FileType, FileID PrevFID) argument 285 Ident(SourceLocation Loc, const std::string &str) argument 290 PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, const std::string &Str) argument 296 PragmaMessage(SourceLocation Loc, StringRef Str) argument 301 PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) argument 307 PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) argument 313 PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, diag::Mapping mapping, StringRef Str) argument 346 If(SourceLocation Loc, SourceRange ConditionRange) argument 352 Elif(SourceLocation Loc, SourceRange ConditionRange, SourceLocation IfLoc) argument 359 Ifdef(SourceLocation Loc, const Token &MacroNameTok) argument 365 Ifndef(SourceLocation Loc, const Token &MacroNameTok) argument 371 Else(SourceLocation Loc, SourceLocation IfLoc) argument 377 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 51 TemplateDeductionInfo(ASTContext &Context, SourceLocation Loc) argument 52 : Context(Context), Deduced(0), Loc(Loc) { } 61 return Loc; 79 void addSuppressedDiagnostic(SourceLocation Loc, argument 81 SuppressedDiagnostics.push_back(std::make_pair(Loc, PD));
|
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) {} 172 SourceLocation Loc; member in class:clang::sema::CapturingScopeInfo::Capture 183 SourceLocation Loc, SourceLocation EllipsisLoc, 186 CopyExprAndNested(Cpy, isNested), Loc(Loc), EllipsisLoc(EllipsisLoc), 190 Capture(IsThisCapture, bool isNested, SourceLocation Loc, argument 192 : VarAndKind(0, Cap_This), CopyExprAndNested(Cpy, isNested), Loc(Lo 182 Capture(VarDecl *Var, bool block, bool byRef, bool isNested, SourceLocation Loc, SourceLocation EllipsisLoc, QualType CaptureType, Expr *Cpy) argument 246 addCapture(VarDecl *Var, bool isBlock, bool isByref, bool isNested, SourceLocation Loc, SourceLocation EllipsisLoc, QualType CaptureType, Expr *Cpy) argument 254 addThisCapture(bool isNested, SourceLocation Loc, QualType CaptureType, Expr *Cpy) argument [all...] |
/external/clang/include/clang/Basic/ |
H A D | PrettyStackTrace.h | 28 SourceLocation Loc; member in class:clang::PrettyStackTraceLoc 32 : SM(sm), Loc(L), Message(Msg) {}
|
H A D | SourceManager.h | 144 /// \param Loc If specified, is the location that invalid file diagnostics 150 SourceLocation Loc = SourceLocation(), 674 SourceLocation createMacroArgExpansionLoc(SourceLocation Loc, 681 SourceLocation createExpansionLoc(SourceLocation Loc, 725 const llvm::MemoryBuffer *getBuffer(FileID FID, SourceLocation Loc, argument 736 return Entry.getFile().getContentCache()->getBuffer(Diag, *this, Loc, 863 SourceLocation getExpansionLoc(SourceLocation Loc) const { 866 if (Loc.isFileID()) return Loc; 867 return getExpansionLocSlowCase(Loc); 970 isInSLocAddrSpace(SourceLocation Loc, SourceLocation Start, unsigned Length, unsigned *RelativeOffset = 0) const argument 1104 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/llvm/include/llvm/TableGen/ |
H A D | Error.h | 23 SMLoc Loc; member in class:llvm::TGError 26 TGError(SMLoc loc, const std::string &message) : Loc(loc), Message(message) {} 28 SMLoc getLoc() const { return Loc; } 33 void PrintWarning(const char *Loc, const Twine &Msg); 38 void PrintError(const char *Loc, const Twine &Msg);
|
/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...] |
/external/llvm/lib/TableGen/ |
H A D | Error.cpp | 27 void PrintWarning(const char *Loc, const Twine &Msg) { argument 28 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); 43 void PrintError(const char *Loc, const Twine &Msg) { argument 44 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg);
|
/external/clang/include/clang/Analysis/Analyses/ |
H A D | ThreadSafety.h | 73 /// \param Loc -- the SourceLocation of the unresolved expression. 74 virtual void handleInvalidLockExp(SourceLocation Loc) {} argument 80 /// \param Loc -- The SourceLocation of the Unlock 81 virtual void handleUnmatchedUnlock(Name LockName, SourceLocation Loc) {} argument 86 /// \param Loc -- The location of the second lock expression. 87 virtual void handleDoubleLock(Name LockName, SourceLocation Loc) {} argument 120 /// \param Loc -- The location of the protected operation. 122 AccessKind AK, SourceLocation Loc) {} 131 /// \param Loc -- The location of the protected operation. 134 LockKind LK, SourceLocation Loc) {} 121 handleNoMutexHeld(const NamedDecl *D, ProtectedOperationKind POK, AccessKind AK, SourceLocation Loc) argument 132 handleMutexNotHeld(const NamedDecl *D, ProtectedOperationKind POK, Name LockName, LockKind LK, SourceLocation Loc) argument 142 handleFunExcludesLock(Name FunName, Name LockName, SourceLocation Loc) argument [all...] |
/external/clang/lib/AST/ |
H A D | TypeLoc.cpp | 81 SourceLocation Loc) { 88 TLCasted.initializeLocal(Context, Loc); \ 256 SourceLocation Loc) { 257 setElaboratedKeywordLoc(Loc); 259 Builder.MakeTrivial(Context, getTypePtr()->getQualifier(), Loc); 264 SourceLocation Loc) { 265 setElaboratedKeywordLoc(Loc); 267 Builder.MakeTrivial(Context, getTypePtr()->getQualifier(), Loc); 269 setNameLoc(Loc); 274 SourceLocation Loc) { 80 initializeImpl(ASTContext &Context, TypeLoc TL, SourceLocation Loc) argument 255 initializeLocal(ASTContext &Context, SourceLocation Loc) argument 263 initializeLocal(ASTContext &Context, SourceLocation Loc) argument 273 initializeLocal(ASTContext &Context, SourceLocation Loc) argument 292 initializeArgLocs(ASTContext &Context, unsigned NumArgs, const TemplateArgument *Args, TemplateArgumentLocInfo *ArgInfos, SourceLocation Loc) argument [all...] |
/external/clang/include/clang/Frontend/ |
H A D | DiagnosticRenderer.h | 75 virtual void emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc, 81 virtual void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, 87 virtual void emitCodeContext(SourceLocation Loc, 92 virtual void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc) = 0; 101 void emitIncludeStack(SourceLocation Loc, DiagnosticsEngine::Level Level); 102 void emitIncludeStackRecursively(SourceLocation Loc); 103 void emitMacroExpansionsAndCarets(SourceLocation Loc, 117 /// \param Loc The location for this caret. 122 void emitDiagnostic(SourceLocation Loc, DiagnosticsEngine::Level Level, 143 virtual void emitIncludeLocation(SourceLocation Loc, [all...] |
H A D | TextDiagnostic.h | 82 virtual void emitDiagnosticMessage(SourceLocation Loc,PresumedLoc PLoc, 88 virtual void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, 92 virtual void emitCodeContext(SourceLocation Loc, argument 96 emitSnippetAndCaret(Loc, Level, Ranges, Hints); 101 virtual void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc); 104 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(); 210 bool ParseGlobal(const std::string &Name, LocTy Loc, unsigne 221 ParseType(Type *&Result, LocTy &Loc, bool AllowVoid = false) argument 283 ParseValue(Type *Ty, Value *&V, LocTy &Loc, PerFunctionState &PFS) argument 293 ParseTypeAndValue(Value *&V, LocTy &Loc, PerFunctionState &PFS) argument 300 LocTy Loc; local 306 LocTy Loc; member in struct:llvm::LLParser::ParamInfo 327 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 | 32 if (Loc::isLocType(type)) 49 assert(!Loc::isLocType(type)); 57 assert(!Loc::isLocType(type)); 65 assert(!Loc::isLocType(type)); 72 assert(!Loc::isLocType(toTy)); 103 if (Loc::isLocType(T)) 129 if (Loc::isLocType(type)) 146 if (Loc::isLocType(type)) 161 if (Loc::isLocType(type)) 177 if (Loc [all...] |
/external/clang/include/clang/Rewrite/ |
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); 283 unsigned getLocationOffsetAndFileID(SourceLocation Loc, FileI [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()) 84 unsigned SourceMgr::FindLineNumber(SMLoc Loc, int BufferID) const { argument 85 if (BufferID == -1) BufferID = FindBufferContainingLoc(Loc); 101 Cache->LastQuery <= Loc.getPointer()) { 108 for (; SMLoc::getFromPointer(Ptr) != Loc; ++Ptr) 143 SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, SourceMgr::DiagKind Kind, argument 149 int CurBuf = FindBufferContainingLoc(Loc); 155 const char *LineStart = Loc 195 PrintMessage(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Msg, ArrayRef<SMRange> Ranges, bool ShowColors) const argument [all...] |
/external/clang/lib/Basic/ |
H A D | SourceManager.cpp | 88 SourceLocation Loc, 124 Diag.Report(Loc, diag::err_cannot_open_file) 140 Diag.Report(Loc, diag::err_file_modified) 166 Diag.Report(Loc, diag::err_unsupported_bom) 293 /// specified by Loc. If FilenameID is -1, it is considered to be 295 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, argument 297 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); 315 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, argument 324 return AddLineNote(Loc, LineNo, FilenameID); 327 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); 86 getBuffer(DiagnosticsEngine &Diag, const SourceManager &SM, SourceLocation Loc, bool *Invalid) const argument 1013 isInvalid(SourceLocation Loc, bool *Invalid) argument 1020 getSpellingColumnNumber(SourceLocation Loc, bool *Invalid) const argument 1027 getExpansionColumnNumber(SourceLocation Loc, bool *Invalid) const argument 1034 getPresumedColumnNumber(SourceLocation Loc, bool *Invalid) const argument 1253 getSpellingLineNumber(SourceLocation Loc, bool *Invalid) const argument 1259 getExpansionLineNumber(SourceLocation Loc, bool *Invalid) const argument 1265 getPresumedLineNumber(SourceLocation Loc, bool *Invalid) const argument 1310 getBufferName(SourceLocation Loc, bool *Invalid) const argument 1750 MoveUpIncludeHierarchy(std::pair<FileID, unsigned> &Loc, const SourceManager &SM) argument [all...] |