[clang][APINotes] Fix -Wunused-function warning (NFC)GCC warning:```/llvm-project/clang/lib/APINotes/APINotesYAMLCompiler.cpp:574:23: warning: ‘void {anonymous}::Module::dump()’ defined but not u
[clang][APINotes] Fix -Wunused-function warning (NFC)GCC warning:```/llvm-project/clang/lib/APINotes/APINotesYAMLCompiler.cpp:574:23: warning: ‘void {anonymous}::Module::dump()’ defined but not used [-Wunused-function] 574 | LLVM_DUMP_METHOD void Module::dump() { | ^~~~~~```
show more ...
[clang][APINotes] Fix gcc Wunused-function warning (NFC)GCC warning:```/llvm-project/clang/lib/APINotes/APINotesYAMLCompiler.cpp:574:6: warning: ‘void {anonymous}::Module::dump()’ defined but not
[clang][APINotes] Fix gcc Wunused-function warning (NFC)GCC warning:```/llvm-project/clang/lib/APINotes/APINotesYAMLCompiler.cpp:574:6: warning: ‘void {anonymous}::Module::dump()’ defined but not used [-Wunused-function] 574 | void Module::dump() { | ^~~~~~```
APINotes: annotate dump methods (NFC)This annotates the dump methods in APINotes to indicate that they areunused as they are meant for debugging purposes. This avoids anunnecessary warning.
APINotes: add bitcode format schema definitionsThis adds the bitcode format schema required for serialization of theYAML data to a binary format. APINotes are pre-compiled and re-used inthe bina
APINotes: add bitcode format schema definitionsThis adds the bitcode format schema required for serialization of theYAML data to a binary format. APINotes are pre-compiled and re-used inthe binary format from the frontend. These definitions provide the datalayout representation enabling writing (and eventually) reading of thedata in bitcode format.This is extracted from the code contributed by Apple athttps://github.com/llvm/llvm-project-staging/tree/staging/swift/apinotes.Differential Revision: https://reviews.llvm.org/D91997Reviewed By: Gabor Marton
[clang] Add a new nullability annotation for swift async: _Nullable_result_Nullable_result generally like _Nullable, except when being imported into aswift async method. rdar://70106409Different
[clang] Add a new nullability annotation for swift async: _Nullable_result_Nullable_result generally like _Nullable, except when being imported into aswift async method. rdar://70106409Differential revision: https://reviews.llvm.org/D92495
APINotes: constify `dump` methods (NFC)This simply marks the functions as const as they do not mutate thevalue. This is useful for debugging iterations during development.NFCI.
APINotes: add property models for YAML attributesThis adds internal representation of the attributes in a more usableform. This is meant to allow programmatic access to the attributes thatare sp
APINotes: add property models for YAML attributesThis adds internal representation of the attributes in a more usableform. This is meant to allow programmatic access to the attributes thatare specified in the YAML data.This is based upon the work contributed by Apple athttps://github.com/llvm/llvm-project-staging/tree/staging/swift/apinotes.Differential Revision: https://reviews.llvm.org/D91104Reviewed By: Gabor Marton
APINotes: add APINotesYAMLCompilerThis adds the skeleton of the YAML Compiler for APINotes. This changeonly adds the YAML IO model for the API Notes along with a new testingtool `apinotes-test`
APINotes: add APINotesYAMLCompilerThis adds the skeleton of the YAML Compiler for APINotes. This changeonly adds the YAML IO model for the API Notes along with a new testingtool `apinotes-test` which can be used to verify that can round trip theYAML content properly. It provides the basis for the future work whichwill add a binary serialization and deserialization format to the datamodel.This is based on the code contributed by Apple athttps://github.com/llvm/llvm-project-staging/tree/staging/swift/apinotes.Differential Revision: https://reviews.llvm.org/D88859Reviewed By: Gabor Marton