File tree Expand file tree Collapse file tree
clang/lib/DPCT/RulesLangLib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -965,7 +965,6 @@ void CubRule::processCubTypeDefOrUsing(const TypedefNameDecl *TD) {
965965 ObjTypeStr.find (" class cub::BlockScan" ) == 0 ||
966966 ObjTypeStr.find (" class cub::BlockReduce" ) == 0 )) {
967967 DeleteFlag = false ;
968- std::cout << " 2" << std::endl;
969968 break ;
970969 }
971970 }
@@ -974,12 +973,10 @@ void CubRule::processCubTypeDefOrUsing(const TypedefNameDecl *TD) {
974973 auto VarType = AncestorVD->getType ().getCanonicalType ();
975974 std::string VarTypeStr =
976975 AncestorVD->getType ().getCanonicalType ().getAsString ();
977- std::cout << VarTypeStr << std::endl;
978976 if (isTypeInAnalysisScope (VarType.getTypePtr ()) ||
979977 !(VarTypeStr.find (" TempStorage" ) != std::string::npos &&
980978 VarTypeStr.find (" struct cub::" ) == 0 )) {
981979 DeleteFlag = false ;
982- std::cout << " 1" << std::endl;
983980 break ;
984981 }
985982 }
@@ -1701,7 +1698,6 @@ void CubRule::runRule(const ast_matchers::MatchFinder::MatchResult &Result) {
17011698 processCubTypeDefOrUsing (TD);
17021699 } else if (const TypeAliasDecl *TAD =
17031700 getNodeAsType<TypeAliasDecl>(Result, " UsingDecl" )) {
1704- // std::cout << "found" << std::endl;
17051701 processCubTypeDefOrUsing (TAD);
17061702 } else if (auto TL = getNodeAsType<TypeLoc>(Result, " cudaTypeDef" )) {
17071703 processTypeLoc (TL);
You can’t perform that action at this time.
0 commit comments