[clangd] Move the expandAuto tweak from global namespace into annoymous namespace.

llvm-svn: 365885
This commit is contained in:
Haojian Wu 2019-07-12 09:38:53 +00:00
parent 52d85fc3cf
commit 210a9b6aee
2 changed files with 4 additions and 2 deletions

View File

@ -24,6 +24,7 @@
namespace clang {
namespace clangd {
namespace {
/// Expand the "auto" type to the derived type
/// Before:
@ -53,7 +54,7 @@ private:
REGISTER_TWEAK(ExpandAutoType)
std::string ExpandAutoType::title() const { return "expand auto type"; }
std::string ExpandAutoType::title() const { return "Expand auto type"; }
bool ExpandAutoType::prepare(const Selection& Inputs) {
CachedLocation = llvm::None;
@ -115,5 +116,6 @@ llvm::Error ExpandAutoType::createErrorMessage(const std::string& Message,
ErrorMessage.c_str());
}
} // namespace
} // namespace clangd
} // namespace clang

View File

@ -47,7 +47,7 @@
# CHECK-NEXT: }
# CHECK-NEXT: ],
# CHECK-NEXT: "command": "clangd.applyTweak",
# CHECK-NEXT: "title": "expand auto type"
# CHECK-NEXT: "title": "Expand auto type"
# CHECK-NEXT: }
# CHECK-NEXT: ]
---