[clang] Add `clang_getCursorCallExprKind` to get the underlying type of CallExpr (PR #86143)

via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 21 09:08:36 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff f5c90f3000bc75a344bf01bd4e0401e3fb7f9453 36a7389c7c9c9668146a04f66af22e1f7be0dbb7 -- clang/include/clang-c/Index.h clang/tools/libclang/CIndex.cpp clang/unittests/libclang/LibclangTest.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index 20e58b656b..c8632ea1c9 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/tools/libclang/CIndex.cpp
@@ -2126,8 +2126,7 @@ public:
   void VisitBlockExpr(const BlockExpr *B);
   void VisitCompoundLiteralExpr(const CompoundLiteralExpr *E);
   void VisitCompoundStmt(const CompoundStmt *S);
-  void VisitCXXDefaultArgExpr(const CXXDefaultArgExpr *E) { /* Do nothing. */ 
-  }
+  void VisitCXXDefaultArgExpr(const CXXDefaultArgExpr *E) { /* Do nothing. */ }
   void VisitMSDependentExistsStmt(const MSDependentExistsStmt *S);
   void VisitCXXDependentScopeMemberExpr(const CXXDependentScopeMemberExpr *E);
   void VisitCXXNewExpr(const CXXNewExpr *E);
diff --git a/clang/unittests/libclang/LibclangTest.cpp b/clang/unittests/libclang/LibclangTest.cpp
index a632cd6e3d..502283ea54 100644
--- a/clang/unittests/libclang/LibclangTest.cpp
+++ b/clang/unittests/libclang/LibclangTest.cpp
@@ -1172,7 +1172,7 @@ TEST_F(LibclangParseTest, UnaryOperator) {
   });
 }
 
-TEST_F(LibclangParseTest, CallExpr){
+TEST_F(LibclangParseTest, CallExpr) {
   std::string Main = "main.cpp";
   const char testSource[] = R"cpp(
 struct X{

``````````

</details>


https://github.com/llvm/llvm-project/pull/86143


More information about the cfe-commits mailing list