Commit 459c4d24 authored by Sigurd Schneider's avatar Sigurd Schneider Committed by Commit Bot

[clang-tidy] Suppress compiler flag

Flag -Wno-defaulted-function-deleted is not known to clang 4.0, which is
currently the default on many systems, so filter the flag for now.

R=mslekova@chromium.org

Notry: true
Change-Id: I9ee9cbbf97f411d409b8b4150897d7741abe24af
Reviewed-on: https://chromium-review.googlesource.com/c/1301511
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57033}
parent bba081b1
...@@ -74,6 +74,7 @@ def GenerateCompileCommands(build_folder): ...@@ -74,6 +74,7 @@ def GenerateCompileCommands(build_folder):
line = line.replace('-Wno-ignored-pragma-optimize', '') line = line.replace('-Wno-ignored-pragma-optimize', '')
line = line.replace('-Wno-null-pointer-arithmetic', '') line = line.replace('-Wno-null-pointer-arithmetic', '')
line = line.replace('-Wno-unused-lambda-capture', '') line = line.replace('-Wno-unused-lambda-capture', '')
line = line.replace('-Wno-defaulted-function-deleted', '')
cc_file.write(line) cc_file.write(line)
...@@ -179,7 +180,7 @@ def ClangTidyRunDiff(build_folder, diff_branch, auto_fix): ...@@ -179,7 +180,7 @@ def ClangTidyRunDiff(build_folder, diff_branch, auto_fix):
""" """
The script `clang-tidy-diff` does not provide support to add header- The script `clang-tidy-diff` does not provide support to add header-
filters. To still analyze headers we use the build path option `-path` to filters. To still analyze headers we use the build path option `-path` to
inject out header-filter option. This works because the script just adds inject our header-filter option. This works because the script just adds
the passed path string to the commandline of clang-tidy. the passed path string to the commandline of clang-tidy.
""" """
modified_build_folder = build_folder modified_build_folder = build_folder
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment