Skip to content

Commit 5a77128

Browse files
committed
C++: Disable cpp/implicit-function-declaration on BMN databases.
1 parent 208ae7a commit 5a77128

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpp/ql/src/Likely Bugs/Underspecified Functions/ImplicitFunctionDeclaration.ql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ import TooFewArguments
1717
import TooManyArguments
1818
import semmle.code.cpp.commons.Exclusions
1919

20+
/*
21+
* This query is not compatible with build mode: none databases, and has
22+
* no results on those databases.
23+
*/
24+
2025
predicate locInfo(Locatable e, File file, int line, int col) {
2126
e.getFile() = file and
2227
e.getLocation().getStartLine() = line and
@@ -39,6 +44,7 @@ predicate isCompiledAsC(File f) {
3944
from FunctionDeclarationEntry fdeIm, FunctionCall fc
4045
where
4146
isCompiledAsC(fdeIm.getFile()) and
47+
not any(Compilation c).buildModeNone() and
4248
not isFromMacroDefinition(fc) and
4349
fdeIm.isImplicit() and
4450
sameLocation(fdeIm, fc) and

0 commit comments

Comments
 (0)