[clang] [libclang] Allow using PrintingPolicy with types (PR #122386)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 9 14:59:32 PST 2025
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 9426fdd4cbd6812b69c218b865f184cb25342be4 a96fbe38f697f77c12c712f5573c2158072a8d2f --extensions h,cpp -- clang/include/clang-c/Index.h clang/tools/libclang/CXType.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index e1f3759bb5..ad64497ceb 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -4187,7 +4187,8 @@ CINDEX_LINKAGE CXString clang_getCursorPrettyPrinted(CXCursor Cursor,
*
* If the type is invalid, an empty string is returned.
*/
-CINDEX_LINKAGE CXString clang_getTypePrettyPrinted(CXType CT, CXPrintingPolicy cxPolicy);
+CINDEX_LINKAGE CXString clang_getTypePrettyPrinted(CXType CT,
+ CXPrintingPolicy cxPolicy);
/**
* Retrieve the display name for the entity referenced by this cursor.
``````````
</details>
https://github.com/llvm/llvm-project/pull/122386
More information about the cfe-commits
mailing list