Skip to content

Commit 8cfa8b7

Browse files
authored
Update default watch patterns to include more extensions (#246)
1 parent 7c424a7 commit 8cfa8b7

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,23 @@ file as well. You can then add `objdiff.json` to your `.gitignore` to prevent it
9090
"build_base": true,
9191
"watch_patterns": [
9292
"*.c",
93+
"*.cc",
9394
"*.cp",
9495
"*.cpp",
9596
"*.cxx",
97+
"*.c++",
9698
"*.h",
99+
"*.hh",
97100
"*.hp",
98101
"*.hpp",
99102
"*.hxx",
103+
"*.h++",
104+
"*.pch",
105+
"*.pch++",
106+
"*.inc",
100107
"*.s",
101108
"*.S",
102109
"*.asm",
103-
"*.inc",
104110
"*.py",
105111
"*.yml",
106112
"*.txt",

config.schema.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,23 @@
5757
},
5858
"default": [
5959
"*.c",
60+
"*.cc",
6061
"*.cp",
6162
"*.cpp",
6263
"*.cxx",
64+
"*.c++",
6365
"*.h",
66+
"*.hh",
6467
"*.hp",
6568
"*.hpp",
6669
"*.hxx",
70+
"*.h++",
71+
"*.pch",
72+
"*.pch++",
73+
"*.inc",
6774
"*.s",
6875
"*.S",
6976
"*.asm",
70-
"*.inc",
7177
"*.py",
7278
"*.yml",
7379
"*.txt",

objdiff-core/src/config/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,9 @@ pub struct ScratchConfig {
204204
pub const CONFIG_FILENAMES: [&str; 3] = ["objdiff.json", "objdiff.yml", "objdiff.yaml"];
205205

206206
pub const DEFAULT_WATCH_PATTERNS: &[&str] = &[
207-
"*.c", "*.cp", "*.cpp", "*.cxx", "*.h", "*.hp", "*.hpp", "*.hxx", "*.s", "*.S", "*.asm",
208-
"*.inc", "*.py", "*.yml", "*.txt", "*.json",
207+
"*.c", "*.cc", "*.cp", "*.cpp", "*.cxx", "*.c++", "*.h", "*.hh", "*.hp", "*.hpp", "*.hxx",
208+
"*.h++", "*.pch", "*.pch++", "*.inc", "*.s", "*.S", "*.asm", "*.py", "*.yml", "*.txt",
209+
"*.json",
209210
];
210211

211212
pub const DEFAULT_IGNORE_PATTERNS: &[&str] = &["build/**/*"];

0 commit comments

Comments
 (0)