File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
clang/lib/DPCT/RulesLangLib Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -965,7 +965,6 @@ void CubRule::processCubTypeDefOrUsing(const TypedefNameDecl *TD) {
965
965
ObjTypeStr.find (" class cub::BlockScan" ) == 0 ||
966
966
ObjTypeStr.find (" class cub::BlockReduce" ) == 0 )) {
967
967
DeleteFlag = false ;
968
- std::cout << " 2" << std::endl;
969
968
break ;
970
969
}
971
970
}
@@ -974,12 +973,10 @@ void CubRule::processCubTypeDefOrUsing(const TypedefNameDecl *TD) {
974
973
auto VarType = AncestorVD->getType ().getCanonicalType ();
975
974
std::string VarTypeStr =
976
975
AncestorVD->getType ().getCanonicalType ().getAsString ();
977
- std::cout << VarTypeStr << std::endl;
978
976
if (isTypeInAnalysisScope (VarType.getTypePtr ()) ||
979
977
!(VarTypeStr.find (" TempStorage" ) != std::string::npos &&
980
978
VarTypeStr.find (" struct cub::" ) == 0 )) {
981
979
DeleteFlag = false ;
982
- std::cout << " 1" << std::endl;
983
980
break ;
984
981
}
985
982
}
@@ -1701,7 +1698,6 @@ void CubRule::runRule(const ast_matchers::MatchFinder::MatchResult &Result) {
1701
1698
processCubTypeDefOrUsing (TD);
1702
1699
} else if (const TypeAliasDecl *TAD =
1703
1700
getNodeAsType<TypeAliasDecl>(Result, " UsingDecl" )) {
1704
- // std::cout << "found" << std::endl;
1705
1701
processCubTypeDefOrUsing (TAD);
1706
1702
} else if (auto TL = getNodeAsType<TypeLoc>(Result, " cudaTypeDef" )) {
1707
1703
processTypeLoc (TL);
You can’t perform that action at this time.
0 commit comments