/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Lex/ |
H A D | PPConditionalDirectiveRecord.cpp | 49 SourceLocation Loc) const { 50 if (Loc.isInvalid()) 56 Loc)) 61 Loc, CondDirectiveLoc::Comp(SourceMgr)); 78 void PPConditionalDirectiveRecord::If(SourceLocation Loc, argument 80 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back())); 81 CondDirectiveStack.push_back(Loc); 84 void PPConditionalDirectiveRecord::Ifdef(SourceLocation Loc, argument 87 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back())); 88 CondDirectiveStack.push_back(Loc); 91 Ifndef(SourceLocation Loc, const Token &MacroNameTok, const MacroDirective *MD) argument 98 Elif(SourceLocation Loc, SourceRange ConditionRange, SourceLocation IfLoc) argument 105 Else(SourceLocation Loc, SourceLocation IfLoc) argument 111 Endif(SourceLocation Loc, SourceLocation IfLoc) argument [all...] |
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Lex/ |
H A D | PPCallbacks.h | 46 /// \param Loc Indicates the new location. 48 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason, argument 152 /// \param Loc The location of the directive. 155 virtual void Ident(SourceLocation Loc, const std::string &str) { argument 159 virtual void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, argument 164 /// \param Loc The location of the debug directive. 166 virtual void PragmaDebug(SourceLocation Loc, StringRef DebugType) { argument 182 /// \param Loc The location of the message directive. 186 virtual void PragmaMessage(SourceLocation Loc, StringRef Namespace, argument 192 virtual void PragmaDiagnosticPush(SourceLocation Loc, argument 198 PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) argument 203 PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, diag::Mapping mapping, StringRef Str) argument 241 If(SourceLocation Loc, SourceRange ConditionRange) argument 249 Elif(SourceLocation Loc, SourceRange ConditionRange, SourceLocation IfLoc) argument 257 Ifdef(SourceLocation Loc, const Token &MacroNameTok, const MacroDirective *MD) argument 265 Ifndef(SourceLocation Loc, const Token &MacroNameTok, const MacroDirective *MD) argument 272 Else(SourceLocation Loc, SourceLocation IfLoc) argument 278 Endif(SourceLocation Loc, SourceLocation IfLoc) argument 295 FileChanged(SourceLocation Loc, FileChangeReason Reason, SrcMgr::CharacteristicKind FileType, FileID PrevFID) argument 344 Ident(SourceLocation Loc, const std::string &str) argument 349 PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, const std::string &Str) argument 355 PragmaMessage(SourceLocation Loc, StringRef Namespace, PragmaMessageKind Kind, StringRef Str) argument 361 PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) argument 367 PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) argument 373 PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, diag::Mapping mapping, StringRef Str) argument 407 If(SourceLocation Loc, SourceRange ConditionRange) argument 413 Elif(SourceLocation Loc, SourceRange ConditionRange, SourceLocation IfLoc) argument 420 Ifdef(SourceLocation Loc, const Token &MacroNameTok, const MacroDirective *MD) argument 427 Ifndef(SourceLocation Loc, const Token &MacroNameTok, const MacroDirective *MD) argument 434 Else(SourceLocation Loc, SourceLocation IfLoc) argument 440 Endif(SourceLocation Loc, SourceLocation IfLoc) argument [all...] |
H A D | PPConditionalDirectiveRecord.h | 32 SourceLocation Loc; member in class:clang::PPConditionalDirectiveRecord::CondDirectiveLoc 36 CondDirectiveLoc(SourceLocation Loc, SourceLocation RegionLoc) argument 37 : Loc(Loc), RegionLoc(RegionLoc) {} 39 SourceLocation getLoc() const { return Loc; } 86 SourceLocation findConditionalDirectiveRegionLoc(SourceLocation Loc) const; 89 virtual void If(SourceLocation Loc, SourceRange ConditionRange); 90 virtual void Elif(SourceLocation Loc, SourceRange ConditionRange, 92 virtual void Ifdef(SourceLocation Loc, const Token &MacroNameTok, 94 virtual void Ifndef(SourceLocation Loc, cons [all...] |
/freebsd-10.0-release/contrib/llvm/lib/TableGen/ |
H A D | Error.cpp | 25 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind, argument 33 if (Loc.empty()) 34 Loc = NullLoc; 35 SrcMgr.PrintMessage(Loc.front(), Kind, Msg); 36 for (unsigned i = 1; i < Loc.size(); ++i) 37 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note, 45 void PrintWarning(const char *Loc, const Twine &Msg) { argument 46 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); 57 void PrintError(const char *Loc, const Twine &Msg) { argument 58 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMg [all...] |
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Sema/ |
H A D | TemplateDeduction.h | 36 SourceLocation Loc; member in class:clang::sema::TemplateDeductionInfo 49 TemplateDeductionInfo(SourceLocation Loc) argument 50 : Deduced(0), Loc(Loc), HasSFINAEDiagnostic(false), Expression(0) { } 55 return Loc; 86 void addSFINAEDiagnostic(SourceLocation Loc, PartialDiagnostic PD) { argument 92 std::make_pair(Loc, PartialDiagnostic::NullDiagnostic())); 98 void addSuppressedDiagnostic(SourceLocation Loc, argument 103 std::make_pair(Loc, PartialDiagnostic::NullDiagnostic()));
|
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 | Weak.h | 32 WeakInfo(IdentifierInfo *Alias, SourceLocation Loc) argument 33 : alias(Alias), loc(Loc), used(false) {}
|
/freebsd-10.0-release/contrib/llvm/tools/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(), 808 SourceLocation createMacroArgExpansionLoc(SourceLocation Loc, 815 SourceLocation createExpansionLoc(SourceLocation Loc, 878 const llvm::MemoryBuffer *getBuffer(FileID FID, SourceLocation Loc, argument 889 return Entry.getFile().getContentCache()->getBuffer(Diag, *this, Loc, 1026 getModuleImportLoc(SourceLocation Loc) const { 1027 FileID FID = getFileID(Loc); 1037 /// \brief Given a SourceLocation object \p Loc, return the expansion 1039 SourceLocation getExpansionLoc(SourceLocation Loc) cons 1169 isInSLocAddrSpace(SourceLocation Loc, SourceLocation Start, unsigned Length, unsigned *RelativeOffset = 0) const argument 1311 isInFileID(SourceLocation Loc, FileID FID, unsigned *RelativeOffset = 0) const argument [all...] |
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Frontend/ |
H A D | DiagnosticRenderer.cpp | 42 static StringRef getImmediateMacroName(SourceLocation Loc, argument 45 assert(Loc.isMacroID() && "Only reasonble to call this on macros"); 47 while (SM.isMacroArgExpansion(Loc)) 48 Loc = SM.getImmediateExpansionRange(Loc).first; 52 if (!SM.getFileEntryForID(SM.getFileID(SM.getSpellingLoc(Loc)))) 58 Loc = SM.getSpellingLoc(SM.getImmediateExpansionRange(Loc).first); 62 std::pair<FileID, unsigned> ExpansionInfo = SM.getDecomposedLoc(Loc); 63 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, S 123 emitDiagnostic(SourceLocation Loc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> FixItHints, const SourceManager *SM, DiagOrStoredDiag D) argument 204 emitIncludeStack(SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, const SourceManager &SM) argument 229 emitIncludeStackRecursively(SourceLocation Loc, const SourceManager &SM) argument 258 emitImportStack(SourceLocation Loc, const SourceManager &SM) argument 272 emitImportStackRecursively(SourceLocation Loc, StringRef ModuleName, const SourceManager &SM) argument 381 emitCaret(SourceLocation Loc, DiagnosticsEngine::Level Level, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints, const SourceManager &SM) argument 403 emitMacroExpansions(SourceLocation Loc, DiagnosticsEngine::Level Level, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints, const SourceManager &SM, unsigned &MacroDepth, unsigned OnMacroInst) argument 471 emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc, const SourceManager &SM) argument 482 emitImportLocation(SourceLocation Loc, PresumedLoc PLoc, StringRef ModuleName, const SourceManager &SM) argument 495 emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc, StringRef ModuleName, const SourceManager &SM) argument [all...] |
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/AST/ |
H A D | TypeLoc.h | 152 void initialize(ASTContext &Context, SourceLocation Loc) const { 153 initializeImpl(Context, *this, Loc); 187 SourceLocation Loc); 237 void initializeLocal(ASTContext &Context, SourceLocation Loc) { argument 267 if (QualifiedTypeLoc Loc = getAs<QualifiedTypeLoc>()) 268 return Loc.getUnqualifiedLoc(); 425 void setNameLoc(SourceLocation Loc) { argument 426 this->getLocalData()->NameLoc = Loc; 431 void initializeLocal(ASTContext &Context, SourceLocation Loc) { argument 432 setNameLoc(Loc); 456 setBuiltinLoc(SourceLocation Loc) argument 533 initializeLocal(ASTContext &Context, SourceLocation Loc) argument 786 setLAngleLoc(SourceLocation Loc) argument 793 setRAngleLoc(SourceLocation Loc) argument [all...] |
H A D | CommentBriefParser.h | 39 SourceLocation Loc = Tok.getLocation(); local 41 return Loc;
|
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Frontend/ |
H A D | DiagnosticRenderer.h | 75 virtual void emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc, 82 virtual void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, 89 virtual void emitCodeContext(SourceLocation Loc, 95 virtual void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc, 97 virtual void emitImportLocation(SourceLocation Loc, PresumedLoc PLoc, 100 virtual void emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc, 111 void emitIncludeStack(SourceLocation Loc, PresumedLoc PLoc, 113 void emitIncludeStackRecursively(SourceLocation Loc, const SourceManager &SM); 114 void emitImportStack(SourceLocation Loc, const SourceManager &SM); 115 void emitImportStackRecursively(SourceLocation Loc, StringRe [all...] |
H A D | TextDiagnostic.h | 79 virtual void emitDiagnosticMessage(SourceLocation Loc,PresumedLoc PLoc, 86 virtual void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, 91 virtual void emitCodeContext(SourceLocation Loc, argument 96 emitSnippetAndCaret(Loc, Level, Ranges, Hints, SM); 101 virtual void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc, 104 virtual void emitImportLocation(SourceLocation Loc, PresumedLoc PLoc, 108 virtual void emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc, 113 void emitSnippetAndCaret(SourceLocation Loc, DiagnosticsEngine::Level Level,
|
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Analysis/Analyses/ |
H A D | ThreadSafety.h | 75 /// \param Loc -- the SourceLocation of the unresolved expression. 76 virtual void handleInvalidLockExp(SourceLocation Loc) {} argument 82 /// \param Loc -- The SourceLocation of the Unlock 83 virtual void handleUnmatchedUnlock(Name LockName, SourceLocation Loc) {} argument 88 /// \param Loc -- The location of the second lock expression. 89 virtual void handleDoubleLock(Name LockName, SourceLocation Loc) {} argument 122 /// \param Loc -- The location of the protected operation. 124 AccessKind AK, SourceLocation Loc) {} 133 /// \param Loc -- The location of the protected operation. 136 LockKind LK, SourceLocation Loc, 123 handleNoMutexHeld(const NamedDecl *D, ProtectedOperationKind POK, AccessKind AK, SourceLocation Loc) argument 134 handleMutexNotHeld(const NamedDecl *D, ProtectedOperationKind POK, Name LockName, LockKind LK, SourceLocation Loc, Name *PossibleMatch=0) argument 145 handleFunExcludesLock(Name FunName, Name LockName, SourceLocation Loc) argument [all...] |
/freebsd-10.0-release/contrib/llvm/utils/TableGen/ |
H A D | SetTheory.cpp | 30 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) { argument 31 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc); 37 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) { argument 39 PrintFatalError(Loc, "Set difference needs at least two arguments: " + 42 ST.evaluate(*Expr->arg_begin(), Add, Loc); 43 ST.evaluate(Expr->arg_begin() + 1, Expr->arg_end(), Sub, Loc); 52 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) { argument 54 PrintFatalError(Loc, "Set intersection requires two arguments: " + 57 ST.evaluate(Expr->arg_begin()[0], S1, Loc); 58 ST.evaluate(Expr->arg_begin()[1], S2, Loc); 71 apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) argument 87 apply2(SetTheory &ST, DagInit *Expr, RecSet &Set, int64_t N, RecSet &Elts, ArrayRef<SMLoc> Loc) argument 100 apply2(SetTheory &ST, DagInit *Expr, RecSet &Set, int64_t N, RecSet &Elts, ArrayRef<SMLoc> Loc) argument 118 apply2(SetTheory &ST, DagInit *Expr, RecSet &Set, int64_t N, RecSet &Elts, ArrayRef<SMLoc> Loc) argument 137 apply2(SetTheory &ST, DagInit *Expr, RecSet &Set, int64_t N, RecSet &Elts, ArrayRef<SMLoc> Loc) argument 150 apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) argument 168 apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) argument 270 evaluate(Init *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) argument [all...] |
H A D | SetTheory.h | 77 ArrayRef<SMLoc> Loc) =0; 124 void evaluate(Init *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc); 128 void evaluate(Iter begin, Iter end, RecSet &Elts, ArrayRef<SMLoc> Loc) { argument 130 evaluate(*begin++, Elts, Loc);
|
/freebsd-10.0-release/contrib/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; }
|
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Sema/ |
H A D | DelayedDiagnostic.cpp | 22 DelayedDiagnostic DelayedDiagnostic::makeDeprecation(SourceLocation Loc, argument 30 DD.Loc = Loc;
|
/freebsd-10.0-release/contrib/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
|
/freebsd-10.0-release/contrib/llvm/include/llvm/TableGen/ |
H A D | Error.h | 23 void PrintWarning(const char *Loc, const Twine &Msg); 27 void PrintError(const char *Loc, const Twine &Msg);
|
/freebsd-10.0-release/contrib/llvm/lib/Transforms/ObjCARC/ |
H A D | ObjCARCAliasAnalysis.cpp | 87 ObjCARCAliasAnalysis::pointsToConstantMemory(const Location &Loc, argument 90 return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal); 94 const Value *S = StripPointerCastsAndObjCCalls(Loc.Ptr); 95 if (AliasAnalysis::pointsToConstantMemory(Location(S, Loc.Size, Loc.TBAATag), 132 ObjCARCAliasAnalysis::getModRefInfo(ImmutableCallSite CS, const Location &Loc) { argument 134 return AliasAnalysis::getModRefInfo(CS, Loc); 153 return AliasAnalysis::getModRefInfo(CS, Loc);
|
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/AST/ |
H A D | TypeLoc.cpp | 83 SourceLocation Loc) { 90 TLCasted.initializeLocal(Context, Loc); \ 288 SourceLocation Loc) { 289 setElaboratedKeywordLoc(Loc); 291 Builder.MakeTrivial(Context, getTypePtr()->getQualifier(), Loc); 296 SourceLocation Loc) { 297 setElaboratedKeywordLoc(Loc); 299 Builder.MakeTrivial(Context, getTypePtr()->getQualifier(), Loc); 301 setNameLoc(Loc); 306 SourceLocation Loc) { 82 initializeImpl(ASTContext &Context, TypeLoc TL, SourceLocation Loc) argument 287 initializeLocal(ASTContext &Context, SourceLocation Loc) argument 295 initializeLocal(ASTContext &Context, SourceLocation Loc) argument 305 initializeLocal(ASTContext &Context, SourceLocation Loc) argument 324 initializeArgLocs(ASTContext &Context, unsigned NumArgs, const TemplateArgument *Args, TemplateArgumentLocInfo *ArgInfos, SourceLocation Loc) argument [all...] |
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/ |
H A D | CheckerContext.cpp | 91 StringRef CheckerContext::getMacroNameOrSpelling(SourceLocation &Loc) { argument 92 if (Loc.isMacroID()) 93 return Lexer::getImmediateMacroName(Loc, getSourceManager(), 96 return Lexer::getSpelling(Loc, buf, getSourceManager(), getLangOpts());
|
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Rewrite/Core/ |
H A D | Rewriter.h | 166 static bool isRewritable(SourceLocation Loc) { argument 167 return Loc.isFileID(); 190 /// using the indentation of the source line in position \p Loc. 191 bool InsertText(SourceLocation Loc, StringRef Str, 199 bool InsertTextAfter(SourceLocation Loc, StringRef Str) { argument 200 return InsertText(Loc, Str); 205 bool InsertTextAfterToken(SourceLocation Loc, StringRef Str); 212 bool InsertTextBefore(SourceLocation Loc, StringRef Str) { argument 213 return InsertText(Loc, Str, false); 294 unsigned getLocationOffsetAndFileID(SourceLocation Loc, FileI [all...] |