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

clang-format.py weird indentation for lamdas

    XMLWordPrintable

    Details

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

      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

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: