[clang] [Clang][Sema] clang generates incorrect fix-its for API_AVAILABLE (PR #105855)
Ian Anderson via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 3 10:21:39 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) {
----------------
ian-twilightcoder wrote:
I tried `ArrayRef` first and it crashes. The array seems to get freed after the `llvm::find_if` returns for reasons that I don't understand.
https://github.com/llvm/llvm-project/pull/105855
More information about the cfe-commits
mailing list