@@ -1487,11 +1487,11 @@ std::string DpctGlobalInfo::getStringForRegexReplacement(StringRef MatchedStr) {
14871487 HelperFuncType::HFT_DefaultQueuePtr, Index);
14881488 case ' E' : {
14891489 auto &Vec = DpctGlobalInfo::getInstance ().getCSourceFileList ();
1490- SourceProcessType FileType = GetSourceFileType (Vec[Index]);
1490+ SourceProcessType FileType = GetSourceFileType (Vec[Index]. first );
14911491
1492- const bool HasCUDASyntax = DpctGlobalInfo::hasCUDASyntax (Vec[Index]);
1492+ const bool HasCUDASyntax = DpctGlobalInfo::hasCUDASyntax (Vec[Index]. first );
14931493 const bool IsCppSource = (FileType & SPT_CppSource);
1494- const auto Extention = Vec[Index + 1 ] ;
1494+ const auto Extention = Vec[Index]. second ;
14951495
14961496 if (Extention == " .cc" ) {
14971497 return (HasCUDASyntax && IsCppSource)
@@ -2532,7 +2532,9 @@ bool DpctGlobalInfo::CVersionCUDALaunchUsedFlag = false;
25322532unsigned int DpctGlobalInfo::ColorOption = 1 ;
25332533std::unordered_map<int , std::shared_ptr<DeviceFunctionInfo>>
25342534 DpctGlobalInfo::CubPlaceholderIndexMap;
2535- std::vector<tooling::UnifiedPath> DpctGlobalInfo::CSourceFileList;
2535+ std::vector<std::pair<tooling::UnifiedPath /* including filename*/ ,
2536+ std::string /* extention name*/ >>
2537+ DpctGlobalInfo::CSourceFileList;
25362538bool DpctGlobalInfo::OptimizeMigrationFlag = false ;
25372539std::unordered_map<std::string, std::shared_ptr<PriorityReplInfo>>
25382540 DpctGlobalInfo::PriorityReplInfoMap;
0 commit comments