Skip to content

Commit 8182f81

Browse files
authored
[NFC] Fix c++ style comment in c file (#112814)
This is one of the many PRs to fix errors with LLVM_ENABLE_WERROR=on. Built by GCC 11. Fix warnings: llvm-project/clang/include/clang-c/Index.h:2983:3: error: C++ style comments are not allowed in ISO C90 [-Werror] 2983 | // HLSL Types
1 parent 7da0a69 commit 8182f81

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

clang/include/clang-c/Index.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2980,7 +2980,7 @@ enum CXTypeKind {
29802980
CXType_Atomic = 177,
29812981
CXType_BTFTagAttributed = 178,
29822982

2983-
// HLSL Types
2983+
/* HLSL Types */
29842984
CXType_HLSLResource = 179,
29852985
CXType_HLSLAttributedResource = 180
29862986
};
Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- AutoConvert.h - Auto conversion between ASCII/EBCDIC -----*- C++ -*-===//
1+
/*===- AutoConvert.h - Auto conversion between ASCII/EBCDIC -----*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,7 +9,7 @@
99
// This file contains functions used for auto conversion between
1010
// ASCII/EBCDIC codepages specific to z/OS.
1111
//
12-
//===----------------------------------------------------------------------===//
12+
//===----------------------------------------------------------------------===*/
1313

1414
#ifndef LLVM_SUPPORT_AUTOCONVERT_H
1515
#define LLVM_SUPPORT_AUTOCONVERT_H
@@ -18,43 +18,45 @@
1818
#include <_Ccsid.h>
1919
#ifdef __cplusplus
2020
#include <system_error>
21-
#endif // __cplusplus
21+
#endif /* __cplusplus */
2222

2323
#define CCSID_IBM_1047 1047
2424
#define CCSID_UTF_8 1208
2525
#define CCSID_ISO8859_1 819
2626

2727
#ifdef __cplusplus
2828
extern "C" {
29-
#endif // __cplusplus
29+
#endif /* __cplusplus */
3030
int enablezOSAutoConversion(int FD);
3131
int disablezOSAutoConversion(int FD);
3232
int restorezOSStdHandleAutoConversion(int FD);
3333
#ifdef __cplusplus
3434
}
35-
#endif // __cplusplus
35+
#endif /* __cplusplus */
3636

3737
#ifdef __cplusplus
3838
namespace llvm {
3939

40-
/// \brief Disable the z/OS enhanced ASCII auto-conversion for the file
41-
/// descriptor.
40+
/** \brief Disable the z/OS enhanced ASCII auto-conversion for the file
41+
* descriptor.
42+
*/
4243
std::error_code disablezOSAutoConversion(int FD);
4344

44-
/// \brief Query the z/OS enhanced ASCII auto-conversion status of a file
45-
/// descriptor and force the conversion if the file is not tagged with a
46-
/// codepage.
45+
/** \brief Query the z/OS enhanced ASCII auto-conversion status of a file
46+
* descriptor and force the conversion if the file is not tagged with a
47+
* codepage.
48+
*/
4749
std::error_code enablezOSAutoConversion(int FD);
4850

49-
/// Restore the z/OS enhanced ASCII auto-conversion for the std handle.
51+
/** Restore the z/OS enhanced ASCII auto-conversion for the std handle. */
5052
std::error_code restorezOSStdHandleAutoConversion(int FD);
5153

52-
/// \brief Set the tag information for a file descriptor.
54+
/** \brief Set the tag information for a file descriptor. */
5355
std::error_code setzOSFileTag(int FD, int CCSID, bool Text);
5456

55-
} // namespace llvm
56-
#endif // __cplusplus
57+
} /* namespace llvm */
58+
#endif /* __cplusplus */
5759

58-
#endif // __MVS__
60+
#endif /* __MVS__ */
5961

60-
#endif // LLVM_SUPPORT_AUTOCONVERT_H
62+
#endif /* LLVM_SUPPORT_AUTOCONVERT_H */

0 commit comments

Comments
 (0)