mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Move 'snippet' queries to 'snippets' folders
This commit is contained in:
12
cpp/ql/examples/snippets/volatilevariable.ql
Normal file
12
cpp/ql/examples/snippets/volatilevariable.ql
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* @name Variable declared volatile
|
||||
* @description Finds variables with a `volatile` modifier
|
||||
* @tags variable
|
||||
* volatile
|
||||
*/
|
||||
|
||||
import cpp
|
||||
|
||||
from Variable f
|
||||
where f.isVolatile()
|
||||
select f
|
||||
Reference in New Issue
Block a user