forked from OSchip/llvm-project
[lldb] Replace #pragma once with header guard
This got messed up when updating the header guard. Remove the `pragma once` and use a header guard instead.
This commit is contained in:
parent
a37734f643
commit
ffd78a008a
|
@ -1,7 +1,3 @@
|
||||||
#ifndef LLDB_HOST_HOSTGETOPT_H
|
|
||||||
|
|
||||||
#define LLDB_HOST_HOSTGETOPT_H
|
|
||||||
|
|
||||||
//===-- HostGetOpt.h --------------------------------------------*- C++ -*-===//
|
//===-- HostGetOpt.h --------------------------------------------*- C++ -*-===//
|
||||||
//
|
//
|
||||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||||
|
@ -9,7 +5,9 @@
|
||||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
#pragma once
|
|
||||||
|
#ifndef LLDB_HOST_HOSTGETOPT_H
|
||||||
|
#define LLDB_HOST_HOSTGETOPT_H
|
||||||
|
|
||||||
#if !defined(_MSC_VER) && !defined(__NetBSD__)
|
#if !defined(_MSC_VER) && !defined(__NetBSD__)
|
||||||
|
|
||||||
|
@ -26,4 +24,4 @@
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif // LLDB_HOST_HOSTGETOPT_H
|
||||||
|
|
|
@ -1,9 +1,14 @@
|
||||||
|
//===-- GetOptInc.h ---------------------------------------------*- C++ -*-===//
|
||||||
|
//
|
||||||
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||||
|
// See https://llvm.org/LICENSE.txt for license information.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#ifndef LLDB_HOST_COMMON_GETOPTINC_H
|
#ifndef LLDB_HOST_COMMON_GETOPTINC_H
|
||||||
|
|
||||||
#define LLDB_HOST_COMMON_GETOPTINC_H
|
#define LLDB_HOST_COMMON_GETOPTINC_H
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "lldb/lldb-defines.h"
|
#include "lldb/lldb-defines.h"
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
|
@ -55,4 +60,4 @@ int getopt_long_only(int argc, char *const *argv, const char *optstring,
|
||||||
const struct option *longopts, int *longindex);
|
const struct option *longopts, int *longindex);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif // LLDB_HOST_COMMON_GETOPTINC_H
|
||||||
|
|
Loading…
Reference in New Issue