Searched defs:SourceMgr (Results 1 - 25 of 49) sorted by relevance

12

/external/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; }
H A DModuleMap.h40 SourceManager &SourceMgr; member in class:clang::ModuleMap
210 /// \param SourceMgr The source manager used to find module files and headers.
219 ModuleMap(SourceManager &SourceMgr, DiagnosticsEngine &Diags,
/external/clang/unittests/Lex/
H A DPPConditionalDirectiveRecordTest.cpp37 SourceMgr(Diags, FileMgr),
48 SourceManager SourceMgr; member in class:__anon19547::PPConditionalDirectiveRecordTest
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);
H A DLexerTest.cpp56 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; member in class:__anon19544::LexerTest
292 macroPair = SourceMgr.getExpansionRange(lsqrLoc);
296 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc));
298 EXPECT_FALSE(Lexer::isAtStartOfMacroExpansion(idLoc, SourceMgr, LangOpt
[all...]
H A DPPCallbacksTest.cpp122 SourceMgr(Diags, FileMgr), TargetOpts(new TargetOptions()) {
132 SourceManager SourceMgr; member in class:__anon19545::PPCallbacksTest
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
[all...]
/external/clang/include/clang/AST/
H A DCommentParser.h44 const SourceManager &SourceMgr; member in class:clang::comments::Parser
94 const SourceManager &SourceMgr, DiagnosticsEngine &Diags,
H A DCommentSema.h27 class SourceMgr;
41 const SourceManager &SourceMgr; member in class:clang::comments::Sema
73 Sema(llvm::BumpPtrAllocator &Allocator, const SourceManager &SourceMgr,
H A DRawCommentList.h43 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) {} argument
193 SourceManager &SourceMgr; member in class:clang::RawCommentList
/external/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; }
H A DCommit.h48 const SourceManager &SourceMgr; member in class:clang::edit::Commit
62 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), Editor(nullptr),
/external/clang/lib/Format/
H A DWhitespaceManager.h40 WhitespaceManager(SourceManager &SourceMgr, const FormatStyle &Style, argument
42 : SourceMgr(SourceMgr), Style(Style), UseCRLF(UseCRLF) {}
91 IsBeforeInFile(const SourceManager &SourceMgr) : SourceMgr(SourceMgr) {} argument
95 const SourceManager &SourceMgr; member in class:clang::format::WhitespaceManager::Change::IsBeforeInFile
194 SourceManager &SourceMgr; member in class:clang::format::WhitespaceManager
H A DContinuationIndenter.h38 ContinuationIndenter(const FormatStyle &Style, SourceManager &SourceMgr,
137 SourceManager &SourceMgr; member in class:clang::format::ContinuationIndenter
H A DContinuationIndenter.cpp60 SourceManager &SourceMgr,
64 : Style(Style), SourceMgr(SourceMgr), Whitespaces(Whitespaces),
239 int WhitespaceLength = SourceMgr.getSpellingColumnNumber(
241 SourceMgr.getSpellingColumnNumber(
59 ContinuationIndenter(const FormatStyle &Style, SourceManager &SourceMgr, WhitespaceManager &Whitespaces, encoding::Encoding Encoding, bool BinPackInconclusiveFunctions) argument
/external/clang/tools/clang-check/
H A DClangCheck.cpp120 clang::SourceManager& SourceMgr,
123 : clang::FixItRewriter(Diags, SourceMgr, LangOpts, FixItOpts) {
119 FixItRewriter(clang::DiagnosticsEngine& Diags, clang::SourceManager& SourceMgr, const clang::LangOptions& LangOpts, clang::FixItOptions* FixItOpts) argument
/external/clang/unittests/AST/
H A DCommentLexer.cpp34 SourceMgr(Diags, FileMgr),
42 SourceManager SourceMgr; member in class:clang::comments::__anon19529::CommentLexerTest
64 FileID File = SourceMgr.createFileID(Buf);
65 SourceLocation Begin = SourceMgr.getLocForStartOfFile(File);
H A DCommentParser.cpp41 SourceMgr(Diags, FileMgr),
49 SourceManager SourceMgr; member in class:clang::comments::__anon19530::CommentParserTest
58 FileID File = SourceMgr.createFileID(Buf);
59 SourceLocation Begin = SourceMgr.getLocForStartOfFile(File);
63 Sema S(Allocator, SourceMgr, Diags, Traits, /*PP=*/ nullptr);
64 Parser P(L, S, Allocator, SourceMgr, Diags, Traits);
69 FC->dump(llvm::errs(), &Traits, &SourceMgr); local
/external/clang/lib/Rewrite/Frontend/
H A DFixItRewriter.cpp30 FixItRewriter::FixItRewriter(DiagnosticsEngine &Diags, SourceManager &SourceMgr, argument
34 Editor(SourceMgr, LangOpts),
35 Rewrite(SourceMgr, LangOpts),
/external/clang/include/clang/Rewrite/Core/
H A DRewriter.h128 SourceManager *SourceMgr; member in class:clang::Rewriter
153 : SourceMgr(&SM), LangOpts(&LO) {}
154 explicit Rewriter() : SourceMgr(nullptr), LangOpts(nullptr) {}
157 SourceMgr = &SM;
160 SourceManager &getSourceMgr() const { return *SourceMgr; }
/external/clang/lib/AST/
H A DRawCommentList.cpp67 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR, argument
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...]
/external/clang/lib/Frontend/
H A DFrontendActions.cpp271 SourceManager &SourceMgr = CI.getSourceManager(); local
272 if (SourceMgr.getModuleBuildStack().empty())
273 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule,
274 FullSourceLoc(SourceLocation(), SourceMgr));
/external/clang/unittests/Basic/
H A DSourceManagerTest.cpp38 SourceMgr(Diags, FileMgr),
48 SourceManager SourceMgr; member in class:__anon19539::SourceManagerTest
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
[all...]
/external/clang/lib/Lex/
H A DTokenLexer.cpp574 SourceManager &SourceMgr = PP.getSourceManager(); local
575 FileID LocFileID = SourceMgr.getFileID(ResultTokLoc);
579 = SourceMgr.getBufferData(LocFileID, &Invalid).data();
585 Lexer TL(SourceMgr.getLocForStartOfFile(LocFileID),
/external/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;
35 class SourceMgr { class in namespace:llvm
63 /// 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
76 ~SourceMgr();
[all...]
/external/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() {
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
[all...]

Completed in 397 milliseconds

12