diff options
Diffstat (limited to 'src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/cxx20/src')
2 files changed, 130 insertions, 0 deletions
diff --git a/src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/cxx20/src/classes_with_various_ordering.cpp b/src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/cxx20/src/classes_with_various_ordering.cpp new file mode 100644 index 000000000..c9029e446 --- /dev/null +++ b/src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/cxx20/src/classes_with_various_ordering.cpp @@ -0,0 +1,89 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +/*! + \class StronglyOrderedClass + \inmodule TestQDoc + \compares strong +*/ + +/*! + \class PartiallyOrderedClass + \inmodule TestQDoc + \compares partial +*/ + +/*! + \class WeaklyOrderedClass + \inmodule TestQDoc + \compares weak +*/ + +/*! + \class EqualityComparableClass + \inmodule TestQDoc + \compares equality +*/ + +/*! + \class ComparesStronglyWithTwoClasses + \inmodule TestQDoc + + \compareswith strong Foo + \endcompareswith + + \compareswith strong Bar + \warning Always compare twice! + \endcompareswith +*/ + +/*! + \class ComparesStronglyWithThreeClasses + \inmodule TestQDoc + + \compareswith strong Foo {Bar Bar Jinks} Baz + \endcompareswith +*/ + +/*! + \class ComparesStronglyWithThreeClassesAcrossMultipleLines + \inmodule TestQDoc + + \compareswith strong Foo \ + Bar Baz + \endcompareswith +*/ + +/*! + \class ComparesStronglyWithOneClassAndPartiallyWithAnother + \inmodule TestQDoc + \brief Class with various comparison relationships. + + \compareswith strong Foo + \endcompareswith + + \compareswith partial Bar + Here we describe partial comparison with Bar. + \endcompareswith + + //! using a macro + \equalitycomparesto {Foo} + + This class compares strongly with one type, and partially with another. +*/ + + +/*! + \class Foo + \inmodule TestQDoc +*/ + +/*! + \class Bar + \inmodule TestQDoc +*/ + +/*! + \class Baz + \inmodule TestQDoc +*/ diff --git a/src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/cxx20/src/classes_with_various_ordering.h b/src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/cxx20/src/classes_with_various_ordering.h new file mode 100644 index 000000000..4c9f6970e --- /dev/null +++ b/src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/cxx20/src/classes_with_various_ordering.h @@ -0,0 +1,41 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +#ifndef CLASSES_WITH_VARIOUS_ORDERING_H +#define CLASSES_WITH_VARIOUS_ORDERING_H + +class StronglyOrderedClass +{ +}; +class PartiallyOrderedClass +{ +}; +class WeaklyOrderedClass +{ +}; +class EqualityComparableClass +{ +}; +class ComparesStronglyWithTwoClasses +{ +}; +class ComparesStronglyWithThreeClasses +{ +}; +class ComparesStronglyWithThreeClassesAcrossMultipleLines +{ +}; +class ComparesStronglyWithOneClassAndPartiallyWithAnother +{ +}; +class Foo +{ +}; +class Bar +{ +}; +class Baz +{ +}; + +#endif // CLASSES_WITH_VARIOUS_ORDERING_H |