gpt4 book ai didi

visual-studio-2008 - 如何在Doxygen注释中包括 '<'?

转载 作者:行者123 更新时间:2023-12-04 03:45:10 25 4
gpt4 key购买 nike

假设我正在使用与DOxygen/Visual Studio兼容的注释来记录成员函数,那么如何在不创建编译器警告但仍保持代码库可读性的情况下使用小于号<<呢?

例如,如果我这样做:

    /// <summary>
/// Verifies x < y
/// </summary>
bool VerifyIsLessThan(float x, float y);

编译器说:
1>c:\MyProject\VerificationLib.h(246) : warning C4635: XML document comment applied to 'VerificationLib.VerifyIsLessThan(System.Single,System.Single)': badly-formed XML: Whitespace is not allowed at this location.

是否有任何方法可以使它在代码库以及Doxygen生成的文档中仍然可读,从而可以避免这种情况?

[编辑]

我开始认为这更多是与视觉工作室有关,而不是Doxygen。我们正在使用一种对两种情况都适用的表格。原始问题中提到的警告来自Visual Studio,而不是Doxygen。

进一步挖掘似乎逐字逐字不是 supported吗?

最佳答案

关于visual-studio-2008 - 如何在Doxygen注释中包括 '<'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12426073/

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