mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We've been running doxygen with the autobrief option for a couple of
years now. This makes the \brief markers into our comments
redundant. Since they are a visual distraction and we don't want to
encourage more \brief markers in new code either, this patch removes
them all.
Patch produced by
for i in $(git grep -l '\\brief'); do perl -pi -e 's/\\brief //g' $i & done
53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
//===- tapi/Core/Platform.h - Platform --------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
///
|
|
/// \file
|
|
/// Defines the platform enum.
|
|
///
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef TAPI_CORE_PLATFORM_H
|
|
#define TAPI_CORE_PLATFORM_H
|
|
|
|
#include "LLVM.h"
|
|
#include "Defines.h"
|
|
#include "llvm/ADT/ArrayRef.h"
|
|
#include "llvm/ADT/StringRef.h"
|
|
#include "llvm/ADT/Triple.h"
|
|
#include <string>
|
|
|
|
TAPI_NAMESPACE_INTERNAL_BEGIN
|
|
|
|
enum class Platform : uint8_t {
|
|
unknown,
|
|
macOS,
|
|
iOS,
|
|
iOSSimulator,
|
|
tvOS,
|
|
tvOSSimulator,
|
|
watchOS,
|
|
watchOSSimulator,
|
|
bridgeOS,
|
|
};
|
|
|
|
Platform mapToSim(Platform platform, bool wantSim);
|
|
Platform mapToSinglePlatform(ArrayRef<llvm::Triple> targets);
|
|
StringRef getPlatformName(Platform platform);
|
|
std::string getOSAndEnvironmentName(Platform platform,
|
|
std::string version = "");
|
|
|
|
raw_ostream &operator<<(raw_ostream &os, Platform platform);
|
|
|
|
const DiagnosticBuilder &operator<<(const DiagnosticBuilder &db,
|
|
Platform platform);
|
|
|
|
TAPI_NAMESPACE_INTERNAL_END
|
|
|
|
#endif // TAPI_CORE_PLATFORM_H
|