forked from OSchip/llvm-project
[clangd] Move the expandAuto tweak from global namespace into annoymous namespace.
llvm-svn: 365885
This commit is contained in:
parent
52d85fc3cf
commit
210a9b6aee
|
@ -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
|
||||
|
|
|
@ -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: ]
|
||||
---
|
||||
|
|
Loading…
Reference in New Issue