File indexing completed on 2024-12-01 23:40:44
0001 __author__="Aurelija"
0002 __date__ ="$2010-08-09 14.23.54$"
0003
0004 import os.path
0005 from . import buildFileCommentSkipper
0006 from . import cppCommentSkipper
0007
0008 cppCommentFiles = ['.h', '.c', '.cc', '.cxx']
0009 buildfilesCommentFiles = ['buildfile', 'buildfile.xml']
0010
0011 def filter(fileList):
0012
0013 if not fileList: return fileList
0014 head, tail = os.path.split(fileList[0])
0015 root, ext = os.path.splitext(tail)
0016
0017 if (tail.lower() in buildfilesCommentFiles):
0018 fileList = buildFileCommentSkipper.filterFiles(fileList)
0019 elif (ext.lower() in cppCommentFiles):
0020 fileList = cppCommentSkipper.filterFiles(fileList)
0021 return fileList