clang-format.py weird indentation for lamdas

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.1.6
    • Component/s: Build
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

          onFindCommand([](const RemoteCommandRequest& request)
                            -> StatusWith<vector<BSONObj>> {
                                ASSERT_EQUALS(dummyHost, request.target);
                                ASSERT_EQUALS("config", request.dbname);
      
                                const auto& findCmd = request.cmdObj;
                                ASSERT_EQUALS("lockpings", findCmd["find"].str());
                                ASSERT_EQUALS(BSON("_id"
                                                   << "test"),
                                              findCmd["filter"].Obj());
                                ASSERT_EQUALS(1, findCmd["limit"].numberLong());
                                checkReadConcern(findCmd);
      
                                BSONObj pingDoc(fromjson(R"({
                  _id: "test",
                  ping: { $date: "2015-05-26T13:06:27.293Z" }
              })"));
      
                                std::vector<BSONObj> result;
                                result.push_back(pingDoc);
      
                                return result;
                            });
      

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: