• Martin Smith's avatar
    qdoc: Disable clang errors when the class is internal · 0c10a218
    Martin Smith authored
    
    From time to time, we have classes added that are marked both
    \internal and \preliminary in their \class comment. This was a
    race condition that set the status of the class documentation
    to either internal or preliminary depending on the order of the
    \internal and \preliminary commands. But \preliminary should
    only be used when the class is meant to be included in the public
    API marked as preliminary, so users will understand that it might
    be changed before it is stable. So this update lets \internal win
    when both commands appear in the \class comment, regardless of
    their order.
    
    This update also prevents clang parsing errors from being reported
    for \fn commands where the class containing the member function is
    marked \internal. This eliminates a lot of qdoc warnings.
    
    Change-Id: Id1ecec4bdd573ae81fa5d589dfdd4afc4b313825
    Reviewed-by: default avatarTopi Reiniö <topi.reinio@qt.io>
    0c10a218
main.cpp 1.32 KiB
/****************************************************************************
**
** Copyright (C) 2018 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtWebEngine module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
** $QT_END_LICENSE$
****************************************************************************/
#include <stdio.h>
int main()
   printf("This works\n");
   return 0;