Skip to content

Commit b9143bb

Browse files
committed
CXX-1006 clang_format.py should format examples/
1 parent b8e69d1 commit b9143bb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

etc/clang_format.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -639,12 +639,10 @@ def _get_candidate_files(self):
639639
"""
640640
gito = self._callgito(["ls-files"])
641641

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

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

0 commit comments

Comments
 (0)