Skip to content

Commit 0054ab4

Browse files
authored
[NFC] Fix c++ style comment in c file (llvm#138244)
Fix "C++ style comments are not allowed in ISO C90" warnings in some C files.
1 parent 1b0a0c7 commit 0054ab4

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

clang/tools/c-index-test/c-index-test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ static CXString createCXString(const char *CS) {
12241224
static CXString duplicateCXString(const char *CS) {
12251225
CXString Str;
12261226
Str.data = strdup(CS);
1227-
Str.private_flags = 1; // CXS_Malloc
1227+
Str.private_flags = 1; /* CXS_Malloc */
12281228
return Str;
12291229
}
12301230

llvm/include/llvm/Support/AutoConvert.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,16 @@ std::error_code restorezOSStdHandleAutoConversion(int FD);
5555
/** \brief Set the tag information for a file descriptor. */
5656
std::error_code setzOSFileTag(int FD, int CCSID, bool Text);
5757

58-
// Get the the tag ccsid for a file name or a file descriptor.
58+
/** \brief Get the the tag ccsid for a file name or a file descriptor. */
5959
ErrorOr<__ccsid_t> getzOSFileTag(const char *FileName, const int FD = -1);
6060

61-
// Query the file tag to determine if it needs conversion to UTF-8 codepage.
61+
/** \brief Query the file tag to determine if it needs conversion to UTF-8
62+
* codepage.
63+
*/
6264
ErrorOr<bool> needzOSConversion(const char *FileName, const int FD = -1);
6365

64-
} // namespace llvm
65-
#endif // __cplusplus
66+
} /* namespace llvm */
67+
#endif /* __cplusplus */
6668

6769
#endif /* __MVS__ */
6870

0 commit comments

Comments
 (0)