File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,17 +121,13 @@ check:
121121
122122All files under src/a and src/b are then checked.
123123
124- The second option is to use -i, which specifies a pattern of path names to ignore. With this command no files in src/c
125- are checked:
124+ The second option is to use -i, which specifies the files/paths to ignore. With this command no files in src/c are
125+ checked:
126126
127127 cppcheck -isrc/c src
128128
129- The above pattern matches any path that has a component named src anywhere, which is directly followed by a component
130- named c. c can be a file or a directory, in which case all files below c are ignored. Patterns can also be absolute
131- paths, or relative to the current directory if the first path component is dot or dot-dot. The glob characters ?, \*
132- and \*\* are allowed. ? matches one character, \* and \*\* match any number of characters. \*\* matches path
133- separators, where as ? and \* does not. Multiple patterns can be used by supplying the -i flag multiple times. The
134- following command ignores everything in both the src/b and src/c directories:
129+ This option is only valid when supplying an input directory. To ignore multiple directories supply the -i flag for each
130+ directory individually. The following command ignores both the src/b and src/c directories:
135131
136132 cppcheck -isrc/b -isrc/c
137133
Original file line number Diff line number Diff line change @@ -122,17 +122,13 @@ check:
122122
123123All files under src/a and src/b are then checked.
124124
125- The second option is to use -i, which specifies a pattern of path names to ignore. With this command no files in src/c
126- are checked:
125+ The second option is to use -i, which specifies the files/paths to ignore. With this command no files in src/c are
126+ checked:
127127
128128 cppcheck -isrc/c src
129129
130- The above pattern matches any path that has a component named src anywhere, which is directly followed by a component
131- named c. c can be a file or a directory, in which case all files below c are ignored. Patterns can also be absolute
132- paths, or relative to the current directory if the first path component is dot or dot-dot. The glob characters ?, \*
133- and \*\* are allowed. ? matches one character, \* and \*\* match any number of characters. \*\* matches path
134- separators, where as ? and \* does not. Multiple patterns can be used by supplying the -i flag multiple times. The
135- following command ignores everything in both the src/b and src/c directories:
130+ This option is only valid when supplying an input directory. To ignore multiple directories supply the -i flag for each
131+ directory individually. The following command ignores both the src/b and src/c directories:
136132
137133 cppcheck -isrc/b -isrc/c
138134
You can’t perform that action at this time.
0 commit comments