( dir )
| 7 | return path.endswith( ".cpp" ) or path.endswith( ".h" ) or path.endswith( ".hpp" ) |
| 8 | |
| 9 | def fixAllFilesInDir( dir ): |
| 10 | changedFiles = 0 |
| 11 | for f in os.listdir( dir ): |
| 12 | path = os.path.join( dir,f ) |
| 13 | if os.path.isfile( path ): |
| 14 | if isSourceFile( path ): |
| 15 | if fixFile( path ): |
| 16 | changedFiles += 1 |
| 17 | else: |
| 18 | fixAllFilesInDir( path ) |
| 19 | return changedFiles |
| 20 | |
| 21 | def fixFile( path ): |
| 22 | f = open( path, 'r' ) |
no test coverage detected