Doxygen:为什么忽略了我的上一个Objective-C接口或协议? [英] Doxygen: Why is it ignoring my last Objective-C interface or protocol?

查看:72
本文介绍了Doxygen:为什么忽略了我的上一个Objective-C接口或协议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个头文件,Doxygen正确地将其列为项目的文件之一,它将显示源代码。

I've got a header file that Doxygen lists correctly as one of the files of the project and it will show the source.

Doxygen输出显示文件正在处理中。

The Doxygen output shows that the file is being processed.

但是,文件中声明的协议没有记录在类列表中。

However, the protocol being declared in the file is not being documented in the list of classes.

I尝试在未显示的协议前立即声明另一个名为Foo的协议。新协议已正确处理。我添加了另一个名为Bar的酒吧。它也可以正确处理,但原始协议仍然没有。我删除了原始协议,现在不再处理Bar。

I tried declaring another protocol named Foo immediately before the protocol that's not showing up. The new protocol is processed correctly. I added another one named Bar. It also is processed correctly but still the original protocol is not. I deleted the original protocol and now Bar is no longer being processed.

基本上,我声明的所有协议(或接口)都已处理,但最后一个从未处理过。

Basically, all of the protocols (or interfaces) that I declare are processed but the last one never is.

为什么?

推荐答案

文件的最后一行是

@end

这是Doxygen不喜欢的。如果我在@end之后添加换行符,则它按预期工作。

This is what Doxygen didn't like. If I added a newline after @end then it worked as expected.

这篇关于Doxygen:为什么忽略了我的上一个Objective-C接口或协议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆