Searched refs:SourceMgr (Results 1 - 25 of 100) sorted by relevance

1234

/freebsd-10.0-release/contrib/llvm/lib/TableGen/
H A DError.cpp22 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);
H A DTGLexer.h25 class SourceMgr;
63 SourceMgr &SrcMgr;
75 /// by the SourceMgr object.
85 TGLexer(SourceMgr &SrcMgr);
/freebsd-10.0-release/contrib/llvm/tools/llvm-mc/
H A DDisassembler.h25 class SourceMgr;
36 SourceMgr &SM,
H A DDisassembler.cpp24 #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,
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Lex/
H A DScratchBuffer.cpp24 ScratchBuffer::ScratchBuffer(SourceManager &SM) : SourceMgr(SM), CurBuffer(0) {
68 FileID FID = SourceMgr.createFileIDForMemBuffer(Buf);
69 BufferStartLoc = SourceMgr.getLocForStartOfFile(FID);
H A DPPConditionalDirectiveRecord.cpp20 : 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 DPPLexerChange.cpp91 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 DPreprocessingRecord.cpp42 : 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...]
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Lex/
H A DScratchBuffer.h26 SourceManager &SourceMgr; member in class:clang::ScratchBuffer
H A DPPConditionalDirectiveRecord.h27 SourceManager &SourceMgr; member in class:clang::PPConditionalDirectiveRecord
71 SourceManager &getSourceManager() const { return SourceMgr; }
/freebsd-10.0-release/contrib/llvm/include/llvm/Support/
H A DSourceMgr.h1 //===- 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...]
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/AST/
H A DRawCommentList.h43 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) : argument
195 SourceMgr(SourceMgr), OnlyWhitespaceSeen(true) { }
204 SourceManager &SourceMgr; member in class:clang::RawCommentList
H A DCommentParser.h44 const SourceManager &SourceMgr; member in class:clang::comments::Parser
96 const SourceManager &SourceMgr, DiagnosticsEngine &Diags,
/freebsd-10.0-release/contrib/llvm/lib/IRReader/
H A DIRReader.cpp15 #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,
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Format/
H A DWhitespaceManager.h33 WhitespaceManager(SourceManager &SourceMgr, const FormatStyle &Style) argument
34 : SourceMgr(SourceMgr), Style(Style) {}
111 SourceManager &SourceMgr; member in class:clang::format::WhitespaceManager
H A DBreakableToken.h29 BreakableToken(const SourceManager &SourceMgr, const FormatToken &Tok, argument
32 TokenText(SourceMgr.getCharacterData(Tok.getStartOfNonWhitespace()),
58 BreakableStringLiteral(const SourceManager &SourceMgr, const FormatToken &Tok, argument
60 : BreakableToken(SourceMgr, Tok, StartColumn) {
184 BreakableComment(const SourceManager &SourceMgr, const FormatToken &Tok, argument
186 : BreakableToken(SourceMgr, Tok, StartColumn) {}
209 BreakableBlockComment(const SourceManager &SourceMgr,
230 BreakableLineComment(const SourceManager &SourceMgr,
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/AST/
H A DRawCommentList.cpp67 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR, argument
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...]
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Edit/
H A DEditedSource.h28 const SourceManager &SourceMgr; member in class:clang::edit::EditedSource
49 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec),
52 const SourceManager &getSourceManager() const { return SourceMgr; }
/freebsd-10.0-release/contrib/llvm/include/llvm/TableGen/
H A DError.h18 #include "llvm/Support/SourceMgr.h"
34 extern SourceMgr SrcMgr;
/freebsd-10.0-release/contrib/llvm/lib/Support/
H A DSourceMgr.cpp1 //===- 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...]
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Rewrite/Core/
H A DRewriter.cpp152 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...]
/freebsd-10.0-release/contrib/llvm/lib/AsmParser/
H A DParser.cpp19 #include "llvm/Support/SourceMgr.h"
29 SourceMgr SM;
47 Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
H A DLLLexer.h20 #include "llvm/Support/SourceMgr.h"
33 SourceMgr &SM;
46 explicit LLLexer(MemoryBuffer *StartBuf, SourceMgr &SM, SMDiagnostic &,
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Rewrite/Core/
H A DRewriter.h130 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; }
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Format/
H A DFormat.h126 SourceManager &SourceMgr,

Completed in 118 milliseconds

1234