mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The new constraint solver is very close to providing parity with the old solver, and is significantly faster, so cut over to the new solver. There are minor adjustments to two tests: one where we're losing sugar (Int becomes Int64) and another where our ignorance of overload resolution means we don't reject something silly that we should. Note that this only affects the *solver* component of the constraint-based type checker; we haven't completely obsoleted the old type checker yet. Swift SVN r5281
45 lines
1.5 KiB
C++
45 lines
1.5 KiB
C++
//===--- LangOptions.h - Language & configuration options -------*- C++ -*-===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See http://swift.org/LICENSE.txt for license information
|
|
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file defines the LangOptions class, which provides various
|
|
// language and configuration flags.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SWIFT_LANGOPTIONS_H
|
|
#define SWIFT_LANGOPTIONS_H
|
|
|
|
namespace swift {
|
|
/// \brief A collection of options that affect the language dialect and
|
|
/// provide compiler debugging facilities.
|
|
class LangOptions {
|
|
public:
|
|
/// \brief Whether to use the constraint solver for type checking.
|
|
///
|
|
/// FIXME: This option is temporary, and will be removed once the constraint
|
|
/// solver is the only type checker.
|
|
bool UseConstraintSolver = true;
|
|
|
|
/// \brief Whether we are debugging the constraint solver.
|
|
///
|
|
/// This option enables verbose debugging output from the constraint
|
|
/// solver.
|
|
bool DebugConstraintSolver = false;
|
|
|
|
/// \brief Map NSString -> String in function parameters and results.
|
|
bool NSStringIsString = false;
|
|
|
|
};
|
|
}
|
|
|
|
#endif
|