Delete "param MD The MacroDefinition if the name was a macro, null otherwise.".
Reason: MD, a reference, can't be null.
Index: include/clang/Lex/PPCallbacks.h =================================================================== --- include/clang/Lex/PPCallbacks.h (revision 274481) +++ include/clang/Lex/PPCallbacks.h (working copy) @@ -256,7 +256,6 @@ } /// \brief Hook called whenever the 'defined' operator is seen. - /// \param MD The MacroDirective if the name was a macro, null otherwise. virtual void Defined(const Token &MacroNameTok, const MacroDefinition &MD, SourceRange Range) { } @@ -294,7 +293,6 @@ /// \brief Hook called whenever an \#ifdef is seen. /// \param Loc the source location of the directive. /// \param MacroNameTok Information on the token being tested. - /// \param MD The MacroDefinition if the name was a macro, null otherwise. virtual void Ifdef(SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) { } @@ -302,7 +300,6 @@ /// \brief Hook called whenever an \#ifndef is seen. /// \param Loc the source location of the directive. /// \param MacroNameTok Information on the token being tested. - /// \param MD The MacroDefiniton if the name was a macro, null otherwise. virtual void Ifndef(SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) { }
Index: docs/pp-trace.rst =================================================================== --- docs/pp-trace.rst (revision 274481) +++ docs/pp-trace.rst (working copy) @@ -571,7 +571,7 @@ `MacroExpands <http://clang.llvm.org/doxygen/classclang_1_1PPCallbacks.html#a9bc725209d3a071ea649144ab996d515>`_ Callback ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -MacroExpands is called when ::HandleMacroExpandedIdentifier when a macro invocation is found. +MacroExpands is called when a macro invocation is found. Argument descriptions:
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits