/external/clang/unittests/Basic/ |
H A D | SourceManagerTest.cpp | 38 SourceMgr(Diags, FileMgr), 48 SourceManager SourceMgr; member in class:__anon5089::SourceManagerTest 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 [all...] |
/external/llvm/lib/TableGen/ |
H A D | 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);
|
/external/clang/unittests/Lex/ |
H A D | LexerTest.cpp | 38 SourceMgr(Diags, FileMgr), 49 SourceManager SourceMgr; member in class:__anon5092::LexerTest 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, LangOpt [all...] |
H A D | PPConditionalDirectiveRecordTest.cpp | 38 SourceMgr(Diags, FileMgr), 49 SourceManager SourceMgr; member in class:__anon5094::PPConditionalDirectiveRecordTest 89 SourceMgr.createMainFileIDForMemBuffer(buf); 95 SourceMgr, HeaderInfo, ModLoader, 100 PPRec = new PPConditionalDirectiveRecord(SourceMgr);
|
/external/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,
|
/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 | 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...] |
/external/clang/include/clang/Lex/ |
H A D | ScratchBuffer.h | 26 SourceManager &SourceMgr; member in class:clang::ScratchBuffer
|
/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 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...] |
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/include/clang/AST/ |
H A D | 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) : argument 182 SourceMgr(SourceMgr), OnlyWhitespaceSeen(true) { } 191 SourceManager &SourceMgr; member in class:clang::RawCommentList
|
/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, 213 !SourceMgr.isBeforeInTranslationUnit( 222 if (!onlyWhitespaceBetween(SourceMgr, 251 unsigned C1EndLine = C1.getEndLine(SourceMgr); 252 unsigned C2BeginLine = C2.getBeginLine(SourceMgr); [all...] |
/external/llvm/unittests/Support/ |
H A D | 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/ |
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/TableGen/ |
H A D | Error.h | 18 #include "llvm/Support/SourceMgr.h" 34 extern SourceMgr SrcMgr;
|
/external/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...] |
/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 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...] |
/external/llvm/lib/AsmParser/ |
H A D | Parser.cpp | 19 #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 | 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; }
|
/external/llvm/tools/llvm-mcmarkup/ |
H A D | llvm-mcmarkup.cpp | 21 #include "llvm/Support/SourceMgr.h" 72 SourceMgr &SM; 74 MarkupParser(MarkupLexer &lex, SourceMgr &SrcMgr) : Lex(lex), SM(SrcMgr) {} 85 SM.PrintMessage(Loc, SourceMgr::DK_Error, Msg); 146 SourceMgr SrcMgr; 202 SrcMgr.PrintMessage(Tag.getLoc(), SourceMgr::DK_Error,
|
/external/llvm/utils/FileCheck/ |
H A D | FileCheck.cpp | 28 #include "llvm/Support/SourceMgr.h" 89 /// SourceMgr used for error reports, and LineNumber is the line number in 92 bool ParsePattern(StringRef PatternStr, SourceMgr &SM, unsigned LineNumber); 105 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer, 110 bool AddRegExToRegEx(StringRef RS, unsigned &CurParen, SourceMgr &SM); 132 bool Pattern::ParsePattern(StringRef PatternStr, SourceMgr &SM, 144 SM.PrintMessage(PatternLoc, SourceMgr::DK_Error, 171 SourceMgr::DK_Error, 203 SourceMgr::DK_Error, 216 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr [all...] |
/external/llvm/include/llvm/MC/MCParser/ |
H A D | MCAsmParser.h | 30 class SourceMgr; 71 virtual SourceMgr &getSourceManager() = 0; 176 MCAsmParser *createMCAsmParser(SourceMgr &, MCContext &,
|