mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge branch 'ticket32609_squashed'
This commit is contained in:
@@ -13,6 +13,10 @@
|
||||
file in each directory. This file contains empty lines, #-prefixed
|
||||
comments, filenames (like "lib/foo/bar.h") and file globs (like lib/*/*.h)
|
||||
for files that are permitted.
|
||||
|
||||
The script exits with an error if any non-permitted includes are found.
|
||||
.may_include files that contain "!advisory" are considered advisory.
|
||||
Advisory .may_include files only result in warnings, rather than errors.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
!advisory
|
||||
|
||||
permitted.h
|
||||
ext/good.c
|
||||
|
||||
+3
@@ -5,6 +5,9 @@
|
||||
|
||||
# include "permitted.h"
|
||||
|
||||
#include "ext/good.c"
|
||||
#include "bad.c"
|
||||
|
||||
int
|
||||
i_am_a_function(void)
|
||||
{
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
problem file-size a.c 38
|
||||
problem include-count a.c 4
|
||||
problem file-size a.c 41
|
||||
problem include-count a.c 6
|
||||
problem function-size a.c:i_am_a_function() 9
|
||||
problem function-size a.c:another_function() 12
|
||||
problem dependency-violation a.c 3
|
||||
problem dependency-violation a.c 4
|
||||
problem file-size b.c 15
|
||||
problem function-size b.c:foo() 4
|
||||
problem function-size b.c:bar() 5
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
problem file-size a.c 40 -> 38
|
||||
problem file-size a.c 45 -> 41
|
||||
problem file-size z.c 100 -> 0
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
|
||||
problem file-size a.c 40
|
||||
problem include-count a.c 4
|
||||
problem file-size a.c 45
|
||||
problem include-count a.c 6
|
||||
# this problem will produce an error
|
||||
problem function-size a.c:i_am_a_function() 8
|
||||
# this problem will produce a warning
|
||||
@@ -12,7 +12,7 @@ problem file-size b.c 15
|
||||
problem file-size z.c 100
|
||||
|
||||
problem function-size b.c:bar() 5
|
||||
problem dependency-violation a.c 3
|
||||
problem dependency-violation a.c 4
|
||||
problem dependency-violation header.h 3
|
||||
problem file-size header.h 8
|
||||
problem include-count header.h 4
|
||||
|
||||
Reference in New Issue
Block a user