mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
replace shouldDump -> shouldDumpLocation
This commit is contained in:
@@ -5,7 +5,7 @@ private import cpp
|
||||
*
|
||||
* This predicate excludes locations in standard headers.
|
||||
*/
|
||||
predicate shouldDump(Location loc) {
|
||||
predicate shouldDumpLocation(Location loc) {
|
||||
not loc.getFile().getAbsolutePath().regexpMatch(".*/include/[^/]+")
|
||||
}
|
||||
|
||||
@@ -14,4 +14,4 @@ predicate shouldDump(Location loc) {
|
||||
*
|
||||
* This predicate excludes functions defined in standard headers.
|
||||
*/
|
||||
predicate shouldDumpFunction(Function func) { shouldDump(func.getLocation()) }
|
||||
predicate shouldDumpFunction(Function func) { shouldDumpLocation(func.getLocation()) }
|
||||
|
||||
@@ -3,5 +3,5 @@ private import semmle.code.cpp.ir.IR
|
||||
private import PrintConfig
|
||||
|
||||
from Operand a
|
||||
where shouldDump(a.getLocation())
|
||||
where shouldDumpLocation(a.getLocation())
|
||||
select a, a.getDumpString()
|
||||
|
||||
Reference in New Issue
Block a user