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

Commit 9b802e74 authored by George Burgess IV's avatar George Burgess IV Committed by android-build-merger
Browse files

Merge "make: add __clang_analyzer__ to clang-tidy" am: 57273013

am: c3525020

Change-Id: I33bf49999f64af520090dada1b4759d5bc073f66
parents a4d4cf33 c3525020
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1684,6 +1684,12 @@ ifneq (,$(filter 1 true,$(my_tidy_enabled)))
    ifeq ($(my_tidy_flags),)
      my_tidy_flags := $(call default_tidy_header_filter,$(LOCAL_PATH))
    endif

    # We might be using the static analyzer through clang-tidy.
    # https://bugs.llvm.org/show_bug.cgi?id=32914
    ifneq ($(my_tidy_checks),)
      my_tidy_flags += "-extra-arg-before=-D__clang_analyzer__"
    endif
  endif
endif