File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -68,10 +68,19 @@ def get_compile_commands(self, filepath):
68
68
def get_all_files (self ):
69
69
"""Return an iterable of path strings.
70
70
71
- A same path can be returned multiple times,
72
- store the result in a set if uniqueness is required."""
71
+ It is ok to return the same path multiple times
72
+ unless all_files_unique() returns True.
73
+ """
73
74
raise compdb .NotImplementedError
74
75
76
+ def all_files_unique (self ):
77
+ """Whether or not get_all_files() returns unique paths.
78
+
79
+ Override this if get_all_files() is guaranteed to return unique paths,
80
+ this fact can be used for optimization.
81
+ """
82
+ return False
83
+
75
84
def get_all_compile_commands (self ):
76
85
"""Return an iterable of CompileCommand."""
77
86
raise compdb .NotImplementedError
You can’t perform that action at this time.
0 commit comments