Skip to content

Commit 8157194

Browse files
colemancdaCodaFi
authored andcommitted
[stdlib] Added POSIXErrorCode for Linux
1 parent ebd27a2 commit 8157194

File tree

3 files changed

+349
-34
lines changed

3 files changed

+349
-34
lines changed

include/swift/AST/ResolveCondition.h

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//===--- ResolveCondition.cpp - Resolution of Build Configurations --------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2017 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
12+
///
13+
/// \file
14+
/// This file implements condition resolution for Swift
15+
///
16+
//===----------------------------------------------------------------------===//
17+
18+
#ifndef SWIFT_AST_RESOLVE_CONDITION_H
19+
#define SWIFT_AST_RESOLVE_CONDITION_H
20+
21+
#include "swift/AST/ASTContext.h"
22+
#include "swift/AST/LazyResolver.h"
23+
24+
namespace swift {
25+
class ConditionResolver : public LazyMemberLoader {
26+
public:
27+
virtual void loadAllMembers(Decl *D, uint64_t unused) override;
28+
void loadBody(Stmt *D);
29+
30+
private:
31+
void resolveCondition(IterableDeclContext *IDC,
32+
IfConfigDecl *outermostConfig,
33+
IfConfigDecl *recur);
34+
};
35+
};
36+
37+
#endif /* SWIFT_AST_RESOLVE_CONDITION_H */

0 commit comments

Comments
 (0)