2017-07-07 47 views
1

現在、我々はDoxygenと互換性がありますが、デフォルトパラメータに関する問題を抱えています。Doxygen 1.8.13はデフォルト値(C++)でパラメータを無視します

一つの例は、この機能を次のようになります。

... 
class String : public Object 
{ 
    ... 
    /*! 
    * \brief Trim the string from the left while the characters matches any characters in the given string 
    * \param In_pChar - (optional) The array of characters to be trimmed 
    * \return The trimmed string object 
    */ 
    String& trim_left(const char * In_pChar=" \t"); 
    ... 
}; 
... 

doxygenはちょうど完全にパラメータを省略してもそれについて警告:

warning: argument 'In_pChar' of command @param is not found in the argument list of String::trim_left() 

結果のHTMLは、私はそれがあることを期待したものは本当にないです: Screenshot of Doxygen HTML output

誰でもこれを修正する方法がありますか?

+0

(http://www.stack.nl/~dimitri [Doxygenの多くのバージョン]がありました/doxygen/manual/changelog.html)。どちらをお求めですか? –

+0

@ LightnessRacesinOrbit Doxygen 1.8.13。私はそれに応じて質問を更新しました。 –

答えて

3

あなたの問題はほぼ確実に...のいずれかにありますか、またはdoxygenの怪しいバージョンがあります。

次のコードは、私のために正常に動作します:

class String : public Object                    
{                      
public:                         

/*!                          
* \brief Trim the string from the left while the characters matches any characters in the given string 
* \param In_pChar - (optional) The array of characters to be trimmed         
* \return The trimmed string object                  
*/                          
    String& trim_left(const char * In_pChar=" \t");              

};               

enter image description here

enter image description here

+0

私はそれを絞ろうとします。ありがとうございました。 –

+0

提供されている例はうまく動作します。本当の問題はまだ見つかりませんでした。 –

+0

だからこそ私はあなたの問題があなたの '...'であり、なぜ問題の範囲が制限されるように[mcve]を投稿するのが重要なのか – xaxxon

関連する問題