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

clang-format.py weird indentation for lamdas

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 3.1.6
    • Build

    Description

          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;
                            });
      

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: