From b9143bb653124ea801a02ec60f778688ec3b68d0 Mon Sep 17 00:00:00 2001 From: "J. Rassi" Date: Wed, 14 Sep 2016 13:16:14 -0400 Subject: [PATCH] CXX-1006 clang_format.py should format examples/ --- etc/clang_format.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/etc/clang_format.py b/etc/clang_format.py index 9e5fa0dc38..4fd88edf95 100644 --- a/etc/clang_format.py +++ b/etc/clang_format.py @@ -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)$')