aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-13 01:41:58 +0800
committerGitHub <noreply@github.com>2018-12-13 01:41:58 +0800
commitb014732c81cadabd40bdfe9cf8dcf9147a9141e7 (patch)
tree584738fc71f65b299d3bf32f31d9b5cc53168b13
parent17bf164afeb067d3570f0d253f059be6fb3aac4b (diff)
parentc863cbf80de08d8ba3bbf5fdd9149f6bc6d2c9af (diff)
downloaddexon-solidity-b014732c81cadabd40bdfe9cf8dcf9147a9141e7.tar.gz
dexon-solidity-b014732c81cadabd40bdfe9cf8dcf9147a9141e7.tar.zst
dexon-solidity-b014732c81cadabd40bdfe9cf8dcf9147a9141e7.zip
Merge pull request #5638 from ethereum/header-guard
Add missing header guards
-rw-r--r--libsolc/libsolc.h2
-rw-r--r--libsolidity/codegen/ExpressionCompiler.h2
-rw-r--r--libyul/backends/evm/EVMCodeTransform.h2
-rw-r--r--libyul/backends/evm/EVMObjectCompiler.h1
4 files changed, 7 insertions, 0 deletions
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 <stdbool.h>
#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 <functional>
#include <memory>
#include <boost/noncopyable.hpp>
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 <libyul/backends/evm/EVMAssembly.h>
#include <libyul/backends/evm/EVMDialect.h>
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
{