Skip to content

Commit ffd78a0

Browse files
committed
[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.
1 parent a37734f commit ffd78a0

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

lldb/include/lldb/Host/HostGetOpt.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
#ifndef LLDB_HOST_HOSTGETOPT_H
2-
3-
#define LLDB_HOST_HOSTGETOPT_H
4-
51
//===-- HostGetOpt.h --------------------------------------------*- C++ -*-===//
62
//
73
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
84
// See https://llvm.org/LICENSE.txt for license information.
95
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
106
//
117
//===----------------------------------------------------------------------===//
12-
#pragma once
8+
9+
#ifndef LLDB_HOST_HOSTGETOPT_H
10+
#define LLDB_HOST_HOSTGETOPT_H
1311

1412
#if !defined(_MSC_VER) && !defined(__NetBSD__)
1513

@@ -26,4 +24,4 @@
2624

2725
#endif
2826

29-
#endif
27+
#endif // LLDB_HOST_HOSTGETOPT_H

lldb/include/lldb/Host/common/GetOptInc.h

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
#ifndef LLDB_HOST_COMMON_GETOPTINC_H
1+
//===-- GetOptInc.h ---------------------------------------------*- C++ -*-===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
28

9+
#ifndef LLDB_HOST_COMMON_GETOPTINC_H
310
#define LLDB_HOST_COMMON_GETOPTINC_H
411

5-
#pragma once
6-
712
#include "lldb/lldb-defines.h"
813

914
#if defined(_MSC_VER)
@@ -55,4 +60,4 @@ int getopt_long_only(int argc, char *const *argv, const char *optstring,
5560
const struct option *longopts, int *longindex);
5661
#endif
5762

58-
#endif
63+
#endif // LLDB_HOST_COMMON_GETOPTINC_H

0 commit comments

Comments
 (0)