diff --git a/lldb/include/lldb/Host/HostGetOpt.h b/lldb/include/lldb/Host/HostGetOpt.h index 6fb0ac53dd5d..746e03e1bd1e 100644 --- a/lldb/include/lldb/Host/HostGetOpt.h +++ b/lldb/include/lldb/Host/HostGetOpt.h @@ -1,7 +1,3 @@ -#ifndef LLDB_HOST_HOSTGETOPT_H - -#define LLDB_HOST_HOSTGETOPT_H - //===-- HostGetOpt.h --------------------------------------------*- C++ -*-===// // // 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 // //===----------------------------------------------------------------------===// -#pragma once + +#ifndef LLDB_HOST_HOSTGETOPT_H +#define LLDB_HOST_HOSTGETOPT_H #if !defined(_MSC_VER) && !defined(__NetBSD__) @@ -26,4 +24,4 @@ #endif -#endif +#endif // LLDB_HOST_HOSTGETOPT_H diff --git a/lldb/include/lldb/Host/common/GetOptInc.h b/lldb/include/lldb/Host/common/GetOptInc.h index caa2efc060a0..3fb9add47954 100644 --- a/lldb/include/lldb/Host/common/GetOptInc.h +++ b/lldb/include/lldb/Host/common/GetOptInc.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 - #define LLDB_HOST_COMMON_GETOPTINC_H -#pragma once - #include "lldb/lldb-defines.h" #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); #endif -#endif +#endif // LLDB_HOST_COMMON_GETOPTINC_H