mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
[CPP-340] Minor formatting tweaks
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @name Call with arguments to an implicitly declared function
|
||||
* @description A function call passed arguments even though the
|
||||
* function in question is only implicitly declared (and
|
||||
* function in question is only implicitly declared (and
|
||||
* hence accepting no arguments). This may indicate
|
||||
* that the code does not follow the author's intent.
|
||||
* @kind problem
|
||||
@@ -16,9 +16,7 @@ import cpp
|
||||
|
||||
// True if there is no explicit definition of the function
|
||||
predicate hasNoExplicitDecl(Function f) {
|
||||
not exists(FunctionDeclarationEntry fde | fde = f.getADeclarationEntry() |
|
||||
not fde.isImplicit()
|
||||
)
|
||||
not exists(FunctionDeclarationEntry fde | fde = f.getADeclarationEntry() | not fde.isImplicit())
|
||||
}
|
||||
|
||||
// True if this file (or header) was compiled as a C file
|
||||
|
||||
Reference in New Issue
Block a user