/freebsd-10.0-release/contrib/llvm/lib/TableGen/ |
H A D | Error.cpp | 22 SourceMgr SrcMgr; 25 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind, 29 if (Kind == SourceMgr::DK_Error) 37 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note, 42 PrintMessage(WarningLoc, SourceMgr::DK_Warning, Msg); 46 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); 54 PrintMessage(ErrorLoc, SourceMgr::DK_Error, Msg); 58 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg);
|
H A D | TGLexer.h | 25 class SourceMgr; 63 SourceMgr &SrcMgr; 75 /// by the SourceMgr object. 85 TGLexer(SourceMgr &SrcMgr);
|
/freebsd-10.0-release/contrib/llvm/tools/llvm-mc/ |
H A D | Disassembler.h | 25 class SourceMgr; 36 SourceMgr &SM,
|
H A D | Disassembler.cpp | 24 #include "llvm/Support/SourceMgr.h" 53 SourceMgr &SM, raw_ostream &Out, 71 SourceMgr::DK_Warning, 79 SourceMgr::DK_Warning, 94 SourceMgr &SM) { 125 SM.PrintMessage(SMLoc::getFromPointer(Value.data()), SourceMgr::DK_Error, 144 SourceMgr &SM,
|
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Lex/ |
H A D | ScratchBuffer.cpp | 24 ScratchBuffer::ScratchBuffer(SourceManager &SM) : SourceMgr(SM), CurBuffer(0) { 68 FileID FID = SourceMgr.createFileIDForMemBuffer(Buf); 69 BufferStartLoc = SourceMgr.getLocForStartOfFile(FID);
|
H A D | PPConditionalDirectiveRecord.cpp | 20 : SourceMgr(SM) { 31 Range.getBegin(), CondDirectiveLoc::Comp(SourceMgr)); 35 if (SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), low->getLoc())) 40 Range.getEnd(), CondDirectiveLoc::Comp(SourceMgr)); 55 if (SourceMgr.isBeforeInTranslationUnit(CondDirectiveLocs.back().getLoc(), 61 Loc, CondDirectiveLoc::Comp(SourceMgr)); 69 if (SourceMgr.isInSystemHeader(DirLoc.getLoc())) 73 SourceMgr.isBeforeInTranslationUnit(CondDirectiveLocs.back().getLoc(),
|
H A D | PPLexerChange.cpp | 91 SourceLocation FileStart = SourceMgr.getLocForStartOfFile(FID); 93 << std::string(SourceMgr.getBufferName(FileStart)) << ""; 98 SourceMgr.getFileEntryForID(FID) == CodeCompletionFile) { 99 CodeCompletionFileLoc = SourceMgr.getLocForStartOfFile(FID); 126 SourceMgr.getFileCharacteristic(CurLexer->getFileLoc()); 150 SourceLocation EnterLoc = SourceMgr.getLocForStartOfFile(FID); 152 SourceMgr.getFileCharacteristic(EnterLoc); 247 SourceMgr.getFileEntryForID(CurPPLexer->getFileID())) 269 SourceMgr.getLocForStartOfFile(CurPPLexer->getFileID()) == 286 SourceMgr [all...] |
H A D | PreprocessingRecord.cpp | 42 : SourceMgr(SM), 102 return isPreprocessedEntityIfInFileID(PPE, FID, SourceMgr); 115 FID, SourceMgr); 123 FID, SourceMgr); 131 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); 137 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin())) 163 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); 204 if (SourceMgr.isLoadedSourceLocation(Loc)) 221 if (SourceMgr.isBeforeInTranslationUnit((*I)->getSourceRange().getEnd(), 235 if (SourceMgr [all...] |
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Lex/ |
H A D | ScratchBuffer.h | 26 SourceManager &SourceMgr; member in class:clang::ScratchBuffer
|
H A D | PPConditionalDirectiveRecord.h | 27 SourceManager &SourceMgr; member in class:clang::PPConditionalDirectiveRecord 71 SourceManager &getSourceManager() const { return SourceMgr; }
|
/freebsd-10.0-release/contrib/llvm/include/llvm/Support/ |
H A D | SourceMgr.h | 1 //===- SourceMgr.h - Manager for Source Buffers & Diagnostics ---*- C++ -*-===// 10 // This file declares the SMDiagnostic and SourceMgr classes. This 27 class SourceMgr; 33 /// SourceMgr - This owns the files read by a parser, handles include stacks, 35 class SourceMgr { class in namespace:llvm 65 /// is really private to SourceMgr.cpp. 71 SourceMgr(const SourceMgr&) LLVM_DELETED_FUNCTION; 72 void operator=(const SourceMgr&) LLVM_DELETED_FUNCTION; 74 SourceMgr() function in class:llvm::SourceMgr [all...] |
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/AST/ |
H A D | RawCommentList.h | 43 RawComment(const SourceManager &SourceMgr, SourceRange SR, 101 StringRef getRawText(const SourceManager &SourceMgr) const { 105 RawText = getRawTextSlow(SourceMgr); 165 StringRef getRawTextSlow(const SourceManager &SourceMgr) const; 194 RawCommentList(SourceManager &SourceMgr) : argument 195 SourceMgr(SourceMgr), OnlyWhitespaceSeen(true) { } 204 SourceManager &SourceMgr; member in class:clang::RawCommentList
|
H A D | CommentParser.h | 44 const SourceManager &SourceMgr; member in class:clang::comments::Parser 96 const SourceManager &SourceMgr, DiagnosticsEngine &Diags,
|
/freebsd-10.0-release/contrib/llvm/lib/IRReader/ |
H A D | IRReader.cpp | 15 #include "llvm/Support/SourceMgr.h" 36 Err = SMDiagnostic(Buffer->getBufferIdentifier(), SourceMgr::DK_Error, 52 Err = SMDiagnostic(Filename, SourceMgr::DK_Error, 69 Err = SMDiagnostic(Buffer->getBufferIdentifier(), SourceMgr::DK_Error, 83 Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
|
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Format/ |
H A D | WhitespaceManager.h | 33 WhitespaceManager(SourceManager &SourceMgr, const FormatStyle &Style) argument 34 : SourceMgr(SourceMgr), Style(Style) {} 111 SourceManager &SourceMgr; member in class:clang::format::WhitespaceManager
|
H A D | BreakableToken.h | 29 BreakableToken(const SourceManager &SourceMgr, const FormatToken &Tok, argument 32 TokenText(SourceMgr.getCharacterData(Tok.getStartOfNonWhitespace()), 58 BreakableStringLiteral(const SourceManager &SourceMgr, const FormatToken &Tok, argument 60 : BreakableToken(SourceMgr, Tok, StartColumn) { 184 BreakableComment(const SourceManager &SourceMgr, const FormatToken &Tok, argument 186 : BreakableToken(SourceMgr, Tok, StartColumn) {} 209 BreakableBlockComment(const SourceManager &SourceMgr, 230 BreakableLineComment(const SourceManager &SourceMgr,
|
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/AST/ |
H A D | RawCommentList.cpp | 67 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR, argument 74 if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) { 113 StringRef RawComment::getRawTextSlow(const SourceManager &SourceMgr) const { 120 SourceMgr.getDecomposedLoc(Range.getBegin()); 122 SourceMgr.getDecomposedLoc(Range.getEnd()); 132 const char *BufferStart = SourceMgr.getBufferData(BeginFileID, 218 !SourceMgr.isBeforeInTranslationUnit( 227 if (!onlyWhitespaceBetween(SourceMgr, 256 unsigned C1EndLine = C1.getEndLine(SourceMgr); 257 unsigned C2BeginLine = C2.getBeginLine(SourceMgr); [all...] |
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Edit/ |
H A D | EditedSource.h | 28 const SourceManager &SourceMgr; member in class:clang::edit::EditedSource 49 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), 52 const SourceManager &getSourceManager() const { return SourceMgr; }
|
/freebsd-10.0-release/contrib/llvm/include/llvm/TableGen/ |
H A D | Error.h | 18 #include "llvm/Support/SourceMgr.h" 34 extern SourceMgr SrcMgr;
|
/freebsd-10.0-release/contrib/llvm/lib/Support/ |
H A D | SourceMgr.cpp | 1 //===- SourceMgr.cpp - Manager for Simple Source Buffers & Diagnostics ----===// 10 // This file implements the SourceMgr class. This class is used as a simple 16 #include "llvm/Support/SourceMgr.h" 41 SourceMgr::~SourceMgr() { 55 unsigned SourceMgr::AddIncludeFile(const std::string &Filename, 76 int SourceMgr::FindBufferContainingLoc(SMLoc Loc) const { 89 SourceMgr::getLineAndColumn(SMLoc Loc, int BufferID) const { 132 void SourceMgr::PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const { 151 SMDiagnostic SourceMgr [all...] |
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Rewrite/Core/ |
H A D | Rewriter.cpp | 152 EndOff += Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); 187 const char *Ptr = SourceMgr->getCharacterData(Range.getBegin()); 191 EndOff += Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); 201 EndOff += Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); 215 std::pair<FileID,unsigned> V = SourceMgr->getDecomposedLoc(Loc); 230 StringRef MB = SourceMgr->getBufferData(FID); 246 StringRef MB = SourceMgr->getBufferData(FID); 248 unsigned lineNo = SourceMgr->getLineNumber(FID, StartOffs) - 1; 250 Content = SourceMgr->getSLocEntry(FID).getFile().getContentCache(); 323 StringRef MB = SourceMgr [all...] |
/freebsd-10.0-release/contrib/llvm/lib/AsmParser/ |
H A D | Parser.cpp | 19 #include "llvm/Support/SourceMgr.h" 29 SourceMgr SM; 47 Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
|
H A D | LLLexer.h | 20 #include "llvm/Support/SourceMgr.h" 33 SourceMgr &SM; 46 explicit LLLexer(MemoryBuffer *StartBuf, SourceMgr &SM, SMDiagnostic &,
|
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Rewrite/Core/ |
H A D | Rewriter.h | 130 SourceManager *SourceMgr; member in class:clang::Rewriter 154 : SourceMgr(&SM), LangOpts(&LO) {} 155 explicit Rewriter() : SourceMgr(0), LangOpts(0) {} 158 SourceMgr = &SM; 161 SourceManager &getSourceMgr() const { return *SourceMgr; }
|
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Format/ |
H A D | Format.h | 126 SourceManager &SourceMgr,
|