[PATCH] D70656: [clangd] Define out-of-line qualify function name

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 29 02:22:15 PST 2019


hokein added inline comments.


================
Comment at: clang-tools-extra/clangd/unittests/TweakTests.cpp:1831
+  struct {
+    llvm::StringRef Test;
+    llvm::StringRef SourceFile;
----------------
maybe name them `TestHeader`, and `TestSource`.


================
Comment at: clang-tools-extra/clangd/unittests/TweakTests.cpp:1854
+       "void a::b::Foo::foo() {}\n"},
+      {"namespace a { namespace b { void f^oo() {} } }", "namespace a{}",
+       "namespace a { namespace b { void foo() ; } }",
----------------
nit: could we keep each string per line? It would improve the code readability here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70656/new/

https://reviews.llvm.org/D70656





More information about the cfe-commits mailing list