Lines Matching defs:std
153 std::sort(ExistingFeatures.begin(), ExistingFeatures.end());
154 std::sort(ReadFeatures.begin(), ReadFeatures.end());
211 typedef llvm::StringMap<std::pair<StringRef, bool /*IsUndef*/> >
224 std::pair<StringRef, StringRef> MacroPair = Macro.split('=');
233 Macros[MacroName] = std::make_pair("", true);
248 Macros[MacroName] = std::make_pair(MacroBody, false);
260 std::string &SuggestedPredefines,
272 std::pair<StringRef, bool> Existing = ExistingMacros[MacroName];
275 llvm::StringMap<std::pair<StringRef, bool /*IsUndef*/> >::iterator Known
342 if (std::find(PPOpts.Includes.begin(), PPOpts.Includes.end(), File)
354 if (std::find(PPOpts.MacroIncludes.begin(), PPOpts.MacroIncludes.end(),
370 std::string &SuggestedPredefines) {
406 std::pair<unsigned, unsigned>
411 return std::make_pair(KeyLen, DataLen);
470 std::pair<unsigned, unsigned>
475 return std::make_pair(KeyLen, DataLen);
669 std::pair<unsigned, unsigned>
674 return std::make_pair(KeyLen, DataLen);
719 return std::make_pair(Start, Start + NumDecls);
724 const std::pair<uint64_t, uint64_t> &Offsets,
790 std::map<int, int> FileIDs;
794 std::string Filename(&Record[Idx], &Record[Idx] + FilenameLen);
801 std::vector<LineEntry> Entries;
889 static std::string
890 resolveFileRelativeToOriginalDir(const std::string &Filename,
891 const std::string &OriginalDir,
892 const std::string &CurrDir) {
1046 std::pair<SourceLocation, StringRef> ASTReader::getModuleImportLoc(int ID) {
1048 return std::make_pair(SourceLocation(), "");
1052 return std::make_pair(SourceLocation(), "");
1058 return std::make_pair(SourceLocation(), "");
1062 return std::make_pair(M->ImportLoc, llvm::sys::path::stem(M->FileName));
1263 std::pair<unsigned, unsigned>
1267 return std::make_pair(KeyLen, DataLen);
1660 std::string Filename = OrigFilename;
1670 std::string Resolved = resolveFileRelativeToOriginalDir(Filename,
1685 std::string ErrorStr = "could not find file '";
1742 std::string Filename = filenameStrRef;
1747 std::string resolved = resolveFileRelativeToOriginalDir(Filename,
1761 std::string &Filename) {
1861 const std::string &CurBranch = getClangFullRepositoryVersion();
2084 CommentsCursors.push_back(std::make_pair(C, &F));
2121 GlobalTypeMap.insert(std::make_pair(getTotalNumTypes(), &F));
2125 std::make_pair(LocalBaseTypeIndex,
2147 std::make_pair(getTotalNumDecls() + NUM_PREDEF_DECL_IDS, &F));
2152 std::make_pair(LocalBaseDeclID, F.BaseDeclID - LocalBaseDeclID));
2186 PendingVisibleUpdates[ID].push_back(std::make_pair(Table, &F));
2216 GlobalIdentifierMap.insert(std::make_pair(getTotalNumIdentifiers() + 1,
2222 std::make_pair(LocalBaseIdentifierID,
2310 GlobalSelectorMap.insert(std::make_pair(getTotalNumSelectors()+1, &F));
2315 std::make_pair(LocalBaseSelectorID,
2367 GlobalSLocEntryMap.insert(std::make_pair(RangeStart, &F));
2373 std::make_pair(SourceManager::MaxLoadedOffset - F.SLocEntryBaseOffset
2378 F.SLocRemap.insert(std::make_pair(0U, 0));
2380 F.SLocRemap.insert(std::make_pair(2U,
2427 SLocRemap.insert(std::make_pair(SLocOffset,
2430 std::make_pair(IdentifierIDOffset,
2432 MacroRemap.insert(std::make_pair(MacroIDOffset,
2435 std::make_pair(PreprocessedEntityIDOffset,
2437 SubmoduleRemap.insert(std::make_pair(SubmoduleIDOffset,
2439 SelectorRemap.insert(std::make_pair(SelectorIDOffset,
2441 DeclRemap.insert(std::make_pair(DeclIDOffset,
2444 TypeRemap.insert(std::make_pair(TypeIndexOffset,
2545 GlobalPreprocessedEntityMap.insert(std::make_pair(StartingID, &F));
2550 std::make_pair(LocalBasePreprocessedEntityID,
2564 .push_back(std::make_pair(&F, Record[I+1]));
2729 GlobalMacroMap.insert(std::make_pair(getTotalNumMacros() + 1, &F));
2733 std::make_pair(LocalBaseMacroID,
2794 std::pair<IdentifierInfo *, MacroDirective *> Macro = Names[I].getMacro();
2882 std::pair<GlobalModuleIndex *, GlobalModuleIndex::ErrorCode> Result
2897 ASTReader::ASTReadResult ASTReader::ReadAST(const std::string &FileName,
2947 GlobalBitOffsetsMap.insert(std::make_pair(F.GlobalBitOffset, &F));
3057 std::string ErrorStr;
3079 std::string Msg = "Unable to load module \"" + FileName.str() + "\": "
3093 std::string Msg = "Unable to load module \"" + FileName.str() + "\": "
3364 std::string ASTReader::getOriginalSourceFile(const std::string &ASTFileName,
3368 std::string ErrStr;
3373 return std::string();
3389 return std::string();
3395 return std::string();
3403 return std::string();
3407 return std::string();
3446 std::string &SuggestedPredefines) {
3457 std::string ErrStr;
3553 std::string IgnoredSuggestedPredefines;
3809 GlobalSubmoduleMap.insert(std::make_pair(getTotalNumSubmodules()+1,&F));
3814 std::make_pair(LocalBaseSubmoduleID,
4022 std::string Path = ReadString(Record, Idx);
4033 std::string Prefix = ReadString(Record, Idx);
4053 std::string &SuggestedPredefines) {
4059 std::string Macro = ReadString(Record, Idx);
4061 PPOpts.Macros.push_back(std::make_pair(Macro, IsUndef));
4085 std::pair<ModuleFile *, unsigned>
4093 return std::make_pair(M, LocalIndex);
4096 std::pair<PreprocessingRecord::iterator, PreprocessingRecord::iterator>
4102 return std::make_pair(PreprocessingRecord::iterator(),
4106 std::pair<ASTReader::ModuleDeclIterator, ASTReader::ModuleDeclIterator>
4108 return std::make_pair(ModuleDeclIterator(this, &Mod, Mod.FileSortedDecls),
4115 std::pair<ModuleFile *, unsigned> PPInfo = getModulePreprocessedEntity(Index);
4274 // Do a binary search manually instead of using std::lower_bound because
4281 std::advance(PPI, Half);
4317 std::upper_bound(pp_begin, pp_end, ELoc,
4328 std::pair<unsigned, unsigned>
4331 return std::make_pair(0,0);
4336 return std::make_pair(BeginID, EndID);
4346 std::pair<ModuleFile *, unsigned> PPInfo = getModulePreprocessedEntity(Index);
5616 BeginIt = std::lower_bound(DInfo.Decls.begin(), DInfo.Decls.end(),
5630 EndIt = std::upper_bound(DInfo.Decls.begin(), DInfo.Decls.end(),
5917 std::fprintf(stderr, "*** AST File Statistics:\n");
5920 = TypesLoaded.size() - std::count(TypesLoaded.begin(), TypesLoaded.end(),
5923 = DeclsLoaded.size() - std::count(DeclsLoaded.begin(), DeclsLoaded.end(),
5926 = IdentifiersLoaded.size() - std::count(IdentifiersLoaded.begin(),
5930 = MacrosLoaded.size() - std::count(MacrosLoaded.begin(),
5934 = SelectorsLoaded.size() - std::count(SelectorsLoaded.begin(),
5939 std::fprintf(stderr, " %u/%u source location entries read (%f%%)\n",
5943 std::fprintf(stderr, " %u/%u types read (%f%%)\n",
5947 std::fprintf(stderr, " %u/%u declarations read (%f%%)\n",
5951 std::fprintf(stderr, " %u/%u identifiers read (%f%%)\n",
5955 std::fprintf(stderr, " %u/%u macros read (%f%%)\n",
5959 std::fprintf(stderr, " %u/%u selectors read (%f%%)\n",
5963 std::fprintf(stderr, " %u/%u statements read (%f%%)\n",
5967 std::fprintf(stderr, " %u/%u macros read (%f%%)\n",
5971 std::fprintf(stderr, " %u/%u lexical declcontexts read (%f%%)\n",
5976 std::fprintf(stderr, " %u/%u visible declcontexts read (%f%%)\n",
5981 std::fprintf(stderr, " %u/%u method pool entries read (%f%%)\n",
5987 std::fprintf(stderr, " %u/%u method pool lookups succeeded (%f%%)\n",
5992 std::fprintf(stderr, " %u/%u method pool table lookups succeeded (%f%%)\n",
5999 std::fprintf(stderr,
6006 std::fprintf(stderr, "\n");
6010 std::fprintf(stderr, "\n");
6012 std::fprintf(stderr, "\n");
6289 = S.MethodPool.insert(std::make_pair(Sel, Sema::GlobalMethods())).first;
6314 Undefined.insert(std::make_pair(D, Loc));
6382 SmallVectorImpl<std::pair<Selector, SourceLocation> > &Sels) {
6394 Sels.push_back(std::make_pair(Sel, SelLoc));
6400 SmallVectorImpl<std::pair<IdentifierInfo *, WeakInfo> > &WeakIDs) {
6414 WeakIDs.push_back(std::make_pair(WeakId, WI));
6432 SmallVectorImpl<std::pair<ValueDecl *, SourceLocation> > &Pending) {
6438 Pending.push_back(std::make_pair(D, Loc));
6927 std::pair<CXXCtorInitializer **, unsigned>
7005 return std::make_pair(CtorInitializers, NumInitializers);
7144 std::string ASTReader::ReadString(const RecordData &Record, unsigned &Idx) {
7146 std::string Result(Record.data() + Idx, Record.data() + Idx + Len);
7203 std::vector<RawComment *> Comments;
7204 for (SmallVectorImpl<std::pair<BitstreamCursor,
7259 // FIXME: std::move
7429 if (std::find(SemaObj->IdResolver.begin(Name),