[libcxx-commits] [libcxx] [llvm] [libc++] Remove the ignore_format.txt file (PR #73135)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 22 08:24:01 PST 2023


================
@@ -115,24 +115,12 @@ class ClangFormatHelper(FormatHelper):
     def instructions(self) -> str:
         return " ".join(self.cf_cmd)
 
-    @cached_property
-    def libcxx_excluded_files(self) -> list[str]:
-        with open("libcxx/utils/data/ignore_format.txt", "r") as ifd:
-            return [excl.strip() for excl in ifd.readlines()]
-
-    def should_be_excluded(self, path: str) -> bool:
-        if path in self.libcxx_excluded_files:
-            print(f"{self.name}: Excluding file {path}")
-            return True
-        return False
-
     def filter_changed_files(self, changed_files: list[str]) -> list[str]:
         filtered_files = []
         for path in changed_files:
             _, ext = os.path.splitext(path)
             if ext in (".cpp", ".c", ".h", ".hpp", ".hxx", ".cxx"):
-                if not self.should_be_excluded(path):
-                    filtered_files.append(path)
+                filtered_files.append(path)
----------------
philnik777 wrote:

Does this work for headers without any extension?

https://github.com/llvm/llvm-project/pull/73135


More information about the libcxx-commits mailing list