Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-19788

clang-format.py weird indentation for lamdas

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

          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:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: