/external/clang/lib/Frontend/ |
D | DiagnosticRenderer.cpp | 51 const SourceManager &SM, const LangOptions &LangOpts, in mergeFixits() argument 53 edit::Commit commit(SM, LangOpts); in mergeFixits() 74 edit::EditedSource Editor(SM, LangOpts); in mergeFixits() 86 const SourceManager *SM, in emitDiagnostic() argument 88 assert(SM || Loc.isInvalid()); in emitDiagnostic() 94 emitDiagnosticMessage(Loc, PresumedLoc(), Level, Message, Ranges, SM, D); in emitDiagnostic() 102 mergeFixits(FixItHints, *SM, LangOpts, MergedFixits); in emitDiagnostic() 115 Loc = SM->getFileLoc(Loc); in emitDiagnostic() 117 PresumedLoc PLoc = SM->getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); in emitDiagnostic() 121 emitIncludeStack(Loc, PLoc, Level, *SM); in emitDiagnostic() [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() 141 SM.translateLineCol(SM.getFileID(L), L.getExpansionLineNumber(), col); in NormalizeLine() 143 SM.getBuffer(SM.getFileID(StartOfLine), StartOfLine); in NormalizeLine() 147 const char *BufferPos = SM.getCharacterData(StartOfLine); in NormalizeLine() 150 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(StartOfLine)), LangOpts, in NormalizeLine() 158 LineBuff << std::string(SM.getCharacterData(Token.getLocation()), in NormalizeLine() 177 std::string clang::GetIssueString(const SourceManager &SM, in GetIssueString() argument 187 NormalizeLine(SM, IssueLoc, LangOpts) + Delimiter + BugType) in GetIssueString() 191 SmallString<32> clang::GetIssueHash(const SourceManager &SM, in GetIssueHash() argument [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/FileCheck/ |
D | FileCheck.cpp | 168 bool ParsePattern(StringRef PatternStr, StringRef Prefix, SourceMgr &SM, 172 void PrintVariableUses(const SourceMgr &SM, StringRef Buffer, 175 void PrintFuzzyMatch(const SourceMgr &SM, StringRef Buffer, 185 bool AddRegExToRegEx(StringRef RS, unsigned &CurParen, SourceMgr &SM); 191 size_t FindRegexVarEnd(StringRef Str, SourceMgr &SM); 201 SourceMgr &SM, unsigned LineNumber) { in ParsePattern() argument 215 SM.PrintMessage(PatternLoc, SourceMgr::DK_Error, in ParsePattern() 221 SM.PrintMessage( in ParsePattern() 259 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()), in ParsePattern() 272 if (AddRegExToRegEx(PatternStr.substr(2, End - 2), CurParen, SM)) in ParsePattern() [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 …]
|
/external/llvm/unittests/Support/ |
D | YAMLParserTest.cpp | 33 SourceMgr SM; in ExpectParseError() local 34 yaml::Stream Stream(Input, SM); in ExpectParseError() 35 SM.setDiagHandler(SuppressDiagnosticsOutput); in ExpectParseError() 42 SourceMgr SM; in ExpectParseSuccess() local 43 yaml::Stream Stream(Input, SM); in ExpectParseSuccess() 160 SourceMgr SM; in TEST() local 161 yaml::Stream Stream("test: |\n Hello\n World\n", SM); in TEST() 190 SourceMgr SM; in ExpectCanParseString() local 191 yaml::Stream Stream(StringInArray, SM); in ExpectCanParseString() 227 SourceMgr SM; in TEST() local [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | YAMLParserTest.cpp | 33 SourceMgr SM; in ExpectParseError() local 34 yaml::Stream Stream(Input, SM); in ExpectParseError() 35 SM.setDiagHandler(SuppressDiagnosticsOutput); in ExpectParseError() 42 SourceMgr SM; in ExpectParseSuccess() local 43 yaml::Stream Stream(Input, SM); in ExpectParseSuccess() 160 SourceMgr SM; in TEST() local 161 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/libcxx/test/std/re/re.submatch/ |
D | types.pass.cpp | 34 typedef std::sub_match<char*> SM; in main() typedef 35 static_assert((std::is_same<SM::iterator, char*>::value), ""); in main() 36 static_assert((std::is_same<SM::value_type, char>::value), ""); in main() 37 static_assert((std::is_same<SM::difference_type, std::ptrdiff_t>::value), ""); in main() 38 static_assert((std::is_same<SM::string_type, std::string>::value), ""); in main() 39 static_assert((std::is_convertible<SM*, std::pair<char*, char*>*>::value), ""); in main() 41 SM sm; in main() 47 typedef std::sub_match<wchar_t*> SM; in main() typedef 48 static_assert((std::is_same<SM::iterator, wchar_t*>::value), ""); in main() 49 static_assert((std::is_same<SM::value_type, wchar_t>::value), ""); in main() [all …]
|
/external/llvm/utils/FileCheck/ |
D | FileCheck.cpp | 141 SourceMgr &SM, 155 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer, 164 bool AddRegExToRegEx(StringRef RS, unsigned &CurParen, SourceMgr &SM); 182 size_t FindRegexVarEnd(StringRef Str, SourceMgr &SM); 188 SourceMgr &SM, in ParsePattern() argument 202 SM.PrintMessage(PatternLoc, SourceMgr::DK_Error, in ParsePattern() 234 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()), in ParsePattern() 247 if (AddRegExToRegEx(PatternStr.substr(2, End-2), CurParen, SM)) in ParsePattern() 263 size_t End = FindRegexVarEnd(PatternStr.substr(2), SM); in ParsePattern() 266 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 | 215 const SourceManager &SM = in clang_Location_isInSystemHeader() local 217 return SM.isInSystemHeader(Loc); in clang_Location_isInSystemHeader() 226 const SourceManager &SM = in clang_Location_isFromMainFile() local 228 return SM.isWrittenInMainFile(Loc); in clang_Location_isFromMainFile() 248 const SourceManager &SM = in clang_getExpansionLocation() local 250 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in clang_getExpansionLocation() 254 FileID fileID = SM.getFileID(ExpansionLoc); in clang_getExpansionLocation() 256 const SrcMgr::SLocEntry &sloc = SM.getSLocEntry(fileID, &Invalid); in clang_getExpansionLocation() 263 *file = const_cast<FileEntry *>(SM.getFileEntryForSLocEntry(sloc)); in clang_getExpansionLocation() 265 *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/CodeGen/ |
D | CoverageMappingGen.cpp | 80 SourceManager &SM; member in __anon1aa876fb0111::CoverageMappingBuilder 94 CoverageMappingBuilder(CoverageMappingModuleGen &CVM, SourceManager &SM, in CoverageMappingBuilder() argument 96 : CVM(CVM), SM(SM), LangOpts(LangOpts) {} in CoverageMappingBuilder() 103 Lexer::MeasureTokenLength(SM.getSpellingLoc(Loc), SM, LangOpts); in getPreciseTokenLocEnd() 110 return Loc.getLocWithOffset(-SM.getFileOffset(Loc)); in getStartOfFileOrMacro() 111 return SM.getLocForStartOfFile(SM.getFileID(Loc)); in getStartOfFileOrMacro() 117 return Loc.getLocWithOffset(SM.getFileIDSize(SM.getFileID(Loc)) - in getEndOfFileOrMacro() 118 SM.getFileOffset(Loc)); in getEndOfFileOrMacro() 119 return SM.getLocForEndOfFile(SM.getFileID(Loc)); in getEndOfFileOrMacro() 124 return Loc.isMacroID() ? SM.getImmediateExpansionRange(Loc).first in getIncludeOrExpansionLoc() [all …]
|
/external/swiftshader/third_party/LLVM/utils/FileCheck/ |
D | FileCheck.cpp | 82 bool ParsePattern(StringRef PatternStr, SourceMgr &SM); 95 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer, 100 bool AddRegExToRegEx(StringRef RegExStr, unsigned &CurParen, SourceMgr &SM); 110 bool Pattern::ParsePattern(StringRef PatternStr, SourceMgr &SM) { in ParsePattern() argument 120 SM.PrintMessage(PatternLoc, "found empty check string with prefix '" + in ParsePattern() 146 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()), in ParsePattern() 158 if (AddRegExToRegEx(PatternStr.substr(2, End-2), CurParen, SM)) in ParsePattern() 175 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()), in ParsePattern() 188 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), in ParsePattern() 196 SM.PrintMessage(SMLoc::getFromPointer(Name.data()+i), in ParsePattern() [all …]
|
/external/libcxx/test/std/re/re.submatch/re.submatch.members/ |
D | compare_sub_match.pass.cpp | 24 typedef std::sub_match<const CharT*> SM; in main() typedef 25 SM sm = SM(); in main() 26 SM sm2 = SM(); in main() 40 typedef std::sub_match<const CharT*> SM; in main() typedef 41 SM sm = SM(); in main() 42 SM sm2 = SM(); in main()
|
D | operator_string.pass.cpp | 24 typedef std::sub_match<const CharT*> SM; in main() typedef 25 SM sm = SM(); in main() 26 SM::string_type str = sm; in main() 37 typedef std::sub_match<const CharT*> SM; in main() typedef 38 SM sm = SM(); in main() 39 SM::string_type str = sm; in main()
|
D | compare_string_type.pass.cpp | 24 typedef std::sub_match<const CharT*> SM; in main() typedef 25 typedef SM::string_type string; in main() 26 SM sm = 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()
|
D | str.pass.cpp | 24 typedef std::sub_match<const CharT*> SM; in main() typedef 25 SM sm = SM(); in main() 26 SM::string_type str = sm.str(); in main() 37 typedef std::sub_match<const CharT*> SM; in main() typedef 38 SM sm = SM(); in main() 39 SM::string_type str = sm.str(); in main()
|
/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/swiftshader/third_party/llvm-7.0/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/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/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/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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-mca/ |
D | Support.cpp | 23 void computeProcResourceMasks(const MCSchedModel &SM, in computeProcResourceMasks() argument 29 Masks.resize(SM.getNumProcResourceKinds()); in computeProcResourceMasks() 30 for (unsigned I = 1, E = SM.getNumProcResourceKinds(); I < E; ++I) { in computeProcResourceMasks() 31 const MCProcResourceDesc &Desc = *SM.getProcResource(I); in computeProcResourceMasks() 39 for (unsigned I = 1, E = SM.getNumProcResourceKinds(); I < E; ++I) { in computeProcResourceMasks() 40 const MCProcResourceDesc &Desc = *SM.getProcResource(I); in computeProcResourceMasks() 52 double computeBlockRThroughput(const MCSchedModel &SM, unsigned DispatchWidth, in computeBlockRThroughput() argument 63 for (unsigned I = 0, E = SM.getNumProcResourceKinds(); I < E; ++I) { in computeBlockRThroughput() 68 const MCProcResourceDesc &MCDesc = *SM.getProcResource(I); in computeBlockRThroughput()
|
/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 …]
|