[SERVER-19788] clang-format.py weird indentation for lamdas Created: 05/Aug/15  Updated: 15/Oct/19  Resolved: 15/Oct/19

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 3.1.6
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Randolph Tan Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Won't Fix Votes: 0
Labels: clang-format
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

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



 Comments   
Comment by Mark Benvenuto [ 23/May/16 ]

Moving to planned but not scheduled, because I do not know how to fix this with clang-format 3.8.0 or what the desired changes would be.

Comment by Mark Benvenuto [ 18/Apr/16 ]

Was this the code block from where you go the code snippet?

Generated at Thu Feb 08 03:52:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.