/external/llvm/lib/TableGen/ |
H A D | 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);
|
H A D | TGLexer.h | 25 class SourceMgr; 63 SourceMgr &SrcMgr; 75 /// by the SourceMgr object. 85 TGLexer(SourceMgr &SrcMgr);
|
/external/clang/unittests/Basic/ |
H A D | SourceManagerTest.cpp | 38 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/Format/ |
H A D | WhitespaceManager.h | 40 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
|
/external/llvm/tools/llvm-mc/ |
H A D | Disassembler.h | 25 class SourceMgr; 36 SourceMgr &SM,
|
H A D | 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 [all...] |
/external/llvm/unittests/Support/ |
H A D | 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 [all...] |
H A D | 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/ |
H A D | ScratchBuffer.cpp | 25 : SourceMgr(SM), CurBuffer(nullptr) { 69 FileID FID = SourceMgr.createFileID(Buf); 70 BufferStartLoc = SourceMgr.getLocForStartOfFile(FID);
|
H A D | 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(),
|
H A D | 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 [all...] |
H A D | 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 [all...] |
/external/clang/include/clang/Lex/ |
H A D | ScratchBuffer.h | 26 SourceManager &SourceMgr; member in class:clang::ScratchBuffer
|
/external/clang/unittests/Lex/ |
H A D | 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; 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 D | PPCallbacksTest.cpp | 122 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...] |
H A D | PPConditionalDirectiveRecordTest.cpp | 37 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);
|
/external/llvm/include/llvm/Support/ |
H A D | 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 { 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/clang/include/clang/AST/ |
H A D | 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) {} argument 193 SourceManager &SourceMgr; member in class:clang::RawCommentList
|
/external/llvm/lib/Support/ |
H A D | 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 [all...] |
/external/clang/lib/AST/ |
H A D | RawCommentList.cpp | 67 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/include/clang/Edit/ |
H A D | EditedSource.h | 28 const SourceManager &SourceMgr; member in class:clang::edit::EditedSource 49 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), 52 const SourceManager &getSourceManager() const { return SourceMgr; }
|
/external/llvm/include/llvm/TableGen/ |
H A D | Error.h | 18 #include "llvm/Support/SourceMgr.h" 34 extern SourceMgr SrcMgr;
|
/external/llvm/lib/IRReader/ |
H A D | 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/ |
H A D | Parser.cpp | 18 #include "llvm/Support/SourceMgr.h" 28 SourceMgr SM; 47 Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
|
/external/llvm/utils/FileCheck/ |
H A D | FileCheck.cpp | 28 #include "llvm/Support/SourceMgr.h" 109 /// which prefix is being matched, SM provides the SourceMgr used for error 115 SourceMgr &SM, 129 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer, 138 bool AddRegExToRegEx(StringRef RS, unsigned &CurParen, SourceMgr &SM); 156 size_t FindRegexVarEnd(StringRef Str, SourceMgr &SM); 162 SourceMgr &SM, 174 SM.PrintMessage(PatternLoc, SourceMgr::DK_Error, 201 SourceMgr::DK_Error, 233 SourceMgr [all...] |