From c863cbf80de08d8ba3bbf5fdd9149f6bc6d2c9af Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 12 Dec 2018 15:47:05 +0000 Subject: Add missing header guards --- libsolc/libsolc.h | 2 ++ libsolidity/codegen/ExpressionCompiler.h | 2 ++ libyul/backends/evm/EVMCodeTransform.h | 2 ++ libyul/backends/evm/EVMObjectCompiler.h | 1 + 4 files changed, 7 insertions(+) diff --git a/libsolc/libsolc.h b/libsolc/libsolc.h index 4b0ec639..b58ee805 100644 --- a/libsolc/libsolc.h +++ b/libsolc/libsolc.h @@ -20,6 +20,8 @@ * Public compiler API. */ +#pragma once + #include #ifdef __cplusplus diff --git a/libsolidity/codegen/ExpressionCompiler.h b/libsolidity/codegen/ExpressionCompiler.h index 2bfaab43..e9345ece 100644 --- a/libsolidity/codegen/ExpressionCompiler.h +++ b/libsolidity/codegen/ExpressionCompiler.h @@ -21,6 +21,8 @@ * Solidity AST to EVM bytecode compiler for expressions. */ +#pragma once + #include #include #include diff --git a/libyul/backends/evm/EVMCodeTransform.h b/libyul/backends/evm/EVMCodeTransform.h index 28ef4e45..7be6f892 100644 --- a/libyul/backends/evm/EVMCodeTransform.h +++ b/libyul/backends/evm/EVMCodeTransform.h @@ -18,6 +18,8 @@ * Common code generator for translating Yul / inline assembly to EVM and EVM1.5. */ +#pragma once + #include #include diff --git a/libyul/backends/evm/EVMObjectCompiler.h b/libyul/backends/evm/EVMObjectCompiler.h index 057521a8..9325e072 100644 --- a/libyul/backends/evm/EVMObjectCompiler.h +++ b/libyul/backends/evm/EVMObjectCompiler.h @@ -18,6 +18,7 @@ * Compiler that transforms Yul Objects to EVM bytecode objects. */ +#pragma once namespace yul { -- cgit v1.2.3