Files
swift-mirror/include/swift/Strings.h
Jordan Rose de81a3e15f Prefer using known-identifiers to using getIdentifier.
I didn't add anything to the table, just made use of what was already there.
We have plenty of additional calls to getIdentifier that could probably benefit
from this kind of easy access as well.

This commit also removes FOUNDATION_MODULE_NAME and OBJC_MODULE_NAME from
Strings.h. Neither of these is likely to change in the future, and both
already have KnownIdentifiers equivalents in use.

No intended functionality change.

Swift SVN r29292
2015-06-04 04:01:08 +00:00

35 lines
1.4 KiB
C++

//===--- Strings.h - Shared string constants across components --*- 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
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_STRINGS_H
#define SWIFT_STRINGS_H
namespace swift {
/// The extension for serialized modules.
static const char SERIALIZED_MODULE_EXTENSION[] = "swiftmodule";
/// The extension for serialized documentation comments.
static const char SERIALIZED_MODULE_DOC_EXTENSION[] = "swiftdoc";
/// The extension for SIL files.
static const char SIL_EXTENSION[] = "sil";
/// The extension for SIB files.
static const char SIB_EXTENSION[] = "sib";
/// The extension for LLVM IR files.
static const char LLVM_BC_EXTENSION[] = "bc";
static const char LLVM_IR_EXTENSION[] = "ll";
/// The name of the standard library, which is a reserved module name.
static const char STDLIB_NAME[] = "Swift";
/// The prefix of module names used by LLDB to capture Swift expressions
static const char LLDB_EXPRESSIONS_MODULE_NAME_PREFIX[] = "__lldb_expr_";
} // end namespace swift
#endif