[clang] [Clang][Sema] clang generates incorrect fix-its for API_AVAILABLE (PR #105855)

Steven Wu via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 3 09:44:01 PDT 2024


================
@@ -1073,6 +1073,36 @@ static llvm::StringRef canonicalizePlatformName(llvm::StringRef Platform) {
              .Case("ShaderModel", "shadermodel")
              .Default(Platform);
 }
+static std::vector<llvm::StringRef> equivalentPlatformNames(llvm::StringRef Platform) {
----------------
cachemeifyoucan wrote:

Just return `ArrayRef` to avoid the copy?

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


More information about the cfe-commits mailing list