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

Commit fd6ce3e6 authored by Chih-hung Hsieh's avatar Chih-hung Hsieh Committed by android-build-merger
Browse files

Merge "Call clang-tidy with -fno-caret-diagnostics by default."

am: bd69b7da

Change-Id: I6b364d4b7daf1223d1dad12517ff786f9b9f9af7
parents 780be982 bd69b7da
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1721,13 +1721,13 @@ ifneq (,$(filter 1 true,$(my_tidy_enabled)))
    endif
    # If clang-tidy is not enabled globally, add the -quiet flag.
    ifeq (,$(filter 1 true,$(WITH_TIDY)))
      my_tidy_flags += -quiet
      my_tidy_flags += -quiet -extra-arg-before=-fno-caret-diagnostics
    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__"
      my_tidy_flags += -extra-arg-before=-D__clang_analyzer__
    endif
  endif
endif