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

1 2 3 4 5 6

  /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 26 #include "llvm/Support/SourceMgr.h"
55 SourceMgr &SM, raw_ostream &Out,
74 SourceMgr::DK_Warning,
87 SourceMgr::DK_Warning,
129 SourceMgr &SM) {
143 SM.PrintMessage(SMLoc::getFromPointer(Value.data()), SourceMgr::DK_Error,
162 SourceMgr &SM,
202 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error,
211 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error,
229 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error
    [all...]
  /external/clang/unittests/Basic/
SourceManagerTest.cpp 38 SourceMgr(Diags, FileMgr),
48 SourceManager SourceMgr;
78 FileID mainFileID = SourceMgr.createFileID(buf);
79 SourceMgr.setMainFileID(mainFileID);
82 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts,
84 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr,
110 SourceLocation macroExpStartLoc = SourceMgr.translateLineCol(mainFileID, 2, 1);
111 SourceLocation macroExpEndLoc = SourceMgr.translateLineCol(mainFileID, 2, 6);
119 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(lsqrLoc, idLoc));
120 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, rsqrLoc))
    [all...]
  /external/clang/lib/Format/
WhitespaceManager.h 40 WhitespaceManager(SourceManager &SourceMgr, const FormatStyle &Style,
42 : SourceMgr(SourceMgr), Style(Style), UseCRLF(UseCRLF) {}
91 IsBeforeInFile(const SourceManager &SourceMgr) : SourceMgr(SourceMgr) {}
95 const SourceManager &SourceMgr;
194 SourceManager &SourceMgr;
  /external/llvm/unittests/Support/
SourceMgrTest.cpp 1 //===- unittests/Support/SourceMgrTest.cpp - SourceMgr tests --------------===//
10 #include "llvm/Support/SourceMgr.h"
21 SourceMgr SM;
39 void printMessage(SMLoc Loc, SourceMgr::DiagKind Kind,
51 printMessage(getLoc(4), SourceMgr::DK_Error, "message", None, None);
61 printMessage(getLoc(4), SourceMgr::DK_Warning, "message", None, None);
71 printMessage(getLoc(4), SourceMgr::DK_Note, "message", None, None);
81 printMessage(getLoc(6), SourceMgr::DK_Error, "message", None, None);
91 printMessage(getLoc(7), SourceMgr::DK_Error, "message", None, None);
101 printMessage(getLoc(4), SourceMgr::DK_Error, "message", getRange(4, 3), None)
    [all...]
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/lib/Lex/
ScratchBuffer.cpp 25 : SourceMgr(SM), CurBuffer(nullptr) {
69 FileID FID = SourceMgr.createFileID(Buf);
70 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);
127 SourceMgr.getFileCharacteristic(CurLexer->getFileLoc());
152 SourceLocation EnterLoc = SourceMgr.getLocForStartOfFile(FID);
154 SourceMgr.getFileCharacteristic(EnterLoc);
285 SourceMgr.getFileEntryForID(CurPPLexer->getFileID())) {
345 SourceMgr.getLocForStartOfFile(CurPPLexer->getFileID()) ==
362 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/AST/
RawCommentList.h 43 RawComment(const SourceManager &SourceMgr, SourceRange SR,
101 StringRef getRawText(const SourceManager &SourceMgr) const {
105 RawText = getRawTextSlow(SourceMgr);
156 StringRef getRawTextSlow(const SourceManager &SourceMgr) const;
184 RawCommentList(SourceManager &SourceMgr) : SourceMgr(SourceMgr) {}
193 SourceManager &SourceMgr;
  /external/clang/include/clang/Lex/
ScratchBuffer.h 26 SourceManager &SourceMgr;
  /external/clang/unittests/Lex/
LexerTest.cpp 56 SourceMgr(Diags, FileMgr),
66 SourceMgr.setMainFileID(SourceMgr.createFileID(buf));
69 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts,
71 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr,
99 SourceMgr, LangOpts, &Invalid);
109 SourceManager SourceMgr;
292 macroPair = SourceMgr.getExpansionRange(lsqrLoc);
296 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc));
298 EXPECT_FALSE(Lexer::isAtStartOfMacroExpansion(idLoc, SourceMgr, LangOpts))
    [all...]
PPCallbacksTest.cpp 122 SourceMgr(Diags, FileMgr), TargetOpts(new TargetOptions()) {
132 SourceManager SourceMgr;
153 const char* B = SourceMgr.getCharacterData(Range.getBegin());
154 const char* E = SourceMgr.getCharacterData(Range.getEnd());
164 SourceMgr.setMainFileID(SourceMgr.createFileID(Buf));
169 HeaderSearch HeaderInfo(HSOpts, SourceMgr, Diags, LangOpts,
174 Preprocessor PP(PPOpts, Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader,
201 SourceMgr.setMainFileID(SourceMgr.createFileID(sourceBuf))
    [all...]
PPConditionalDirectiveRecordTest.cpp 37 SourceMgr(Diags, FileMgr),
48 SourceManager SourceMgr;
94 SourceMgr.setMainFileID(SourceMgr.createFileID(buf));
97 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts,
99 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr,
105 PPRec = new PPConditionalDirectiveRecord(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;
35 class SourceMgr {
63 /// private to SourceMgr.cpp.
71 SourceMgr(const SourceMgr&) LLVM_DELETED_FUNCTION;
72 void operator=(const SourceMgr&) LLVM_DELETED_FUNCTION;
74 SourceMgr()
76 ~SourceMgr();
    [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() {
52 unsigned SourceMgr::AddIncludeFile(const std::string &Filename,
73 unsigned SourceMgr::FindBufferContainingLoc(SMLoc Loc) const {
84 SourceMgr::getLineAndColumn(SMLoc Loc, unsigned BufferID) const {
128 void SourceMgr::PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const {
142 SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, SourceMgr::DiagKind Kind
    [all...]
  /external/clang/lib/AST/
RawCommentList.cpp 67 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR,
73 if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) {
92 StringRef RawComment::getRawTextSlow(const SourceManager &SourceMgr) const {
99 SourceMgr.getDecomposedLoc(Range.getBegin());
100 std::tie(EndFileID, EndOffset) = SourceMgr.getDecomposedLoc(Range.getEnd());
110 const char *BufferStart = SourceMgr.getBufferData(BeginFileID,
220 !SourceMgr.isBeforeInTranslationUnit(Comments.back()->getLocStart(),
245 onlyWhitespaceBetween(SourceMgr, C1.getLocEnd(), C2.getLocStart(),
248 *Comments.back() = RawComment(SourceMgr, MergedRange, true,
262 BeforeThanCompare<RawComment>(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/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/llvm/lib/IRReader/
IRReader.cpp 18 #include "llvm/Support/SourceMgr.h"
39 Err = SMDiagnostic(Buffer->getBufferIdentifier(), SourceMgr::DK_Error,
57 Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
74 Err = SMDiagnostic(Buffer->getBufferIdentifier(), SourceMgr::DK_Error,
92 Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
  /external/llvm/lib/AsmParser/
Parser.cpp 18 #include "llvm/Support/SourceMgr.h"
28 SourceMgr SM;
47 Err = SMDiagnostic(Filename, SourceMgr::DK_Error,

Completed in 727 milliseconds

1 2 3 4 5 6