[PATCH] D133009: [libclang] Fix conversion from `StringRef` to `CXString`
Egor Zhdan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 31 06:03:06 PDT 2022
egorzhdan added inline comments.
================
Comment at: clang/test/Index/comment-lots-of-unknown-commands.c:3
+// XFAIL: *
+
----------------
This test was never properly passing. Because of the bug in string conversion, the printed comments contained the entire source file and not just the comments' text, which was enough to cause `// CHECK`-s in the test to succeed.
```
// CHECK: (CXComment_InlineCommand CommandName=[tel] RenderNormal HasTrailingNewline)
// CHECK: (CXComment_InlineCommand CommandName=[n] RenderNormal HasTrailingNewline))
// CHECK: (CXComment_VerbatimLine Text=[\n at Lo\n at il\n at tle\n at axt\n at ba\n at ust\n at ac\n at tpe\n at tpl\n at ctG\n at ru\n at m\n at tG\n at it\n at rh\n at G\n at rpc\n at el\n at er\n at w\n at eo\n at tx\n at oo\n at dD\n at dD\n*/\nvoid f();\n\n// CHECK: CommentAST=[\n// CHECK: (CXComment_FullComment\n// CHECK: (CXComment_Paragraph\n// CHECK: ...
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133009/new/
https://reviews.llvm.org/D133009
More information about the cfe-commits
mailing list