[llvm] [readtapi] Setup simple stubify support (PR #76075)

Cyndy Ishida via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 20 10:21:59 PST 2023


================
@@ -79,20 +92,65 @@ static void reportError(Twine Message, int ExitCode = EXIT_FAILURE) {
   exit(ExitCode);
 }
 
+/// Replace extension considering frameworks.
+static void replace_extension(SmallVectorImpl<char> &Path,
+                              const Twine &Extension) {
+  StringRef P(Path.begin(), Path.size());
----------------
cyndyishida wrote:

Will do, I also am considering moving these filesystem helpers into `TextAPI`. 

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


More information about the llvm-commits mailing list