about summary refs log tree commit diff
path: root/absl/copts
diff options
context:
space:
mode:
Diffstat (limited to 'absl/copts')
-rw-r--r--absl/copts/GENERATED_AbseilCopts.cmake1
-rw-r--r--absl/copts/GENERATED_copts.bzl1
-rw-r--r--absl/copts/copts.py6
-rwxr-xr-xabsl/copts/generate_copts.py3
4 files changed, 8 insertions, 3 deletions
diff --git a/absl/copts/GENERATED_AbseilCopts.cmake b/absl/copts/GENERATED_AbseilCopts.cmake
index 27e6f5a097dc..f968ba72a765 100644
--- a/absl/copts/GENERATED_AbseilCopts.cmake
+++ b/absl/copts/GENERATED_AbseilCopts.cmake
@@ -201,6 +201,7 @@ list(APPEND ABSL_MSVC_FLAGS
     "/wd4180"
     "/wd4244"
     "/wd4267"
+    "/wd4503"
     "/wd4800"
 )
 
diff --git a/absl/copts/GENERATED_copts.bzl b/absl/copts/GENERATED_copts.bzl
index 0feb0f4b61bb..2b4790a8ae4f 100644
--- a/absl/copts/GENERATED_copts.bzl
+++ b/absl/copts/GENERATED_copts.bzl
@@ -202,6 +202,7 @@ ABSL_MSVC_FLAGS = [
     "/wd4180",
     "/wd4244",
     "/wd4267",
+    "/wd4503",
     "/wd4800",
 ]
 
diff --git a/absl/copts/copts.py b/absl/copts/copts.py
index 154c0ce63673..8a0ecf6b75ac 100644
--- a/absl/copts/copts.py
+++ b/absl/copts/copts.py
@@ -163,8 +163,8 @@ COPT_VARS = {
     "ABSL_LLVM_TEST_FLAGS":
         LLVM_TEST_DISABLE_WARNINGS_FLAGS,
     "ABSL_LLVM_EXCEPTIONS_FLAGS": ["-fexceptions"],
-    "ABSL_CLANG_CL_FLAGS": (
-        MSVC_BIG_WARNING_FLAGS + LLVM_DISABLE_WARNINGS_FLAGS + MSVC_DEFINES),
+    "ABSL_CLANG_CL_FLAGS":
+        (MSVC_BIG_WARNING_FLAGS + LLVM_DISABLE_WARNINGS_FLAGS + MSVC_DEFINES),
     "ABSL_CLANG_CL_TEST_FLAGS":
         LLVM_TEST_DISABLE_WARNINGS_FLAGS,
     "ABSL_CLANG_CL_EXCEPTIONS_FLAGS":
@@ -179,6 +179,8 @@ COPT_VARS = {
             "/wd4244",
             # conversion from 'size_t' to 'type', possible loss of data
             "/wd4267",
+            # The decorated name was longer than the compiler limit
+            "/wd4503",
             # forcing value to bool 'true' or 'false' (performance warning)
             "/wd4800",
         ],
diff --git a/absl/copts/generate_copts.py b/absl/copts/generate_copts.py
index 28b677e0cd3c..0e5dc9fad295 100755
--- a/absl/copts/generate_copts.py
+++ b/absl/copts/generate_copts.py
@@ -70,8 +70,9 @@ class StarlarkStyle(object):
     return "GENERATED_copts.bzl"
 
 
-# Copt file generation
 def copt_list(name, arg_list, style):
+  """Copt file generation."""
+
   make_line = lambda s: "    \"" + s + "\"" + style.separator()
   external_str_list = [make_line(s) for s in arg_list]