#include "clang/Tooling/Inclusions/HeaderIncludes.h"
#include "../Tooling/ReplacementTest.h"
#include "../Tooling/RewriterTestContext.h"
#include "clang/Format/Format.h"
#include "clang/Tooling/Core/Replacement.h"
#include "gtest/gtest.h"
namespace clang {
namespace tooling {
namespace {
class HeaderIncludesTest : public ::testing::Test { … };
TEST_F(HeaderIncludesTest, NoExistingIncludeWithoutDefine) { … }
TEST_F(HeaderIncludesTest, RepeatedIncludes) { … }
TEST_F(HeaderIncludesTest, InsertImportWithSameInclude) { … }
TEST_F(HeaderIncludesTest, DontInsertAlreadyImported) { … }
TEST_F(HeaderIncludesTest, DeleteImportAndSameInclude) { … }
TEST_F(HeaderIncludesTest, NoExistingIncludeWithDefine) { … }
TEST_F(HeaderIncludesTest, InsertBeforeCategoryWithLowerPriority) { … }
TEST_F(HeaderIncludesTest, InsertAfterMainHeader) { … }
TEST_F(HeaderIncludesTest, InsertMainHeader) { … }
TEST_F(HeaderIncludesTest, InsertBeforeSystemHeaderLLVM) { … }
TEST_F(HeaderIncludesTest, InsertAfterSystemHeaderGoogle) { … }
TEST_F(HeaderIncludesTest, InsertOneIncludeLLVMStyle) { … }
TEST_F(HeaderIncludesTest, InsertIntoBlockSorted) { … }
TEST_F(HeaderIncludesTest, InsertIntoFirstBlockOfSameKind) { … }
TEST_F(HeaderIncludesTest, InsertIntoSystemBlockSorted) { … }
TEST_F(HeaderIncludesTest, InsertNewSystemIncludeGoogleStyle) { … }
TEST_F(HeaderIncludesTest, NotConfusedByDefine) { … }
TEST_F(HeaderIncludesTest, SkippedTopComment) { … }
TEST_F(HeaderIncludesTest, SkippedMixedComments) { … }
TEST_F(HeaderIncludesTest, MultipleBlockCommentsInOneLine) { … }
TEST_F(HeaderIncludesTest, CodeAfterComments) { … }
TEST_F(HeaderIncludesTest, FakeHeaderGuardIfDef) { … }
TEST_F(HeaderIncludesTest, RealHeaderGuardAfterComments) { … }
TEST_F(HeaderIncludesTest, PragmaOnce) { … }
TEST_F(HeaderIncludesTest, IfNDefWithNoDefine) { … }
TEST_F(HeaderIncludesTest, FakeHeaderGuard) { … }
TEST_F(HeaderIncludesTest, FakeHeaderGuardIfnDef) { … }
TEST_F(HeaderIncludesTest, HeaderGuardWithComment) { … }
TEST_F(HeaderIncludesTest, EmptyCode) { … }
TEST_F(HeaderIncludesTest, NoNewLineAtTheEndOfCode) { … }
TEST_F(HeaderIncludesTest, SkipExistingHeaders) { … }
TEST_F(HeaderIncludesTest, AddIncludesWithDifferentForms) { … }
TEST_F(HeaderIncludesTest, NoInsertionAfterCode) { … }
TEST_F(HeaderIncludesTest, NoInsertionInStringLiteral) { … }
TEST_F(HeaderIncludesTest, NoInsertionAfterOtherDirective) { … }
TEST_F(HeaderIncludesTest, CanInsertAfterLongSystemInclude) { … }
TEST_F(HeaderIncludesTest, CanInsertAfterComment) { … }
TEST_F(HeaderIncludesTest, LongCommentsInTheBeginningOfFile) { … }
TEST_F(HeaderIncludesTest, SimpleDeleteInclude) { … }
TEST_F(HeaderIncludesTest, DeleteQuotedOnly) { … }
TEST_F(HeaderIncludesTest, DeleteAllCode) { … }
TEST_F(HeaderIncludesTest, DeleteOnlyIncludesWithSameQuote) { … }
TEST_F(HeaderIncludesTest, CanDeleteAfterCode) { … }
}
}
}