llvm-project/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp

17 lines
363 B
C++
Raw Normal View History

#include "ClangTidyTest.h"
#include "llvm/LLVMTidyModule.h"
#include "gtest/gtest.h"
namespace clang {
namespace tidy {
namespace test {
TEST(NamespaceCommentCheckTest, Basic) {
EXPECT_EQ("namespace i {\n} // namespace i",
runCheckOnCode<NamespaceCommentCheck>("namespace i {\n}"));
}
} // namespace test
} // namespace tidy
} // namespace clang