CPP: Declaration -> definition.

This commit is contained in:
Geoffrey White
2019-04-09 12:35:20 +01:00
parent 5bd5b1b6ce
commit ddb1b0ac1c

View File

@@ -23,7 +23,7 @@ private predicate looksLikeCode(string line) {
implies
// ... then there has to be ") {" (or some variation)
// on the line, suggesting it's a statement like `if`
// or a function declaration. Otherwise it's likely to be a
// or a function definition. Otherwise it's likely to be a
// benign use of braces such as a JSON example or explanatory
// pseudocode.
trimmed.regexpMatch(".*(\\)|const|volatile|override|final|noexcept|&)\\s*\\{.*")