Files
swift-mirror/stdlib/public/CompatibilityOverride/CompatibilityOverrideIncludePath.h
Michael Gottesman cb8e8b505a Fix syntax highlighting by changing how we include COMPATIBILITY_OVERRIDE_INCLUDE_PATH.
The way that we include COMPATIBILITY_OVERRIDE_INCLUDE_PATH freaks out the
syntax highlighting of editors like emacs. It causes the whole file to be
highlighted like it is part of the include string.

To work around this, this patch creates a separate file called
CompatibilityOverrideIncludePath.h that just includes
COMPATIBILITY_OVERRIDE_INCLUDE_PATH. So its syntax highlighting is borked, but
at least in the actual files that contain real code, the syntax highlighting is
restored.
2024-10-01 16:17:16 -07:00

25 lines
1017 B
C

//===--- CompatibilityOverrideIncludePath.h -------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
///
/// \file This file should be included instead of including
/// COMPATIBILITY_OVERRIDE_INCLUDE_PATH directly to ensure that syntax
/// highlighting in certain errors is not broken. It is assumed that
/// CompatibilityOverride.h is already included.
///
//===----------------------------------------------------------------------===//
#ifndef COMPATIBILITY_OVERRIDE_H
#error "Must define COMPATIBILITY_OVERRIDE_H before including this file"
#endif
#include COMPATIBILITY_OVERRIDE_INCLUDE_PATH