From f248d0a7377918b5ffbb3fede9f8df9d45e16ab6 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 5 Jul 2021 11:24:37 +0200 Subject: [PATCH] ClangFormat: Add xfailing unit test Task-number: QTCREATORBUG-25966 Change-Id: If8f28bd5195f2681cca209b41bcc93fad0695541 Reviewed-by: Christian Stenger --- tests/unit/unittest/clangformat-test.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/unit/unittest/clangformat-test.cpp b/tests/unit/unittest/clangformat-test.cpp index 2ce3eba24ab..b6312866927 100644 --- a/tests/unit/unittest/clangformat-test.cpp +++ b/tests/unit/unittest/clangformat-test.cpp @@ -957,6 +957,28 @@ TEST_F(ClangFormat, ChainedMemberFunctionCalls) " .func();")); } +TEST_F(ClangFormat, DISABLED_CommentBlock) +{ + insertLines({"/****************************************************************************", + "**", + "** Copyright (C) 2021 The Qt Company Ltd.", + "** Contact: https://www.qt.io/licensing/", + "**", + "** This file is part of Qt Creator.", + "**", + "****************************************************************************/"}); + indenter.indent(cursor, QChar::Null, TextEditor::TabSettings()); + ASSERT_THAT(documentLines(), ElementsAre( + "/****************************************************************************", + "**", + "** Copyright (C) 2021 The Qt Company Ltd.", + "** Contact: https://www.qt.io/licensing/", + "**", + "** This file is part of Qt Creator.", + "**", + "****************************************************************************/")); +} + // clang-format on } // namespace