/external/llvm/tools/llvm-mc/ |
Disassembler.h | 25 class SourceMgr; 36 SourceMgr &SM,
|
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,
|
/external/clang/unittests/Basic/ |
SourceManagerTest.cpp | 38 SourceMgr(Diags, FileMgr), 48 SourceManager SourceMgr; 72 FileID mainFileID = SourceMgr.createMainFileIDForMemBuffer(buf); 78 SourceMgr, HeaderInfo, ModLoader, 103 SourceLocation macroExpStartLoc = SourceMgr.translateLineCol(mainFileID, 2, 1); 104 SourceLocation macroExpEndLoc = SourceMgr.translateLineCol(mainFileID, 2, 6); 112 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(lsqrLoc, idLoc)); 113 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, rsqrLoc)); 114 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(macroExpStartLoc, idLoc)); 115 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, macroExpEndLoc)) [all...] |
/external/llvm/lib/TableGen/ |
Error.cpp | 22 SourceMgr SrcMgr; 24 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind, 31 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note, 36 PrintMessage(WarningLoc, SourceMgr::DK_Warning, Msg); 40 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); 48 PrintMessage(ErrorLoc, SourceMgr::DK_Error, Msg); 52 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg);
|
TGLexer.h | 25 class SourceMgr; 63 SourceMgr &SrcMgr; 75 /// by the SourceMgr object. 85 TGLexer(SourceMgr &SrcMgr);
|
/external/clang/unittests/Lex/ |
LexerTest.cpp | 38 SourceMgr(Diags, FileMgr), 49 SourceManager SourceMgr; 79 (void)SourceMgr.createMainFileIDForMemBuffer(buf); 85 SourceMgr, HeaderInfo, ModLoader, 117 macroPair = SourceMgr.getExpansionRange(lsqrLoc); 121 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc)); 123 EXPECT_FALSE(Lexer::isAtStartOfMacroExpansion(idLoc, SourceMgr, LangOpts)); 124 EXPECT_FALSE(Lexer::isAtEndOfMacroExpansion(idLoc, SourceMgr, LangOpts)); 125 EXPECT_TRUE(Lexer::isAtEndOfMacroExpansion(rsqrLoc, SourceMgr, LangOpts, &Loc)); 129 CharSourceRange::getTokenRange(lsqrLoc, idLoc), SourceMgr, LangOpts) [all...] |
PPConditionalDirectiveRecordTest.cpp | 38 SourceMgr(Diags, FileMgr), 49 SourceManager SourceMgr; 89 SourceMgr.createMainFileIDForMemBuffer(buf); 95 SourceMgr, HeaderInfo, ModLoader, 100 PPRec = new PPConditionalDirectiveRecord(SourceMgr);
|
/external/clang/lib/Lex/ |
ScratchBuffer.cpp | 24 ScratchBuffer::ScratchBuffer(SourceManager &SM) : SourceMgr(SM), CurBuffer(0) { 68 FileID FID = SourceMgr.createFileIDForMemBuffer(Buf); 69 BufferStartLoc = SourceMgr.getLocForStartOfFile(FID);
|
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(),
|
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.getIncludeLoc(CurPPLexer->getFileID()).isValid()) [all...] |
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.isLoadedSourceLocation(Loc) [all...] |
/external/clang/include/clang/Lex/ |
ScratchBuffer.h | 26 SourceManager &SourceMgr;
|
/external/llvm/include/llvm/Support/ |
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 { 65 /// is really private to SourceMgr.cpp. 71 SourceMgr(const SourceMgr&) LLVM_DELETED_FUNCTION; 72 void operator=(const SourceMgr&) LLVM_DELETED_FUNCTION; 74 SourceMgr() : LineNoCache(0), DiagHandler(0), DiagContext(0) { [all...] |
IRReader.h | 26 #include "llvm/Support/SourceMgr.h" 43 Err = SMDiagnostic(Buffer->getBufferIdentifier(), SourceMgr::DK_Error, 64 Err = SMDiagnostic(Filename, SourceMgr::DK_Error, 84 Err = SMDiagnostic(Buffer->getBufferIdentifier(), SourceMgr::DK_Error, 102 Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
|
/external/clang/include/clang/AST/ |
RawCommentList.h | 42 RawComment(const SourceManager &SourceMgr, SourceRange SR, 94 StringRef getRawText(const SourceManager &SourceMgr) const { 98 RawText = getRawTextSlow(SourceMgr); 152 StringRef getRawTextSlow(const SourceManager &SourceMgr) const; 181 RawCommentList(SourceManager &SourceMgr) : 182 SourceMgr(SourceMgr), OnlyWhitespaceSeen(true) { } 191 SourceManager &SourceMgr;
|
/external/clang/lib/AST/ |
RawCommentList.cpp | 65 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR, 71 if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) { 110 StringRef RawComment::getRawTextSlow(const SourceManager &SourceMgr) const { 117 SourceMgr.getDecomposedLoc(Range.getBegin()); 119 SourceMgr.getDecomposedLoc(Range.getEnd()); 129 const char *BufferStart = SourceMgr.getBufferData(BeginFileID, 213 !SourceMgr.isBeforeInTranslationUnit( 222 if (!onlyWhitespaceBetween(SourceMgr, 251 unsigned C1EndLine = C1.getEndLine(SourceMgr); 252 unsigned C2BeginLine = C2.getBeginLine(SourceMgr); [all...] |
/system/extras/tests/bionic/libc/other/ |
test_jpeg.c | 54 } SourceMgrRec, *SourceMgr; 59 SourceMgr src = (SourceMgr) cinfo->src; 68 SourceMgr src = (SourceMgr) cinfo->src; 77 SourceMgr src = (SourceMgr) cinfo->src; 90 SourceMgr src = (SourceMgr) cinfo->src; 104 _source_init( SourceMgr src, char* base, long size 142 SourceMgrRec sourcemgr; local [all...] |
/external/llvm/unittests/Support/ |
YAMLParserTest.cpp | 14 #include "llvm/Support/SourceMgr.h" 21 // Prevent SourceMgr from writing errors to stderr 34 SourceMgr SM; 43 SourceMgr SM; 148 SourceMgr SM; 185 SourceMgr SM; 193 SourceMgr SM; 206 SourceMgr SM;
|
/external/clang/include/clang/Edit/ |
EditedSource.h | 28 const SourceManager &SourceMgr; 49 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), 52 const SourceManager &getSourceManager() const { return SourceMgr; }
|
/external/clang/include/clang/Format/ |
Format.h | 121 SourceManager &SourceMgr,
|
/external/llvm/include/llvm/TableGen/ |
Error.h | 18 #include "llvm/Support/SourceMgr.h" 34 extern SourceMgr SrcMgr;
|
/external/clang/lib/Rewrite/Core/ |
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->getBufferData(FID) [all...] |
/external/llvm/lib/Support/ |
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::GetMessage(SMLoc Loc, SourceMgr::DiagKind Kind [all...] |
/external/llvm/lib/AsmParser/ |
Parser.cpp | 19 #include "llvm/Support/SourceMgr.h" 29 SourceMgr SM; 47 Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
|
/external/clang/include/clang/Rewrite/Core/ |
Rewriter.h | 130 SourceManager *SourceMgr; 154 : SourceMgr(&SM), LangOpts(&LO) {} 155 explicit Rewriter() : SourceMgr(0), LangOpts(0) {} 158 SourceMgr = &SM; 161 SourceManager &getSourceMgr() const { return *SourceMgr; }
|