Cleanup lint errors.

This CL cleans up some lint errors.

Change-Id: Ibfe9768cc4272d015a35a8d7edde0390b8fc66a5
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/19504
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
dan sinclair 2020-04-14 18:16:08 +00:00
parent f963128c88
commit 266a32954e
4 changed files with 22 additions and 20 deletions

View File

@ -1,4 +1,4 @@
// Copyright 2020 The Tint Authors. // Copyright 2020 The Tint Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.

View File

@ -1,4 +1,4 @@
// Copyright 2020 The Tint Authors. // Copyright 2020 The Tint Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
@ -55,7 +55,7 @@ class DecoratedVariable;
/// 3. A formal parameter to a function is a name for a typed value to /// 3. A formal parameter to a function is a name for a typed value to
/// be passed into a function. Example: /// be passed into a function. Example:
/// ///
/// fn twice(a: i32) -> i32 { // "a:i32" is the formal parameter /// fn twice(a: i32) -> i32 { // "a:i32" is the formal parameter
/// return a + a; /// return a + a;
/// } /// }
/// ///

View File

@ -337,23 +337,23 @@ std::unique_ptr<ast::Expression> FunctionEmitter::MaybeEmitCombinatorialValue(
// glsl.std.450 readonly function // glsl.std.450 readonly function
// Instructions: // Instructions:
// OpCopyObject // OpCopyObject
// OpUndef // OpUndef
// OpBitcast // OpBitcast
// OpSatConvertSToU // OpSatConvertSToU
// OpSatConvertUToS // OpSatConvertUToS
// OpSatConvertFToS // OpSatConvertFToS
// OpSatConvertFToU // OpSatConvertFToU
// OpSatConvertSToF // OpSatConvertSToF
// OpSatConvertUToF // OpSatConvertUToF
// OpUConvert // OpUConvert
// OpSConvert // OpSConvert
// OpFConvert // OpFConvert
// OpConvertPtrToU // Not in WebGPU // OpConvertPtrToU // Not in WebGPU
// OpConvertUToPtr // Not in WebGPU // OpConvertUToPtr // Not in WebGPU
// OpPtrCastToGeneric // Not in Vulkan // OpPtrCastToGeneric // Not in Vulkan
// OpGenericCastToPtr // Not in Vulkan // OpGenericCastToPtr // Not in Vulkan
// OpGenericCastToPtrExplicit // Not in Vulkan // OpGenericCastToPtrExplicit // Not in Vulkan
// //
// OpAccessChain // OpAccessChain
// OpInBoundsAccessChain // OpInBoundsAccessChain

View File

@ -16,6 +16,8 @@
#define SRC_READER_SPIRV_FUNCTION_H_ #define SRC_READER_SPIRV_FUNCTION_H_
#include <memory> #include <memory>
#include <unordered_map>
#include <unordered_set>
#include <vector> #include <vector>
#include "source/opt/basic_block.h" #include "source/opt/basic_block.h"