Skip to content

Commit

Permalink
CXX-1006 clang_format.py should format examples/
Browse files Browse the repository at this point in the history
  • Loading branch information
jrassi committed Sep 15, 2016
1 parent b8e69d1 commit b9143bb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions etc/clang_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,12 +639,10 @@ def _get_candidate_files(self):
"""
gito = self._callgito(["ls-files"])

# This allows us to pick all the interesting files
# in the mongo and mongo-enterprise repos
file_list = [line.rstrip()
for line in gito.splitlines() if "src" in line and
not "examples" in line and
not "third_party" in line]
for line in gito.splitlines() if
(line.startswith("src/") and not "/third_party/" in line) or
line.startswith("examples/")]

files_match = re.compile('\\.(h|hpp|cpp)$')

Expand Down

0 comments on commit b9143bb

Please sign in to comment.