chore(kernel/environment): fix style
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
3b78af0db5
commit
086dd6b1a1
2 changed files with 7 additions and 4 deletions
|
@ -4,6 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
|
|
||||||
Author: Leonardo de Moura
|
Author: Leonardo de Moura
|
||||||
*/
|
*/
|
||||||
|
#include <utility>
|
||||||
|
#include <vector>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include "kernel/environment.h"
|
#include "kernel/environment.h"
|
||||||
#include "kernel/kernel_exception.h"
|
#include "kernel/kernel_exception.h"
|
||||||
|
@ -58,10 +60,10 @@ optional<definition> environment::find(name const & n) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
definition environment::get(name const & n) const {
|
definition environment::get(name const & n) const {
|
||||||
definition const * r = m_definitions.find(n);
|
definition const * r = m_definitions.find(n);
|
||||||
if (!r)
|
if (!r)
|
||||||
throw_unknown_declaration(*this, n);
|
throw_unknown_declaration(*this, n);
|
||||||
return *r;
|
return *r;
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ noreturn ]] void throw_incompatible_environment(environment const & env) {
|
[[ noreturn ]] void throw_incompatible_environment(environment const & env) {
|
||||||
|
|
|
@ -7,6 +7,7 @@ Author: Leonardo de Moura
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <vector>
|
||||||
#include "util/rc.h"
|
#include "util/rc.h"
|
||||||
#include "util/optional.h"
|
#include "util/optional.h"
|
||||||
#include "util/list.h"
|
#include "util/list.h"
|
||||||
|
|
Loading…
Reference in a new issue