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

1 2 3 4 5 6

  /external/llvm/lib/TableGen/
Error.cpp 23 SourceMgr SrcMgr;
26 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind,
30 if (Kind == SourceMgr::DK_Error)
38 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note,
43 PrintMessage(WarningLoc, SourceMgr::DK_Warning, Msg);
47 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg);
55 PrintMessage(ErrorLoc, SourceMgr::DK_Error, Msg);
59 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg);
  /external/llvm/tools/llvm-mc/
Disassembler.h 25 class SourceMgr;
36 SourceMgr &SM,
Disassembler.cpp 25 #include "llvm/Support/SourceMgr.h"
36 SourceMgr &SM, raw_ostream &Out,
54 SourceMgr::DK_Warning,
67 SourceMgr::DK_Warning,
103 SourceMgr &SM) {
117 SM.PrintMessage(SMLoc::getFromPointer(Value.data()), SourceMgr::DK_Error,
138 SourceMgr &SM,
179 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error,
188 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error,
206 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error
    [all...]
  /external/clang/unittests/Basic/
SourceManagerTest.cpp 38 SourceMgr(Diags, FileMgr),
48 SourceManager SourceMgr;
77 FileID mainFileID = SourceMgr.createFileID(std::move(Buf));
78 SourceMgr.setMainFileID(mainFileID);
81 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts,
83 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr,
109 SourceLocation macroExpStartLoc = SourceMgr.translateLineCol(mainFileID, 2, 1);
110 SourceLocation macroExpEndLoc = SourceMgr.translateLineCol(mainFileID, 2, 6);
118 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(lsqrLoc, idLoc));
119 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) {}
90 IsBeforeInFile(const SourceManager &SourceMgr) : SourceMgr(SourceMgr) {}
94 const SourceManager &SourceMgr;
201 SourceManager &SourceMgr;
  /external/llvm/lib/CodeGen/MIRParser/
MIParser.h 29 class SourceMgr;
71 bool parseMBBReference(MachineBasicBlock *&MBB, SourceMgr &SM,
76 bool parseNamedRegisterReference(unsigned &Reg, SourceMgr &SM,
82 bool parseVirtualRegisterReference(unsigned &Reg, SourceMgr &SM,
88 bool parseStackObjectReference(int &FI, SourceMgr &SM, MachineFunction &MF,
93 bool parseMDNode(MDNode *&Node, SourceMgr &SM, MachineFunction &MF,
  /external/llvm/unittests/Support/
SourceMgrTest.cpp 1 //===- unittests/Support/SourceMgrTest.cpp - SourceMgr tests --------------===//
10 #include "llvm/Support/SourceMgr.h"
21 SourceMgr SM;
40 void printMessage(SMLoc Loc, SourceMgr::DiagKind Kind,
52 printMessage(getLoc(4), SourceMgr::DK_Error, "message", None, None);
62 printMessage(getLoc(4), SourceMgr::DK_Warning, "message", None, None);
72 printMessage(getLoc(4), SourceMgr::DK_Note, "message", None, None);
82 printMessage(getLoc(6), SourceMgr::DK_Error, "message", None, None);
92 printMessage(getLoc(7), SourceMgr::DK_Error, "message", None, None);
102 printMessage(getLoc(4), SourceMgr::DK_Error, "message", getRange(4, 3), None)
    [all...]
  /external/clang/lib/Lex/
ScratchBuffer.cpp 25 : SourceMgr(SM), CurBuffer(nullptr) {
72 FileID FID = SourceMgr.createFileID(std::move(OwnBuf));
73 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(),
PreprocessingRecord.cpp 42 : SourceMgr(SM),
100 return isPreprocessedEntityIfInFileID(PPE, FID, SourceMgr);
113 FID, SourceMgr);
121 FID, SourceMgr);
129 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
135 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin()))
161 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
202 if (SourceMgr.isLoadedSourceLocation(Loc))
219 if (SourceMgr.isBeforeInTranslationUnit((*I)->getSourceRange().getEnd(),
233 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 55 SourceMgr(Diags, FileMgr),
65 SourceMgr.setMainFileID(SourceMgr.createFileID(std::move(Buf)));
68 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts,
70 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr,
98 SourceMgr, LangOpts, &Invalid);
108 SourceManager SourceMgr;
291 macroPair = SourceMgr.getExpansionRange(lsqrLoc);
295 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc));
297 EXPECT_FALSE(Lexer::isAtStartOfMacroExpansion(idLoc, SourceMgr, LangOpts))
    [all...]
PPConditionalDirectiveRecordTest.cpp 37 SourceMgr(Diags, FileMgr),
48 SourceManager SourceMgr;
93 SourceMgr.setMainFileID(SourceMgr.createFileID(std::move(Buf)));
96 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts,
98 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr,
104 PPRec = new PPConditionalDirectiveRecord(SourceMgr);
PPCallbacksTest.cpp 117 SourceMgr(Diags, FileMgr), TargetOpts(new TargetOptions()) {
127 SourceManager SourceMgr;
149 const char* B = SourceMgr.getCharacterData(Range.getBegin());
150 const char* E = SourceMgr.getCharacterData(Range.getEnd());
161 SourceMgr.setMainFileID(SourceMgr.createFileID(std::move(Buf)));
166 HeaderSearch HeaderInfo(HSOpts, SourceMgr, Diags, LangOpts,
171 Preprocessor PP(PPOpts, Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader,
199 SourceMgr.setMainFileID(SourceMgr.createFileID(std::move(SourceBuf)))
    [all...]
  /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 {
68 /// private to SourceMgr.cpp.
76 SourceMgr(const SourceMgr&) = delete;
77 void operator=(const SourceMgr&) = delete;
79 SourceMgr()
81 ~SourceMgr();
    [all...]
  /external/llvm/utils/FileCheck/
FileCheck.cpp 28 #include "llvm/Support/SourceMgr.h"
122 /// which prefix is being matched, SM provides the SourceMgr used for error
128 SourceMgr &SM,
142 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer,
151 bool AddRegExToRegEx(StringRef RS, unsigned &CurParen, SourceMgr &SM);
169 size_t FindRegexVarEnd(StringRef Str, SourceMgr &SM);
175 SourceMgr &SM,
187 SM.PrintMessage(PatternLoc, SourceMgr::DK_Error,
214 SourceMgr::DK_Error,
246 SourceMgr::DK_Error
    [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"
39 SourceMgr::~SourceMgr() {
45 unsigned SourceMgr::AddIncludeFile(const std::string &Filename,
66 unsigned SourceMgr::FindBufferContainingLoc(SMLoc Loc) const {
77 SourceMgr::getLineAndColumn(SMLoc Loc, unsigned BufferID) const {
121 void SourceMgr::PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const {
135 SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, SourceMgr::DiagKind Kind
    [all...]
  /external/clang/lib/AST/
RawCommentList.cpp 109 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR,
115 if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) {
128 SourceMgr.getDecomposedLoc(Range.getBegin());
132 SourceMgr.getBufferData(BeginFileID, &Invalid).data();
151 StringRef RawComment::getRawTextSlow(const SourceManager &SourceMgr) const {
158 SourceMgr.getDecomposedLoc(Range.getBegin());
159 std::tie(EndFileID, EndOffset) = SourceMgr.getDecomposedLoc(Range.getEnd());
169 const char *BufferStart = SourceMgr.getBufferData(BeginFileID,
279 !SourceMgr.isBeforeInTranslationUnit(Comments.back()->getLocStart(),
316 commentsStartOnSameColumn(SourceMgr, C1, C2))) &
    [all...]
  /external/clang/include/clang/Edit/
EditedSource.h 30 const SourceManager &SourceMgr;
55 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), IdentTable(LangOpts),
58 const SourceManager &getSourceManager() const { return SourceMgr; }
  /external/clang/unittests/AST/
ASTVectorTest.cpp 31 SourceMgr(Diags, FileMgr), Idents(LangOpts, nullptr),
32 Ctxt(LangOpts, SourceMgr, Idents, Sels, Builtins) {}
38 SourceManager SourceMgr;
  /external/llvm/lib/AsmParser/
Parser.cpp 19 #include "llvm/Support/SourceMgr.h"
27 SourceMgr SM;
54 Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
72 SourceMgr SM;
  /external/llvm/include/llvm/MC/MCParser/
MCAsmParser.h 30 class SourceMgr;
55 virtual StringRef LookupInlineAsmLabel(StringRef Identifier, SourceMgr &SM,
89 virtual SourceMgr &getSourceManager() = 0;
214 MCAsmParser *createMCAsmParser(SourceMgr &, MCContext &, MCStreamer &,
  /external/llvm/include/llvm/TableGen/
Error.h 18 #include "llvm/Support/SourceMgr.h"
34 extern SourceMgr SrcMgr;
  /external/clang/lib/Rewrite/
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...]

Completed in 497 milliseconds

1 2 3 4 5 6