diff options
author | Ben Hamilton <benhamilton@google.com> | 2023-05-26 12:44:21 -0600 |
---|---|---|
committer | Ben Hamilton <benhamilton@google.com> | 2023-05-30 11:12:03 -0600 |
commit | 85670ac86813b170c9301aa477421c56a71a7e1e (patch) | |
tree | 7f04accd8a3c84991ef83894bc915620110f0fc9 /clang/lib/Frontend/TestModuleFileExtension.cpp | |
parent | 5c000df21531fc4b614cf80d29c5f05a664aaa41 (diff) | |
download | llvm-85670ac86813b170c9301aa477421c56a71a7e1e.zip llvm-85670ac86813b170c9301aa477421c56a71a7e1e.tar.gz llvm-85670ac86813b170c9301aa477421c56a71a7e1e.tar.bz2 |
[Format/ObjC] Support NS_ASSUME_NONNULL_BEGIN and FOUNDATION_EXPORT in ObjC language guesser
This adds to the ObjC language guesser a few more common macros used
in ObjC headers. These can help distinguish ObjC headers which
otherwise lack ObjC types from C++ headers.
Contributed by danblakemore.
Tested: New tests included. Ran unit tests with:
```
% cmake -S llvm -B build -G Ninja && \
ninja -C build FormatTests && \
./build/tools/clang/unittests/Format/FormatTests --gtest_filter="*FormatTestObjC*"
(snip)
[----------] 24 tests from FormatTestObjC (265 ms total)
[----------] Global test environment tear-down
[==========] 26 tests from 2 test suites ran. (270 ms total)
[ PASSED ] 26 tests.
```
Reviewed By: MyDeveloperDay
Differential Revision: https://reviews.llvm.org/D151578
Diffstat (limited to 'clang/lib/Frontend/TestModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions