/external/clang/lib/Frontend/ |
D | DiagnosticRenderer.cpp | 43 const SourceManager &SM, in getImmediateMacroName() argument 47 while (SM.isMacroArgExpansion(Loc)) in getImmediateMacroName() 48 Loc = SM.getImmediateExpansionRange(Loc).first; in getImmediateMacroName() 52 if (!SM.getFileEntryForID(SM.getFileID(SM.getSpellingLoc(Loc)))) in getImmediateMacroName() 58 Loc = SM.getSpellingLoc(SM.getImmediateExpansionRange(Loc).first); in getImmediateMacroName() 62 std::pair<FileID, unsigned> ExpansionInfo = SM.getDecomposedLoc(Loc); in getImmediateMacroName() 63 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getImmediateMacroName() 64 StringRef ExpansionBuffer = SM.getBufferData(ExpansionInfo.first); in getImmediateMacroName() 93 const SourceManager &SM, const LangOptions &LangOpts, in mergeFixits() argument 95 edit::Commit commit(SM, LangOpts); in mergeFixits() [all …]
|
D | TextDiagnostic.cpp | 680 const SourceManager *SM, in emitDiagnosticMessage() argument 686 emitDiagnosticLoc(Loc, PLoc, Level, Ranges, *SM); in emitDiagnosticMessage() 776 const SourceManager &SM) { in emitDiagnosticLoc() argument 779 FileID FID = SM.getFileID(Loc); in emitDiagnosticLoc() 781 const FileEntry* FE = SM.getFileEntryForID(FID); in emitDiagnosticLoc() 827 SM.getFileID(SM.getExpansionLoc(Loc)); in emitDiagnosticLoc() 836 SourceLocation B = SM.getExpansionLoc(RI->getBegin()); in emitDiagnosticLoc() 837 SourceLocation E = SM.getExpansionLoc(RI->getEnd()); in emitDiagnosticLoc() 845 E = SM.getExpansionRange(RI->getEnd()).second; in emitDiagnosticLoc() 847 std::pair<FileID, unsigned> BInfo = SM.getDecomposedLoc(B); in emitDiagnosticLoc() [all …]
|
D | VerifyDiagnosticConsumer.cpp | 53 SourceManager &SM; member in __anona8d917760111::VerifyFileTracker 56 VerifyFileTracker(VerifyDiagnosticConsumer &Verify, SourceManager &SM) in VerifyFileTracker() argument 57 : Verify(Verify), SM(SM) { } in VerifyFileTracker() 64 Verify.UpdateParsedFileStatus(SM, SM.getFileID(Loc), in FileChanged() 310 static bool ParseDirective(StringRef S, ExpectedData *ED, SourceManager &SM, in ParseDirective() argument 313 DiagnosticsEngine &Diags = PP ? PP->getDiagnostics() : SM.getDiagnostics(); in ParseDirective() 385 unsigned ExpectedLine = SM.getSpellingLineNumber(Pos, &Invalid); in ParseDirective() 389 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), ExpectedLine, 1); in ParseDirective() 394 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), Line, 1); in ParseDirective() 411 if (SM.translateFile(FE).isInvalid()) in ParseDirective() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | PlistDiagnostics.cpp | 86 const SourceManager &SM, in ReportControlFlow() argument 110 SM.getExpansionLoc(I->getStart().asRange().getBegin())); in ReportControlFlow() 111 EmitRange(o, SM, Lexer::getAsCharRange(StartEdge, SM, LangOpts), FM, in ReportControlFlow() 115 SourceRange EndEdge(SM.getExpansionLoc(I->getEnd().asRange().getBegin())); in ReportControlFlow() 116 EmitRange(o, SM, Lexer::getAsCharRange(EndEdge, SM, LangOpts), FM, in ReportControlFlow() 139 const SourceManager &SM, in ReportEvent() argument 158 EmitLocation(o, SM, L, FM, indent); in ReportEvent() 168 EmitRange(o, SM, in ReportEvent() 169 Lexer::getAsCharRange(SM.getExpansionRange(R), SM, LangOpts), in ReportEvent() 198 const FIDMap& FM, const SourceManager &SM, [all …]
|
D | IssueHash.cpp | 129 static std::string NormalizeLine(const SourceManager &SM, FullSourceLoc &L, in NormalizeLine() argument 133 StringRef Str = GetNthLineOfFile(SM.getBuffer(L.getFileID(), L), in NormalizeLine() 138 SM.translateLineCol(SM.getFileID(L), L.getExpansionLineNumber(), col); in NormalizeLine() 140 SM.getBuffer(SM.getFileID(StartOfLine), StartOfLine); in NormalizeLine() 144 const char *BufferPos = SM.getCharacterData(StartOfLine); in NormalizeLine() 147 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(StartOfLine)), LangOpts, in NormalizeLine() 155 LineBuff << std::string(SM.getCharacterData(Token.getLocation()), in NormalizeLine() 174 std::string clang::GetIssueString(const SourceManager &SM, in GetIssueString() argument 184 NormalizeLine(SM, IssueLoc, LangOpts) + Delimiter + BugType) in GetIssueString() 188 SmallString<32> clang::GetIssueHash(const SourceManager &SM, in GetIssueHash() argument [all …]
|
/external/libcxx/test/std/re/re.submatch/re.submatch.members/ |
D | compare_string_type.pass.cpp | 23 typedef std::sub_match<const CharT*> SM; in main() typedef 24 typedef SM::string_type string; in main() 25 SM sm = SM(); in main() 26 SM sm2 = SM(); in main() 37 typedef std::sub_match<const CharT*> SM; in main() typedef 38 typedef SM::string_type string; in main() 39 SM sm = SM(); in main() 40 SM sm2 = SM(); in main()
|
D | compare_value_type_ptr.pass.cpp | 23 typedef std::sub_match<const CharT*> SM; in main() typedef 24 SM sm = SM(); in main() 25 SM sm2 = SM(); in main() 36 typedef std::sub_match<const CharT*> SM; in main() typedef 37 SM sm = SM(); in main() 38 SM sm2 = SM(); in main()
|
D | compare_sub_match.pass.cpp | 23 typedef std::sub_match<const CharT*> SM; in main() typedef 24 SM sm = SM(); in main() 25 SM sm2 = SM(); in main() 39 typedef std::sub_match<const CharT*> SM; in main() typedef 40 SM sm = SM(); in main() 41 SM sm2 = SM(); in main()
|
D | operator_string.pass.cpp | 23 typedef std::sub_match<const CharT*> SM; in main() typedef 24 SM sm = SM(); in main() 25 SM::string_type str = sm; in main() 36 typedef std::sub_match<const CharT*> SM; in main() typedef 37 SM sm = SM(); in main() 38 SM::string_type str = sm; in main()
|
D | str.pass.cpp | 23 typedef std::sub_match<const CharT*> SM; in main() typedef 24 SM sm = SM(); in main() 25 SM::string_type str = sm.str(); in main() 36 typedef std::sub_match<const CharT*> SM; in main() typedef 37 SM sm = SM(); in main() 38 SM::string_type str = sm.str(); in main()
|
/external/libcxx/test/std/re/re.submatch/ |
D | types.pass.cpp | 33 typedef std::sub_match<char*> SM; in main() typedef 34 static_assert((std::is_same<SM::iterator, char*>::value), ""); in main() 35 static_assert((std::is_same<SM::value_type, char>::value), ""); in main() 36 static_assert((std::is_same<SM::difference_type, std::ptrdiff_t>::value), ""); in main() 37 static_assert((std::is_same<SM::string_type, std::string>::value), ""); in main() 38 static_assert((std::is_convertible<SM*, std::pair<char*, char*>*>::value), ""); in main() 40 SM sm; in main() 46 typedef std::sub_match<wchar_t*> SM; in main() typedef 47 static_assert((std::is_same<SM::iterator, wchar_t*>::value), ""); in main() 48 static_assert((std::is_same<SM::value_type, wchar_t>::value), ""); in main() [all …]
|
/external/clang/include/clang/Frontend/ |
D | DiagnosticRenderer.h | 79 const SourceManager *SM, 85 const SourceManager &SM) = 0; 91 const SourceManager &SM) = 0; 94 const SourceManager &SM) = 0; 97 const SourceManager &SM) = 0; 100 const SourceManager &SM) = 0; 111 DiagnosticsEngine::Level Level, const SourceManager &SM); 112 void emitIncludeStackRecursively(SourceLocation Loc, const SourceManager &SM); 113 void emitImportStack(SourceLocation Loc, const SourceManager &SM); 115 const SourceManager &SM); [all …]
|
D | TextDiagnostic.h | 82 const SourceManager *SM, 88 const SourceManager &SM) override; 94 const SourceManager &SM) override { in emitCodeContext() argument 95 emitSnippetAndCaret(Loc, Level, Ranges, Hints, SM); in emitCodeContext() 99 const SourceManager &SM) override; 103 const SourceManager &SM) override; 107 const SourceManager &SM) override; 113 const SourceManager &SM); 117 void emitParseableFixits(ArrayRef<FixItHint> Hints, const SourceManager &SM);
|
/external/llvm/utils/FileCheck/ |
D | FileCheck.cpp | 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, in ParsePattern() argument 187 SM.PrintMessage(PatternLoc, SourceMgr::DK_Error, in ParsePattern() 213 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()), in ParsePattern() 226 if (AddRegExToRegEx(PatternStr.substr(2, End-2), CurParen, SM)) in ParsePattern() 242 size_t End = FindRegexVarEnd(PatternStr.substr(2), SM); in ParsePattern() 245 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()), in ParsePattern() [all …]
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteMacros.cpp | 64 SourceManager &SM = PP.getSourceManager(); in LexRawTokensFromMainFile() local 68 const llvm::MemoryBuffer *FromFile = SM.getBuffer(SM.getMainFileID()); in LexRawTokensFromMainFile() 69 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in LexRawTokensFromMainFile() 91 SourceManager &SM = PP.getSourceManager(); in RewriteMacrosInInput() local 94 Rewrite.setSourceMgr(SM, PP.getLangOpts()); in RewriteMacrosInInput() 95 RewriteBuffer &RB = Rewrite.getEditBuffer(SM.getMainFileID()); in RewriteMacrosInInput() 115 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput() 118 if (!SM.isWrittenInMainFile(PPLoc)) { in RewriteMacrosInInput() 134 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput() 140 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput() [all …]
|
/external/clang/tools/libclang/ |
D | CXSourceLocation.cpp | 217 const SourceManager &SM = in clang_Location_isInSystemHeader() local 219 return SM.isInSystemHeader(Loc); in clang_Location_isInSystemHeader() 228 const SourceManager &SM = in clang_Location_isFromMainFile() local 230 return SM.isWrittenInMainFile(Loc); in clang_Location_isFromMainFile() 251 const SourceManager &SM = in clang_getExpansionLocation() local 253 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in clang_getExpansionLocation() 257 FileID fileID = SM.getFileID(ExpansionLoc); in clang_getExpansionLocation() 259 const SrcMgr::SLocEntry &sloc = SM.getSLocEntry(fileID, &Invalid); in clang_getExpansionLocation() 266 *file = const_cast<FileEntry *>(SM.getFileEntryForSLocEntry(sloc)); in clang_getExpansionLocation() 268 *line = SM.getExpansionLineNumber(ExpansionLoc); in clang_getExpansionLocation() [all …]
|
D | CIndexHigh.cpp | 135 static SourceLocation getFileSpellingLoc(SourceManager &SM, in getFileSpellingLoc() argument 139 SourceLocation SpellLoc = SM.getImmediateSpellingLoc(Loc); in getFileSpellingLoc() 141 return getFileSpellingLoc(SM, SpellLoc, isMacroArg); in getFileSpellingLoc() 143 isMacroArg = SM.isMacroArgExpansion(Loc); in getFileSpellingLoc() 189 SourceManager &SM = Ctx.getSourceManager(); in findFileIdRefVisit() local 193 Loc = getFileSpellingLoc(SM, Loc, isMacroArg); in findFileIdRefVisit() 198 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc); in findFileIdRefVisit() 219 SourceManager &SM = cxtu::getASTUnit(TU)->getSourceManager(); in findIdRefsInFile() local 221 FileID FID = SM.translateFile(File); in findIdRefsInFile() 235 SourceRange Range(SM.getLocForStartOfFile(FID), SM.getLocForEndOfFile(FID)); in findIdRefsInFile() [all …]
|
/external/clang/lib/Analysis/ |
D | CFGStmtMap.cpp | 28 SMap *SM = AsMap(M); in getBlock() local 34 SMap::iterator I = SM->find(X); in getBlock() 35 if (I != SM->end()) { in getBlock() 39 (*SM)[X] = B; in getBlock() 49 static void Accumulate(SMap &SM, CFGBlock *B) { in Accumulate() argument 57 CFGBlock *&Entry = SM[CS->getStmt()]; in Accumulate() 69 SM[Label] = B; in Accumulate() 75 SM[Term] = B; in Accumulate() 82 SMap *SM = new SMap(); in Build() local 87 Accumulate(*SM, *I); in Build() [all …]
|
/external/clang/include/clang/Basic/ |
D | PlistSupport.h | 22 const SourceManager &SM, SourceLocation L) { in AddFID() argument 23 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in AddFID() 31 inline unsigned GetFID(const FIDMap &FIDs, const SourceManager &SM, in GetFID() argument 33 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in GetFID() 90 inline void EmitLocation(raw_ostream &o, const SourceManager &SM, in EmitLocation() argument 94 FullSourceLoc Loc(SM.getExpansionLoc(L), const_cast<SourceManager &>(SM)); in EmitLocation() 102 EmitInteger(o, GetFID(FM, SM, Loc)) << '\n'; in EmitLocation() 106 inline void EmitRange(raw_ostream &o, const SourceManager &SM, in EmitRange() argument 112 EmitLocation(o, SM, R.getBegin(), FM, indent + 1); in EmitRange() 113 EmitLocation(o, SM, R.getEnd(), FM, indent + 1); in EmitRange()
|
/external/llvm/unittests/Support/ |
D | YAMLParserTest.cpp | 34 SourceMgr SM; in ExpectParseError() local 35 yaml::Stream Stream(Input, SM); in ExpectParseError() 36 SM.setDiagHandler(SuppressDiagnosticsOutput); in ExpectParseError() 43 SourceMgr SM; in ExpectParseSuccess() local 44 yaml::Stream Stream(Input, SM); in ExpectParseSuccess() 161 SourceMgr SM; in TEST() local 162 yaml::Stream Stream("test: |\n Hello\n World\n", SM); in TEST() 191 SourceMgr SM; in ExpectCanParseString() local 192 yaml::Stream Stream(StringInArray, SM); in ExpectCanParseString() 228 SourceMgr SM; in TEST() local [all …]
|
/external/clang/lib/Basic/ |
D | SourceLocation.cpp | 28 Loc.print(OS, SM); in print() 38 void SourceLocation::print(raw_ostream &OS, const SourceManager &SM)const{ in print() 45 PresumedLoc PLoc = SM.getPresumedLoc(*this); in print() 57 SM.getExpansionLoc(*this).print(OS, SM); in print() 60 SM.getSpellingLoc(*this).print(OS, SM); in print() 65 SourceLocation::printToString(const SourceManager &SM) const { in printToString() 68 print(OS, SM); in printToString() 72 LLVM_DUMP_METHOD void SourceLocation::dump(const SourceManager &SM) const { in dump() 73 print(llvm::errs(), SM); in dump()
|
/external/clang/lib/CodeGen/ |
D | CoverageMappingGen.cpp | 78 SourceManager &SM; member in __anon06f642770111::CoverageMappingBuilder 92 CoverageMappingBuilder(CoverageMappingModuleGen &CVM, SourceManager &SM, in CoverageMappingBuilder() argument 94 : CVM(CVM), SM(SM), LangOpts(LangOpts) {} in CoverageMappingBuilder() 101 Lexer::MeasureTokenLength(SM.getSpellingLoc(Loc), SM, LangOpts); in getPreciseTokenLocEnd() 108 return Loc.getLocWithOffset(-SM.getFileOffset(Loc)); in getStartOfFileOrMacro() 109 return SM.getLocForStartOfFile(SM.getFileID(Loc)); in getStartOfFileOrMacro() 115 return Loc.getLocWithOffset(SM.getFileIDSize(SM.getFileID(Loc)) - in getEndOfFileOrMacro() 116 SM.getFileOffset(Loc)); in getEndOfFileOrMacro() 117 return SM.getLocForEndOfFile(SM.getFileID(Loc)); in getEndOfFileOrMacro() 122 return Loc.isMacroID() ? SM.getImmediateExpansionRange(Loc).first in getIncludeOrExpansionLoc() [all …]
|
/external/clang/lib/Edit/ |
D | Commit.cpp | 19 SourceLocation Commit::Edit::getFileLocation(SourceManager &SM) const { in getFileLocation() 20 SourceLocation Loc = SM.getLocForStartOfFile(Offset.getFID()); in getFileLocation() 26 CharSourceRange Commit::Edit::getFileRange(SourceManager &SM) const { in getFileRange() 27 SourceLocation Loc = getFileLocation(SM); in getFileRange() 31 CharSourceRange Commit::Edit::getInsertFromRange(SourceManager &SM) const { in getInsertFromRange() 32 SourceLocation Loc = SM.getLocForStartOfFile(InsertFromRangeOffs.getFID()); in getInsertFromRange() 227 const SourceManager &SM = SourceMgr; in canInsert() local 228 while (SM.isMacroArgExpansion(loc)) in canInsert() 229 loc = SM.getImmediateSpellingLoc(loc); in canInsert() 235 if (SM.isInSystemHeader(loc)) in canInsert() [all …]
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTX.td | 23 // - We use the SM version number instead of explicit feature table. 28 // SM Versions 30 "Target SM 2.0">; 32 "Target SM 2.1">; 34 "Target SM 3.0">; 36 "Target SM 3.2">; 38 "Target SM 3.5">; 40 "Target SM 3.7">; 42 "Target SM 5.0">; 44 "Target SM 5.2">; [all …]
|
/external/clang/lib/Rewrite/ |
D | HTMLRewrite.cpp | 34 SourceManager &SM = R.getSourceMgr(); in HighlightRange() local 35 B = SM.getExpansionLoc(B); in HighlightRange() 36 E = SM.getExpansionLoc(E); in HighlightRange() 37 FileID FID = SM.getFileID(B); in HighlightRange() 38 assert(SM.getFileID(E) == FID && "B/E not in the same file!"); in HighlightRange() 40 unsigned BOffset = SM.getFileOffset(B); in HighlightRange() 41 unsigned EOffset = SM.getFileOffset(E); in HighlightRange() 47 const char *BufferStart = SM.getBufferData(FID, &Invalid).data(); in HighlightRange() 360 const SourceManager &SM = PP.getSourceManager(); in SyntaxHighlight() local 361 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); in SyntaxHighlight() [all …]
|