[all-commits] [llvm/llvm-project] 2f5678: [clang][doxygen] Fix false -Wdocumentation warning...

jkorous-apple via All-commits all-commits at lists.llvm.org
Thu Feb 20 11:33:27 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f56789c8fe8edb57bc7a193592ecd35a393fe4a
      https://github.com/llvm/llvm-project/commit/2f56789c8fe8edb57bc7a193592ecd35a393fe4a
  Author: Jan Korous <jkorous at apple.com>
  Date:   2020-02-20 (Thu, 20 Feb 2020)

  Changed paths:
    M clang/include/clang/AST/CommentSema.h
    M clang/lib/AST/CommentSema.cpp
    A clang/test/Sema/warn-documentation-tag-typedef.cpp

  Log Message:
  -----------
  [clang][doxygen] Fix false -Wdocumentation warning for tag typedefs

For tag typedefs like this one:

/*!
@class Foo
*/
typedef class { } Foo;

clang -Wdocumentation gives:

warning: '@class' command should not be used in a comment attached to a
non-struct declaration [-Wdocumentation]

... while doxygen seems fine with it.

Differential Revision: https://reviews.llvm.org/D74746




More information about the All-commits mailing list