@@ -5,70 +5,76 @@ cc_test {
5
5
test_suites : [" device-tests" ],
6
6
host_supported : true ,
7
7
srcs : [" JniInvocation_test.cpp" ],
8
- cflags : [" -Wall" , " -Werror" ],
8
+ cflags : [
9
+ " -Wall" ,
10
+ " -Werror" ,
11
+ ],
9
12
// Link to the non-stub version of the library to access some internal
10
13
// functions.
11
14
bootstrap : true ,
12
15
shared_libs : [" libnativehelper" ],
13
16
}
14
17
15
18
cc_test {
16
- name : " JniSafeRegisterNativeMethods_test" ,
17
- host_supported : true ,
18
- srcs : [" JniSafeRegisterNativeMethods_test.cpp" ],
19
+ name : " JniSafeRegisterNativeMethods_test" ,
20
+ host_supported : true ,
21
+ srcs : [" JniSafeRegisterNativeMethods_test.cpp" ],
19
22
20
- cflags : [
21
- // Base set of cflags used by all things ART.
22
- " -fno-rtti" ,
23
- " -ggdb3" ,
24
- " -Wall" ,
25
- " -Werror" ,
26
- " -Wextra" ,
27
- " -Wstrict-aliasing" ,
28
- " -fstrict-aliasing" ,
29
- " -Wunreachable-code" ,
30
- " -Wredundant-decls" ,
31
- " -Wshadow" ,
32
- " -Wunused" ,
33
- " -fvisibility=protected" ,
23
+ cflags : [
24
+ // Base set of cflags used by all things ART.
25
+ " -fno-rtti" ,
26
+ " -ggdb3" ,
27
+ " -Wall" ,
28
+ " -Werror" ,
29
+ " -Wextra" ,
30
+ " -Wstrict-aliasing" ,
31
+ " -fstrict-aliasing" ,
32
+ " -Wunreachable-code" ,
33
+ " -Wredundant-decls" ,
34
+ " -Wshadow" ,
35
+ " -Wunused" ,
36
+ " -fvisibility=protected" ,
34
37
35
- // Warn about thread safety violations with clang.
36
- " -Wthread-safety" ,
37
- " -Wthread-safety-negative" ,
38
+ // Warn about thread safety violations with clang.
39
+ " -Wthread-safety" ,
40
+ " -Wthread-safety-negative" ,
38
41
39
- // Warn if switch fallthroughs aren't annotated.
40
- " -Wimplicit-fallthrough" ,
42
+ // Warn if switch fallthroughs aren't annotated.
43
+ " -Wimplicit-fallthrough" ,
41
44
42
- // Enable float equality warnings.
43
- " -Wfloat-equal" ,
45
+ // Enable float equality warnings.
46
+ " -Wfloat-equal" ,
44
47
45
- // Enable warning of converting ints to void*.
46
- " -Wint-to-void-pointer-cast" ,
48
+ // Enable warning of converting ints to void*.
49
+ " -Wint-to-void-pointer-cast" ,
47
50
48
- // Enable warning of wrong unused annotations.
49
- " -Wused-but-marked-unused" ,
51
+ // Enable warning of wrong unused annotations.
52
+ " -Wused-but-marked-unused" ,
50
53
51
- // Enable warning for deprecated language features.
52
- " -Wdeprecated" ,
54
+ // Enable warning for deprecated language features.
55
+ " -Wdeprecated" ,
53
56
54
- // Enable warning for unreachable break & return.
55
- " -Wunreachable-code-break" ,
56
- " -Wunreachable-code-return" ,
57
+ // Enable warning for unreachable break & return.
58
+ " -Wunreachable-code-break" ,
59
+ " -Wunreachable-code-return" ,
57
60
58
- // Enable thread annotations for std::mutex, etc.
59
- " -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" ,
60
- ],
61
+ // Enable thread annotations for std::mutex, etc.
62
+ " -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" ,
63
+ ],
61
64
62
- tidy : true ,
65
+ tidy : true ,
63
66
64
- shared_libs : [" libnativehelper" ],
67
+ shared_libs : [" libnativehelper" ],
65
68
}
66
69
67
70
cc_test {
68
- name : " libnativehelper_api_test" ,
69
- host_supported : true ,
70
- cflags : [" -Wall" , " -Werror" ],
71
- srcs : [" libnativehelper_api_test.c" ], // C Compilation test.
72
- tidy : true ,
73
- shared_libs : [" libnativehelper" ],
71
+ name : " libnativehelper_api_test" ,
72
+ host_supported : true ,
73
+ cflags : [
74
+ " -Wall" ,
75
+ " -Werror" ,
76
+ ],
77
+ srcs : [" libnativehelper_api_test.c" ], // C Compilation test.
78
+ tidy : true ,
79
+ shared_libs : [" libnativehelper" ],
74
80
}
0 commit comments