Lines Matching refs:file_path
87 for file_path in to_rewrite():
88 if ('/generated/' in file_path or
89 'tests/sksl/' in file_path or
90 'third_party/skcms' in file_path or
91 'modules/skcms' in file_path or
93 'jetski' in file_path or
94 'tools/window' in file_path or
95 file_path.startswith('bazel/rbe') or
96 'example/external_client/' in file_path or
98 file_path == 'include/private/base/SkLoadUserConfig.h'):
100 if (file_path.endswith('.h') or
101 file_path.endswith('.c') or
102 file_path.endswith('.m') or
103 file_path.endswith('.mm') or
104 file_path.endswith('.inc') or
105 file_path.endswith('.cc') or
106 file_path.endswith('.cpp')):
108 lines = open(file_path).readlines()
111 output = StringIO() if args.dry_run else open(file_path, 'w')
133 if args.dry_run and output.getvalue() != open(file_path).read():
134 need_rewriting.append(file_path)