aboutsummaryrefslogtreecommitdiffstats
path: root/BaseTypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTypes.h')
-rw-r--r--BaseTypes.h34
1 files changed, 19 insertions, 15 deletions
diff --git a/BaseTypes.h b/BaseTypes.h
index 6d57b74b..c8926b6a 100644
--- a/BaseTypes.h
+++ b/BaseTypes.h
@@ -1,18 +1,18 @@
/*
- This file is part of cpp-ethereum.
+ This file is part of cpp-ethereum.
- cpp-ethereum is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
+ cpp-ethereum is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
- cpp-ethereum is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+ cpp-ethereum is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>.
+ You should have received a copy of the GNU General Public License
+ along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @author Christian <c@ethdev.com>
@@ -23,12 +23,15 @@
#pragma once
-namespace dev {
-namespace solidity {
+namespace dev
+{
+namespace solidity
+{
/// Representation of an interval of source positions.
/// The interval includes start and excludes end.
-struct Location {
+struct Location
+{
Location(int _start, int _end) : start(_start), end(_end) { }
Location() : start(-1), end(-1) { }
@@ -38,4 +41,5 @@ struct Location {
int end;
};
-} }
+}
+}