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

Commit bd69b7da authored by Chih-hung Hsieh's avatar Chih-hung Hsieh Committed by Gerrit Code Review
Browse files

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

parents b050f66e 4d31b9da
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