Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Dietrich
clang-hash
Commits
9ce8b50b
Commit
9ce8b50b
authored
Jan 30, 2017
by
Christian Dietrich
Browse files
plugin: ignore filenames ending with .i
parent
da0cfc42
Pipeline
#3068
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/clang-hash.cc
View file @
9ce8b50b
...
...
@@ -189,6 +189,8 @@ private:
}
if
(
Arg
.
size
()
>
2
&&
Arg
.
compare
(
Arg
.
size
()
-
2
,
2
,
".c"
)
==
0
)
continue
;
// don't hash source filename
if
(
Arg
.
size
()
>
2
&&
Arg
.
compare
(
Arg
.
size
()
-
2
,
2
,
".i"
)
==
0
)
continue
;
// don't hash source filename (ccache preprocessed)
if
(
Arg
.
find
(
"-stop-if-same-hash"
)
!=
std
::
string
::
npos
)
{
continue
;
// also don't hash this (plugin argument)
...
...
@@ -196,6 +198,9 @@ private:
if
(
Arg
.
find
(
"-hash-verbose"
)
!=
std
::
string
::
npos
)
{
continue
;
// also don't hash this (plugin argument)
}
if
(
Arg
.
find
(
"-hash-verbose"
)
!=
std
::
string
::
npos
)
{
continue
;
// also don't hash this (plugin argument)
}
CommandLineArgs
.
push_back
(
Arg
);
}
while
(
Arg
.
size
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment