Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11df744d authored by Maciej Żenczykowski's avatar Maciej Żenczykowski
Browse files

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: default avatarMaciej Żenczykowski <maze@google.com>
Change-Id: I9632864baf379f959cdfc02d0dd1e14bdeba11ee
parent d31abf85
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ cc_library_static {
    srcs: [
        "golddata.proto",
    ],
    tidy: false,
}

cc_test {