summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chih-Hung Hsieh <chh@google.com> 2018-12-20 15:54:30 -0800
committer Chih-hung Hsieh <chh@google.com> 2019-01-29 23:28:19 +0000
commit75067a74f9baa067eaf72ae5152999e64be17b43 (patch)
treecf44c502941f6461d391f0ae891dc35f9e565563
parent3163e53e920bc225c8128f346b3daa009a241e08 (diff)
Fix/suppress google-explicit-constructor warnings
* Use NOLINT or NOLINTNEXTLINE to suppress warnings on intended converters Bug: 28341362 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor Change-Id: I5c73437ecee0d672863664cc8c2970b099597f77
-rw-r--r--vulkan/libvulkan/layers_extensions.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vulkan/libvulkan/layers_extensions.h b/vulkan/libvulkan/layers_extensions.h
index 1dae4563cd..9e2ff5bb51 100644
--- a/vulkan/libvulkan/layers_extensions.h
+++ b/vulkan/libvulkan/layers_extensions.h
@@ -33,6 +33,7 @@ class LayerRef {
LayerRef& operator=(const LayerRef&) = delete;
// provides bool-like behavior
+ // NOLINTNEXTLINE(google-explicit-constructor)
operator const Layer*() const { return layer_; }
PFN_vkGetInstanceProcAddr GetGetInstanceProcAddr() const;