aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-12-12 23:47:05 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-12-12 23:47:05 +0800
commitc863cbf80de08d8ba3bbf5fdd9149f6bc6d2c9af (patch)
tree58f18f185b3ec79faf5325b7e2948bb3943cfcdd
parent5e0c312dad2daaae155486397bfbd26d6d172718 (diff)
downloaddexon-solidity-c863cbf80de08d8ba3bbf5fdd9149f6bc6d2c9af.tar
dexon-solidity-c863cbf80de08d8ba3bbf5fdd9149f6bc6d2c9af.tar.gz
dexon-solidity-c863cbf80de08d8ba3bbf5fdd9149f6bc6d2c9af.tar.bz2
dexon-solidity-c863cbf80de08d8ba3bbf5fdd9149f6bc6d2c9af.tar.lz
dexon-solidity-c863cbf80de08d8ba3bbf5fdd9149f6bc6d2c9af.tar.xz
dexon-solidity-c863cbf80de08d8ba3bbf5fdd9149f6bc6d2c9af.tar.zst
dexon-solidity-c863cbf80de08d8ba3bbf5fdd9149f6bc6d2c9af.zip
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
{