diff options
| author | Haojian Wu <hokein@google.com> | 2019-07-12 09:38:53 +0000 |
|---|---|---|
| committer | Haojian Wu <hokein@google.com> | 2019-07-12 09:38:53 +0000 |
| commit | 210a9b6aee625f5924281a8ee36036396fff1450 (patch) | |
| tree | f9a4089d27cd807c41adfb883fd1b61a3d2ea83a | |
| parent | 52d85fc3cfa7da1d81c64331c3c532e9e590c346 (diff) | |
| download | bcm5719-llvm-210a9b6aee625f5924281a8ee36036396fff1450.tar.gz bcm5719-llvm-210a9b6aee625f5924281a8ee36036396fff1450.zip | |
[clangd] Move the expandAuto tweak from global namespace into annoymous namespace.
llvm-svn: 365885
| -rw-r--r-- | clang-tools-extra/clangd/refactor/tweaks/ExpandAutoType.cpp | 4 | ||||
| -rw-r--r-- | clang-tools-extra/clangd/test/code-action-request.test | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/refactor/tweaks/ExpandAutoType.cpp b/clang-tools-extra/clangd/refactor/tweaks/ExpandAutoType.cpp index b37cda20fec..46ed334817b 100644 --- a/clang-tools-extra/clangd/refactor/tweaks/ExpandAutoType.cpp +++ b/clang-tools-extra/clangd/refactor/tweaks/ExpandAutoType.cpp @@ -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 diff --git a/clang-tools-extra/clangd/test/code-action-request.test b/clang-tools-extra/clangd/test/code-action-request.test index 5b7dd6b95b5..c64019e8215 100644 --- a/clang-tools-extra/clangd/test/code-action-request.test +++ b/clang-tools-extra/clangd/test/code-action-request.test @@ -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: ] --- |

