[clang] [NFC] Fix c++ style comment in c file (PR #112814)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 17 20:00:25 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Jinsong Ji (jsji)
<details>
<summary>Changes</summary>
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
---
Full diff: https://github.com/llvm/llvm-project/pull/112814.diff
2 Files Affected:
- (modified) clang/include/clang-c/Index.h (+1-1)
- (modified) clang/tools/c-index-test/c-index-test.c (-1)
``````````diff
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 4f99bf4ebe309b..0c5ac80772e2b9 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -2980,7 +2980,7 @@ enum CXTypeKind {
CXType_Atomic = 177,
CXType_BTFTagAttributed = 178,
- // HLSL Types
+ /* HLSL Types */
CXType_HLSLResource = 179,
CXType_HLSLAttributedResource = 180
};
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index b48f44950ab754..7995203c0925a4 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -8,7 +8,6 @@
#include "clang-c/Documentation.h"
#include "clang-c/Index.h"
#include "clang/Config/config.h"
-#include "llvm/Support/AutoConvert.h"
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
``````````
</details>
https://github.com/llvm/llvm-project/pull/112814
More information about the cfe-commits
mailing list