/external/clang/unittests/Basic/ |
H A D | SourceManagerTest.cpp | 36 SourceMgr(Diags, FileMgr) { 45 SourceManager SourceMgr; member in class:__anon4856::SourceManagerTest 64 FileID mainFileID = SourceMgr.createMainFileIDForMemBuffer(buf); 70 SourceMgr, HeaderInfo, ModLoader, 95 SourceLocation macroExpStartLoc = SourceMgr.translateLineCol(mainFileID, 2, 1); 96 SourceLocation macroExpEndLoc = SourceMgr.translateLineCol(mainFileID, 2, 6); 104 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(lsqrLoc, idLoc)); 105 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, rsqrLoc)); 106 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(macroExpStartLoc, idLoc)); 107 EXPECT_TRUE(SourceMgr [all...] |
/external/llvm/lib/TableGen/ |
H A D | Error.cpp | 21 SourceMgr SrcMgr; 23 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind, 30 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note, 35 PrintMessage(WarningLoc, SourceMgr::DK_Warning, Msg); 39 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); 51 PrintMessage(ErrorLoc, SourceMgr::DK_Error, Msg); 55 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg);
|
H A D | TGLexer.h | 24 class SourceMgr; 62 SourceMgr &SrcMgr; 74 /// by the SourceMgr object. 80 TGLexer(SourceMgr &SrcMgr);
|
/external/llvm/tools/llvm-mc/ |
H A D | Disassembler.h | 25 class SourceMgr; 36 SourceMgr &SM, 41 SourceMgr &SM,
|
H A D | Disassembler.cpp | 28 #include "llvm/Support/SourceMgr.h" 57 SourceMgr &SM, raw_ostream &Out, 75 SourceMgr::DK_Warning, 83 SourceMgr::DK_Warning, 98 SourceMgr &SM) { 129 SM.PrintMessage(SMLoc::getFromPointer(Value.data()), SourceMgr::DK_Error, 148 SourceMgr &SM, 202 SourceMgr &SM,
|
/external/clang/unittests/Lex/ |
H A D | LexerTest.cpp | 35 SourceMgr(Diags, FileMgr) { 44 SourceManager SourceMgr; member in class:__anon4859::LexerTest 69 (void)SourceMgr.createMainFileIDForMemBuffer(buf); 75 SourceMgr, HeaderInfo, ModLoader, 107 macroPair = SourceMgr.getExpansionRange(lsqrLoc); 111 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc)); 113 EXPECT_FALSE(Lexer::isAtStartOfMacroExpansion(idLoc, SourceMgr, LangOpts)); 114 EXPECT_FALSE(Lexer::isAtEndOfMacroExpansion(idLoc, SourceMgr, LangOpts)); 115 EXPECT_TRUE(Lexer::isAtEndOfMacroExpansion(rsqrLoc, SourceMgr, LangOpts, &Loc)); 119 CharSourceRange::getTokenRange(lsqrLoc, idLoc), SourceMgr, LangOpt [all...] |
H A D | PreprocessingRecordTest.cpp | 36 SourceMgr(Diags, FileMgr) { 45 SourceManager SourceMgr; member in class:__anon4860::PreprocessingRecordTest 80 SourceMgr.createMainFileIDForMemBuffer(buf); 86 SourceMgr, HeaderInfo, ModLoader,
|
/external/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 25 class SourceMgr; 30 /// SourceMgr - This owns the files read by a parser, handles include stacks, 32 class SourceMgr { class in namespace:llvm 62 /// is really private to SourceMgr.cpp. 68 SourceMgr(const SourceMgr&); // DO NOT IMPLEMENT 69 void operator=(const SourceMgr&); // DO NOT IMPLEMENT 71 SourceMgr() function in class:llvm::SourceMgr [all...] |
H A D | 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/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 | 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); 243 SourceMgr.getFileEntryForID(CurPPLexer->getFileID())) 265 SourceMgr.getLocForStartOfFile(CurPPLexer->getFileID()) == 282 SourceMgr [all...] |
H A D | PreprocessingRecord.cpp | 42 : SourceMgr(SM), 105 return isPreprocessedEntityIfInFileID(PPE, FID, SourceMgr); 118 FID, SourceMgr); 124 FID, SourceMgr); 132 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); 138 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin())) 164 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); 205 if (SourceMgr.isLoadedSourceLocation(Loc)) 222 if (SourceMgr.isBeforeInTranslationUnit((*I)->getSourceRange().getEnd(), 236 if (SourceMgr [all...] |
/external/clang/include/clang/Lex/ |
H A D | ScratchBuffer.h | 26 SourceManager &SourceMgr; member in class:clang::ScratchBuffer
|
/external/clang/include/clang/AST/ |
H A D | RawCommentList.h | 41 RawComment(const SourceManager &SourceMgr, SourceRange SR, 93 StringRef getRawText(const SourceManager &SourceMgr) const { 97 RawText = getRawTextSlow(SourceMgr); 150 StringRef getRawTextSlow(const SourceManager &SourceMgr) const; 179 RawCommentList(SourceManager &SourceMgr) : argument 180 SourceMgr(SourceMgr), OnlyWhitespaceSeen(true) { } 189 SourceManager &SourceMgr; member in class:clang::RawCommentList
|
/external/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 17 #include "llvm/Support/SourceMgr.h" 37 SourceMgr::~SourceMgr() { 51 unsigned SourceMgr::AddIncludeFile(const std::string &Filename, 72 int SourceMgr::FindBufferContainingLoc(SMLoc Loc) const { 85 SourceMgr::getLineAndColumn(SMLoc Loc, int BufferID) const { 128 void SourceMgr::PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const { 147 SMDiagnostic SourceMgr [all...] |
/external/llvm/utils/FileCheck/ |
H A D | FileCheck.cpp | 24 #include "llvm/Support/SourceMgr.h" 82 bool ParsePattern(StringRef PatternStr, SourceMgr &SM); 95 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer, 100 bool AddRegExToRegEx(StringRef RegExStr, unsigned &CurParen, SourceMgr &SM); 110 bool Pattern::ParsePattern(StringRef PatternStr, SourceMgr &SM) { 120 SM.PrintMessage(PatternLoc, SourceMgr::DK_Error, 148 SourceMgr::DK_Error, 178 SourceMgr::DK_Error, 191 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error, 200 SourceMgr [all...] |
/external/clang/lib/AST/ |
H A D | RawCommentList.cpp | 65 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR, argument 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, 211 !SourceMgr.isBeforeInTranslationUnit( 220 if (!onlyWhitespaceBetween(SourceMgr, 249 unsigned C1EndLine = C1.getEndLine(SourceMgr); 250 unsigned C2BeginLine = C2.getBeginLine(SourceMgr); [all...] |
/external/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; }
|
/external/llvm/include/llvm/MC/MCParser/ |
H A D | MCAsmParser.h | 27 class SourceMgr; 55 virtual SourceMgr &getSourceManager() = 0; 141 MCAsmParser *createMCAsmParser(SourceMgr &, MCContext &,
|
/external/llvm/unittests/Support/ |
H A D | YAMLParserTest.cpp | 13 #include "llvm/Support/SourceMgr.h" 20 // Prevent SourceMgr from writing errors to stderr 27 SourceMgr SM; 36 SourceMgr SM; 141 SourceMgr SM; 178 SourceMgr SM;
|
/external/clang/lib/Rewrite/Core/ |
H A D | Rewriter.cpp | 150 EndOff += Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); 185 const char *Ptr = SourceMgr->getCharacterData(Range.getBegin()); 189 EndOff += Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); 199 EndOff += Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); 213 std::pair<FileID,unsigned> V = SourceMgr->getDecomposedLoc(Loc); 228 StringRef MB = SourceMgr->getBufferData(FID); 244 StringRef MB = SourceMgr->getBufferData(FID); 246 unsigned lineNo = SourceMgr->getLineNumber(FID, StartOffs) - 1; 248 Content = SourceMgr->getSLocEntry(FID).getFile().getContentCache(); 321 StringRef MB = SourceMgr [all...] |
/external/llvm/lib/AsmParser/ |
H A D | Parser.cpp | 18 #include "llvm/Support/SourceMgr.h" 29 SourceMgr SM; 47 Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
|
/external/clang/include/clang/Rewrite/Core/ |
H A D | Rewriter.h | 126 SourceManager *SourceMgr; member in class:clang::Rewriter 150 : SourceMgr(&SM), LangOpts(&LO) {} 151 explicit Rewriter() : SourceMgr(0), LangOpts(0) {} 154 SourceMgr = &SM; 157 SourceManager &getSourceMgr() const { return *SourceMgr; }
|
/external/llvm/include/llvm/TableGen/ |
H A D | Error.h | 18 #include "llvm/Support/SourceMgr.h" 44 extern SourceMgr SrcMgr;
|
/external/clang/lib/Frontend/ |
H A D | VerifyDiagnosticConsumer.cpp | 514 static unsigned PrintUnexpected(DiagnosticsEngine &Diags, SourceManager *SourceMgr, argument 523 if (I->first.isInvalid() || !SourceMgr) 526 OS << "\n Line " << SourceMgr->getPresumedLineNumber(I->first); 537 static unsigned PrintExpected(DiagnosticsEngine &Diags, SourceManager &SourceMgr, argument 546 OS << "\n Line " << SourceMgr.getPresumedLineNumber(D.DiagnosticLoc); 549 << SourceMgr.getFilename(D.DirectiveLoc) << ":" 550 << SourceMgr.getPresumedLineNumber(D.DirectiveLoc) << ")"; 562 static unsigned CheckLists(DiagnosticsEngine &Diags, SourceManager &SourceMgr, argument 572 unsigned LineNo1 = SourceMgr.getPresumedLineNumber(D.DiagnosticLoc); 577 unsigned LineNo2 = SourceMgr 605 CheckResults(DiagnosticsEngine &Diags, SourceManager &SourceMgr, const TextDiagnosticBuffer &Buffer, ExpectedData &ED) argument [all...] |