mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 17:35:30 +00:00
Enable build/header_guard
This CL enables the build/header_guard lint check. The existing headers which failed the check were updated, missing headers added. An exclusion file for the generator templates was added as well. Bug: dawn:1339 Change-Id: If572e460179ad501293d5d6cf01e0ea900daa979 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86207 Reviewed-by: Ben Clayton <bclayton@google.com> Auto-Submit: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
05caf3a20f
commit
479dc6b7eb
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_BACKENDGL_H_
|
||||
#define DAWNNATIVE_OPENGL_BACKENDGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_BACKENDGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_BACKENDGL_H_
|
||||
|
||||
#include "dawn/native/BackendConnection.h"
|
||||
|
||||
@@ -33,4 +33,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_BACKENDGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_BACKENDGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_BINDGROUPGL_H_
|
||||
#define DAWNNATIVE_OPENGL_BINDGROUPGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_BINDGROUPGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_BINDGROUPGL_H_
|
||||
|
||||
#include "dawn/common/PlacementAllocated.h"
|
||||
#include "dawn/native/BindGroup.h"
|
||||
@@ -38,4 +38,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_BINDGROUPGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_BINDGROUPGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_BINDGROUPLAYOUTGL_H_
|
||||
#define DAWNNATIVE_OPENGL_BINDGROUPLAYOUTGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_BINDGROUPLAYOUTGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_BINDGROUPLAYOUTGL_H_
|
||||
|
||||
#include "dawn/common/SlabAllocator.h"
|
||||
#include "dawn/native/BindGroupLayout.h"
|
||||
@@ -39,4 +39,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_BINDGROUPLAYOUTGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_BINDGROUPLAYOUTGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_BUFFERGL_H_
|
||||
#define DAWNNATIVE_OPENGL_BUFFERGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_BUFFERGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_BUFFERGL_H_
|
||||
|
||||
#include "dawn/native/Buffer.h"
|
||||
|
||||
@@ -55,4 +55,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_BUFFERGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_BUFFERGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_COMMANDBUFFERGL_H_
|
||||
#define DAWNNATIVE_OPENGL_COMMANDBUFFERGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_COMMANDBUFFERGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_COMMANDBUFFERGL_H_
|
||||
|
||||
#include "dawn/native/CommandBuffer.h"
|
||||
|
||||
@@ -46,4 +46,4 @@ namespace dawn::native::opengl {
|
||||
const Extent3D& copySize);
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_COMMANDBUFFERGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_COMMANDBUFFERGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_COMPUTEPIPELINEGL_H_
|
||||
#define DAWNNATIVE_OPENGL_COMPUTEPIPELINEGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_COMPUTEPIPELINEGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_COMPUTEPIPELINEGL_H_
|
||||
|
||||
#include "dawn/native/ComputePipeline.h"
|
||||
|
||||
@@ -43,4 +43,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_COMPUTEPIPELINEGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_COMPUTEPIPELINEGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_DEVICEGL_H_
|
||||
#define DAWNNATIVE_OPENGL_DEVICEGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_DEVICEGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_DEVICEGL_H_
|
||||
|
||||
#include "dawn/native/dawn_platform.h"
|
||||
|
||||
@@ -128,4 +128,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_DEVICEGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_DEVICEGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_FORWARD_H_
|
||||
#define DAWNNATIVE_OPENGL_FORWARD_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_FORWARD_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_FORWARD_H_
|
||||
|
||||
#include "dawn/native/ToBackend.h"
|
||||
|
||||
@@ -63,4 +63,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_FORWARD_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_FORWARD_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_GLFORMAT_H_
|
||||
#define DAWNNATIVE_OPENGL_GLFORMAT_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_GLFORMAT_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_GLFORMAT_H_
|
||||
|
||||
#include "dawn/native/Format.h"
|
||||
#include "dawn/native/opengl/opengl_platform.h"
|
||||
@@ -39,4 +39,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_GLFORMAT_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_GLFORMAT_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_NATIVESWAPCHAINIMPLGL_H_
|
||||
#define DAWNNATIVE_OPENGL_NATIVESWAPCHAINIMPLGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_NATIVESWAPCHAINIMPLGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_NATIVESWAPCHAINIMPLGL_H_
|
||||
|
||||
#include "dawn/native/OpenGLBackend.h"
|
||||
|
||||
@@ -55,4 +55,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_NATIVESWAPCHAINIMPLGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_NATIVESWAPCHAINIMPLGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_OPENGLFUNCTIONS_H_
|
||||
#define DAWNNATIVE_OPENGL_OPENGLFUNCTIONS_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_OPENGLFUNCTIONS_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_OPENGLFUNCTIONS_H_
|
||||
|
||||
#include <unordered_set>
|
||||
|
||||
@@ -42,4 +42,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_OPENGLFUNCTIONS_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_OPENGLFUNCTIONS_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_OPENGLVERSION_H_
|
||||
#define DAWNNATIVE_OPENGL_OPENGLVERSION_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_OPENGLVERSION_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_OPENGLVERSION_H_
|
||||
|
||||
#include "dawn/native/opengl/OpenGLFunctionsBase_autogen.h"
|
||||
|
||||
@@ -41,4 +41,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_OPENGLVERSION_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_OPENGLVERSION_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_PERSISTENTPIPELINESTATEGL_H_
|
||||
#define DAWNNATIVE_OPENGL_PERSISTENTPIPELINESTATEGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_PERSISTENTPIPELINESTATEGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_PERSISTENTPIPELINESTATEGL_H_
|
||||
|
||||
#include "dawn/native/dawn_platform.h"
|
||||
#include "dawn/native/opengl/opengl_platform.h"
|
||||
@@ -42,4 +42,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_PERSISTENTPIPELINESTATEGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_PERSISTENTPIPELINESTATEGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_PIPELINEGL_H_
|
||||
#define DAWNNATIVE_OPENGL_PIPELINEGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_PIPELINEGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_PIPELINEGL_H_
|
||||
|
||||
#include "dawn/native/Pipeline.h"
|
||||
|
||||
@@ -66,4 +66,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_PIPELINEGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_PIPELINEGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_PIPELINELAYOUTGL_H_
|
||||
#define DAWNNATIVE_OPENGL_PIPELINELAYOUTGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_PIPELINELAYOUTGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_PIPELINELAYOUTGL_H_
|
||||
|
||||
#include "dawn/native/PipelineLayout.h"
|
||||
|
||||
@@ -47,4 +47,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_PIPELINELAYOUTGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_PIPELINELAYOUTGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_QUERYSETGL_H_
|
||||
#define DAWNNATIVE_OPENGL_QUERYSETGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_QUERYSETGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_QUERYSETGL_H_
|
||||
|
||||
#include "dawn/native/QuerySet.h"
|
||||
|
||||
@@ -31,4 +31,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_QUERYSETGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_QUERYSETGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_QUEUEGL_H_
|
||||
#define DAWNNATIVE_OPENGL_QUEUEGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_QUEUEGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_QUEUEGL_H_
|
||||
|
||||
#include "dawn/native/Queue.h"
|
||||
|
||||
@@ -39,4 +39,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_QUEUEGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_QUEUEGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_RENDERPIPELINEGL_H_
|
||||
#define DAWNNATIVE_OPENGL_RENDERPIPELINEGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_RENDERPIPELINEGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_RENDERPIPELINEGL_H_
|
||||
|
||||
#include "dawn/native/RenderPipeline.h"
|
||||
|
||||
@@ -59,4 +59,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_RENDERPIPELINEGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_RENDERPIPELINEGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_SAMPLERGL_H_
|
||||
#define DAWNNATIVE_OPENGL_SAMPLERGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_SAMPLERGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_SAMPLERGL_H_
|
||||
|
||||
#include "dawn/native/Sampler.h"
|
||||
|
||||
@@ -45,4 +45,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_SAMPLERGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_SAMPLERGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_SHADERMODULEGL_H_
|
||||
#define DAWNNATIVE_OPENGL_SHADERMODULEGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_SHADERMODULEGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_SHADERMODULEGL_H_
|
||||
|
||||
#include "dawn/native/ShaderModule.h"
|
||||
|
||||
@@ -67,4 +67,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_SHADERMODULEGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_SHADERMODULEGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_SWAPCHAINGL_H_
|
||||
#define DAWNNATIVE_OPENGL_SWAPCHAINGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_SWAPCHAINGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_SWAPCHAINGL_H_
|
||||
|
||||
#include "dawn/native/SwapChain.h"
|
||||
|
||||
@@ -35,4 +35,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_SWAPCHAINGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_SWAPCHAINGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_TEXTUREGL_H_
|
||||
#define DAWNNATIVE_OPENGL_TEXTUREGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_TEXTUREGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_TEXTUREGL_H_
|
||||
|
||||
#include "dawn/native/Texture.h"
|
||||
|
||||
@@ -75,4 +75,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_TEXTUREGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_TEXTUREGL_H_
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef DAWNNATIVE_OPENGL_UTILSGL_H_
|
||||
#define DAWNNATIVE_OPENGL_UTILSGL_H_
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_UTILSGL_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_UTILSGL_H_
|
||||
|
||||
#include "dawn/native/Format.h"
|
||||
#include "dawn/native/dawn_platform.h"
|
||||
@@ -38,4 +38,4 @@ namespace dawn::native::opengl {
|
||||
|
||||
} // namespace dawn::native::opengl
|
||||
|
||||
#endif // DAWNNATIVE_OPENGL_UTILSGL_H_
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_UTILSGL_H_
|
||||
|
||||
@@ -12,4 +12,9 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef SRC_DAWN_NATIVE_OPENGL_OPENGL_PLATFORM_H_
|
||||
#define SRC_DAWN_NATIVE_OPENGL_OPENGL_PLATFORM_H_
|
||||
|
||||
#include "dawn/native/opengl/opengl_platform_autogen.h"
|
||||
|
||||
#endif // SRC_DAWN_NATIVE_OPENGL_OPENGL_PLATFORM_H_
|
||||
|
||||
Reference in New Issue
Block a user