10 #include "gtest/gtest.h" 16 TEST(ExpandAutoType, ShortenNamespace) {
20 "testnamespace::TestClass",
"testnamespace"));
23 "namespace1::TestClass",
26 ASSERT_EQ(
"TestClass",
34 ASSERT_EQ(
"TestClass<testns1::OtherClass>",
36 "testns1::TestClass<testns1::OtherClass>",
"testns1"));
TEST(BackgroundQueueTest, Priority)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
std::string shortenNamespace(const llvm::StringRef OriginalName, const llvm::StringRef CurrentNamespace)
Try to shorten the OriginalName by removing namespaces from the left of the string that are redundant...