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

clang_format leaves temporary files around after a reformat

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.9
    • Affects Version/s: 3.3.8
    • Component/s: Build
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Platforms 16 (06/24/16)

      After upgrading clang_format to version 3.8 I noticed that each time it formats a source file it leaves a .TMP file around. For example:

      Changes not staged for commit:
        (use "git add <file>..." to update what will be committed)
        (use "git checkout -- <file>..." to discard changes in working directory
              modified:   src/mongo/db/commands.cpp
              modified:   src/mongo/db/commands.h
      
      Untracked files:
        (use "git add <file>..." to include in what will be committed)
              src/mongo/db/commands.cpp~RF3ac591c5.TMP
              src/mongo/db/commands.cpp~RF3aca5030.TMP
              src/mongo/db/commands.h~RF3ac591c5.TMP
      

      Having these files around makes it difficult to run git add src/., because they will get added to the source tree as well.

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: