Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
7221e973
Commit
7221e973
authored
Sep 18, 2019
by
Paul
Browse files
Add rule to check for incorrect lambda attributes
parent
a0f9b785
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
cppcheck.rules
cppcheck.rules
+9
-0
No files found.
cppcheck.rules
View file @
7221e973
...
...
@@ -89,6 +89,15 @@
<summary>
Use manage pointer for resource management
</summary>
</message>
</rule>
<rule>
<tokenlist>
raw
</tokenlist>
<pattern>
<![CDATA[] (__device__ |__host__ )+(\(|{)]]>
</pattern>
<message>
<id>
LambdaAttribute
</id>
<severity>
warning
</severity>
<summary>
Attributes to lambdas must come after parameter list.
</summary>
</message>
</rule>
<rule>
<tokenlist>
raw
</tokenlist>
<pattern>
<![CDATA[hipLaunchKernelGGL \( (?!\( \w+ < \w+ > \))]]>
</pattern>
...
...
Write
Preview
Markdown
is supported
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