[clang] [libclang] Replace createRef with createDup (PR #126683)

2025-02-25 Thread Erich Keane via cfe-commits
erichkeane wrote: > > Requesting changes just to be sure none of the changes from `createRef()` > > to `createDup()` would have generated a `StringRef` holding a null pointer. > > I'd be surprised if they did, but a second set of eyes would be helpful. > > I am not sure how to proceed here. Th

[clang] [libclang] Replace createRef with createDup (PR #126683)

2025-02-25 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > Requesting changes just to be sure none of the changes from `createRef()` to > `createDup()` would have generated a `StringRef` holding a null pointer. I'd > be surprised if they did, but a second set of eyes would be helpful. I am not sure how to proceed here. This change

[clang] [libclang] Replace createRef with createDup (PR #126683)

2025-02-19 Thread Aaron Ballman via cfe-commits
@@ -77,19 +77,6 @@ CXString createDup(const char *String) { return Str; } -CXString createRef(StringRef String) { - if (!String.data()) -return createNull(); - - // If the string is empty, it might point to a position in another string - // while having zero length. M

[clang] [libclang] Replace createRef with createDup (PR #126683)

2025-02-19 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman requested changes to this pull request. Requesting changes just to be sure none of the changes from `createRef()` to `createDup()` would have generated a `StringRef` holding a null pointer. I'd be surprised if they did, but a second set of eyes would be helpful.

[clang] [libclang] Replace createRef with createDup (PR #126683)

2025-02-19 Thread Erich Keane via cfe-commits
@@ -77,19 +77,6 @@ CXString createDup(const char *String) { return Str; } -CXString createRef(StringRef String) { - if (!String.data()) -return createNull(); - - // If the string is empty, it might point to a position in another string - // while having zero length. M

[clang] [libclang] Replace createRef with createDup (PR #126683)

2025-02-19 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/126683 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang] Replace createRef with createDup (PR #126683)

2025-02-19 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/126683 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang] Replace createRef with createDup (PR #126683)

2025-02-19 Thread Aaron Ballman via cfe-commits
@@ -77,19 +77,6 @@ CXString createDup(const char *String) { return Str; } -CXString createRef(StringRef String) { - if (!String.data()) -return createNull(); - - // If the string is empty, it might point to a position in another string - // while having zero length. M

[clang] [libclang] Replace createRef with createDup (PR #126683)

2025-02-13 Thread Egor Zhdan via cfe-commits
https://github.com/egorzhdan approved this pull request. I'm not an expert in the area, but this change LGTM. https://github.com/llvm/llvm-project/pull/126683 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] [libclang] Replace createRef with createDup (PR #126683)

2025-02-12 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/126683 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits