Home | History | Annotate | Download | only in tests

Lines Matching refs:path_name

148         my $path_name = defined $path ? "$path/$file" : $file;
149 process_file($path_name);
159 my ($path_name) = @_;
161 return ($path_name =~ /^include\//) ? 1 : 0;
168 my ($path_name) = @_;
170 return ($path_name =~ /^coregrind\//) ? 1 : 0;
177 my ($path_name) = @_;
180 return 1 if ($path_name =~ /^$tool\//);
189 my ($path_name) = @_;
191 my $file = basename($path_name);
211 my ($path_name) = @_;
212 my $file = basename($path_name);
214 foreach my $inc (get_included_files($path_name)) {
218 error("File $path_name must not include $inc\n");
221 if (($inc eq "valgrind.h") && ($path_name ne "include/pub_tool_clreq.h")) {
222 error("File $path_name should include pub_tool_clreq.h instead of $inc\n");
228 error("File $path_name must not use vg_assert\n");
233 error("File $path_name must not use VG_(core_panic)\n");
241 my ($path_name) = @_;
242 my $file = basename($path_name);
244 foreach my $inc (get_included_files($path_name)) {
251 error("File $path_name must not include $inc\n");
256 error("File $path_name should include pub_core_clreq.h instead of $inc\n");
262 error("File $path_name must not use tl_assert\n");
269 if (($path_name eq "coregrind/m_libcassert.c") &&
273 error("File $path_name must not use VG_(tool_panic)\n");
282 my ($path_name) = @_;
283 my $file = basename($path_name);
285 foreach my $inc (get_included_files($path_name)) {
289 error("File $path_name must not include $inc\n");
292 if ($inc eq "valgrind.h" && ! $tool_export_header{$path_name}) {
293 error("File $path_name should include pub_tool_clreq.h instead of $inc\n");
299 error("File $path_name must not use vg_assert\n");
304 error("File $path_name must not use VG_(core_panic)\n");
309 my ($path_name) = @_;
311 print "FILE = $path_name\n" if ($debug);
313 if (is_coregrind_export_header($path_name)) {
314 check_coregrind_export_header($path_name);
315 } elsif (is_coregrind_file($path_name)) {
316 check_coregrind_file($path_name);
317 } elsif (is_tool_file($path_name)) {
318 check_tool_file($path_name);