[clang-tools-extra] [clangd] Allow "move function body out-of-line" in non-header files (PR #69704)

kadir çetinkaya via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 21 01:49:49 PST 2023


================
@@ -349,6 +349,44 @@ TEST_F(DefineOutlineTest, ApplyTest) {
   }
 }
 
+TEST_F(DefineOutlineTest, InCppFile) {
+  FileName = "Test.cpp";
+
+  struct {
+    llvm::StringRef Test;
+    llvm::StringRef ExpectedSource;
+  } Cases[] = {
+      // Member function with some adornments
+      // FIXME: What's with the extra spaces?
+      {
+          "namespace {\n"
----------------
kadircet wrote:

can you use rawstring literals instead?

https://github.com/llvm/llvm-project/pull/69704


More information about the cfe-commits mailing list