gpt4 book ai didi

xcode - Apple LLVM 4.2,Objective-C的可用__attribute __(())列表

转载 作者:行者123 更新时间:2023-12-04 13:51:16 26 4
gpt4 key购买 nike

我正在寻找可用的__attribute__(())指令的列表,但找不到它们。我只知道__attribute__((objc_requires_super))

我发誓我一直在搜索,但没有找到任何东西。也许我找不到要包含在搜索中的术语。

非常感谢。

最佳答案

这些文档有时可能会落后。要获得完整的列表,没有其他地方比源代码要最新!

https://github.com/llvm-mirror/clang/blob/master/include/clang/Basic/Attr.td

这是一个例子:

def Visibility : InheritableAttr {
let Clone = 0;
let Spellings = [GNU<"visibility">, CXX11<"gnu", "visibility">];
let Args = [EnumArgument<"Visibility", "VisibilityType",
["default", "hidden", "internal", "protected"],
["Default", "Hidden", "Hidden", "Protected"]>];
}

在这里,我们可以看到如何在GNU和CXX11 GNU中定义它。在这种情况下,它还会显示有效的参数(默认,隐藏,内部, protected )。

关于xcode - Apple LLVM 4.2,Objective-C的可用__attribute __(())列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17923457/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com