HomeSort by relevance Sort by last modified time
    Searched refs:SourceMgr (Results 1 - 25 of 122) sorted by null

1 2 3 4 5

  /external/llvm/lib/TableGen/
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);
TGLexer.h 25 class SourceMgr;
63 SourceMgr &SrcMgr;
75 /// by the SourceMgr object.
85 TGLexer(SourceMgr &SrcMgr);
  /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,
84 SourceMgr::DK_Warning,
126 SourceMgr &SM) {
140 SM.PrintMessage(SMLoc::getFromPointer(Value.data()), SourceMgr::DK_Error,
159 SourceMgr &SM,
182 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error,
191 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error,
209 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error
    [all...]
  /external/clang/unittests/Basic/
SourceManagerTest.cpp 38 SourceMgr(Diags, FileMgr),
48 SourceManager SourceMgr;
73 FileID mainFileID = SourceMgr.createMainFileIDForMemBuffer(buf);
79 SourceMgr, HeaderInfo, ModLoader,
104 SourceLocation macroExpStartLoc = SourceMgr.translateLineCol(mainFileID, 2, 1);
105 SourceLocation macroExpEndLoc = SourceMgr.translateLineCol(mainFileID, 2, 6);
113 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(lsqrLoc, idLoc));
114 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, rsqrLoc));
115 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(macroExpStartLoc, idLoc));
116 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, macroExpEndLoc))
    [all...]
  /external/clang/lib/Format/
WhitespaceManager.h 40 WhitespaceManager(SourceManager &SourceMgr, const FormatStyle &Style)
41 : SourceMgr(SourceMgr), Style(Style) {}
79 IsBeforeInFile(const SourceManager &SourceMgr) : SourceMgr(SourceMgr) {}
83 const SourceManager &SourceMgr;
162 SourceManager &SourceMgr;
WhitespaceManager.cpp 24 return SourceMgr.isBeforeInTranslationUnit(
54 SourceMgr.getSpellingColumnNumber(Tok.Tok.getLocation()) - 1,
81 std::sort(Changes.begin(), Changes.end(), Change::IsBeforeInFile(SourceMgr));
94 SourceMgr.getFileOffset(Changes[i].OriginalWhitespaceRange.getBegin());
95 unsigned PreviousOriginalWhitespaceEnd = SourceMgr.getFileOffset(
139 (SourceMgr.getSpellingColumnNumber(
141 SourceMgr.getSpellingColumnNumber(
241 unsigned WhitespaceLength = SourceMgr.getFileOffset(Range.getEnd()) -
242 SourceMgr.getFileOffset(Range.getBegin());
244 if (StringRef(SourceMgr.getCharacterData(Range.getBegin())
    [all...]
  /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())) {
290 SourceMgr.getLocForStartOfFile(CurPPLexer->getFileID()) ==
307 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...]
  /external/clang/unittests/Lex/
LexerTest.cpp 52 SourceMgr(Diags, FileMgr),
62 (void) SourceMgr.createMainFileIDForMemBuffer(buf);
68 SourceMgr, HeaderInfo, ModLoader, /*IILookup =*/ 0,
95 SourceMgr, LangOpts, &Invalid);
105 SourceManager SourceMgr;
288 macroPair = SourceMgr.getExpansionRange(lsqrLoc);
292 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc));
294 EXPECT_FALSE(Lexer::isAtStartOfMacroExpansion(idLoc, SourceMgr, LangOpts));
295 EXPECT_FALSE(Lexer::isAtEndOfMacroExpansion(idLoc, SourceMgr, LangOpts));
296 EXPECT_TRUE(Lexer::isAtEndOfMacroExpansion(rsqrLoc, SourceMgr, LangOpts, &Loc))
    [all...]
  /external/clang/include/clang/AST/
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) :
195 SourceMgr(SourceMgr), OnlyWhitespaceSeen(true) { }
204 SourceManager &SourceMgr;
  /external/llvm/lib/IRReader/
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,
  /external/llvm/utils/FileCheck/
FileCheck.cpp 28 #include "llvm/Support/SourceMgr.h"
99 /// SourceMgr used for error reports, and LineNumber is the line number in
102 bool ParsePattern(StringRef PatternStr, SourceMgr &SM, unsigned LineNumber);
115 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer,
129 bool AddRegExToRegEx(StringRef RS, unsigned &CurParen, SourceMgr &SM);
151 bool Pattern::ParsePattern(StringRef PatternStr, SourceMgr &SM,
163 SM.PrintMessage(PatternLoc, SourceMgr::DK_Error,
190 SourceMgr::DK_Error,
222 SourceMgr::DK_Error,
235 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error
    [all...]
  /external/clang/lib/AST/
RawCommentList.cpp 67 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR,
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...]
  /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/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 size_t 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,

Completed in 1266 milliseconds

1 2 3 4 5