commit | 11df744d25609531e817d1940d177723d5131f6c | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Fri Apr 24 14:18:02 2020 -0700 |
committer | Maciej Żenczykowski <maze@google.com> | Fri Apr 24 14:21:32 2020 -0700 |
tree | 75e9b2af73a133835a8637c49734aa95f3de7c2f | |
parent | d31abf8528e1647bff6b0d89d2235add5a09dac7 [diff] |
tests - turn of clang tidy for autogenerated code Fixes: packages/modules/DnsResolver/tests/golddata_proto/android_x86_static/gen/proto/packages/modules/DnsResolver/tests/golddata.pb.cc: 2369:44: error: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression,-warnings-as-errors] reinterpret_cast<char*>(&config_)) + sizeof(result_)); which is actually correct code (it's offset to last field of struct plus size of last field, it so happens that the last field is a pointer) But in general it doesn't make sense to run tidy against autogen'ed code, since it's not fixable. Test: builds Bug: 153035880 Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I9632864baf379f959cdfc02d0dd1e14bdeba11ee
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.