Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-7153

Clang format formats brackets differently between C and C++

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Our clang format script should be fixed / improved to format them the same. The scenario in question is:

          int
          next(WT_CONFIG_ITEM *key, WT_CONFIG_ITEM *value)
          {
               return _config_parser->next(_config_parser, key, value);
          }
      

      vs

          int
          next(WT_CONFIG_ITEM *key, WT_CONFIG_ITEM *value) {
               return _config_parser->next(_config_parser, key, value);
          }
      

      The latter or the two is the correct syntax however clang format is formatting cxx files as the previous.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            luke.pearson@mongodb.com Luke Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: