mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
C++: Autoformat.
This commit is contained in:
@@ -55,16 +55,12 @@ Macro getAdditionalEvidenceMacro() {
|
||||
/**
|
||||
* An enum constant which may relate to an insecure encryption algorithm.
|
||||
*/
|
||||
EnumConstant getAnInsecureEncryptionEnumConst() {
|
||||
isInsecureEncryption(result.getName())
|
||||
}
|
||||
EnumConstant getAnInsecureEncryptionEnumConst() { isInsecureEncryption(result.getName()) }
|
||||
|
||||
/**
|
||||
* An enum constant with additional evidence it is related to encryption.
|
||||
*/
|
||||
EnumConstant getAdditionalEvidenceEnumConst() {
|
||||
isEncryptionAdditionalEvidence(result.getName())
|
||||
}
|
||||
EnumConstant getAdditionalEvidenceEnumConst() { isEncryptionAdditionalEvidence(result.getName()) }
|
||||
|
||||
/**
|
||||
* A function call we have a high confidence is related to use of an insecure
|
||||
@@ -111,14 +107,11 @@ class InsecureFunctionCall extends FunctionCall {
|
||||
)
|
||||
}
|
||||
|
||||
Element getBlame() {
|
||||
result = blame
|
||||
}
|
||||
Element getBlame() { result = blame }
|
||||
|
||||
string getDescription() {
|
||||
result = explain
|
||||
}
|
||||
string getDescription() { result = explain }
|
||||
}
|
||||
|
||||
from InsecureFunctionCall c
|
||||
select c.getBlame(), "This " + c.getDescription() + " specifies a broken or weak cryptographic algorithm."
|
||||
select c.getBlame(),
|
||||
"This " + c.getDescription() + " specifies a broken or weak cryptographic algorithm."
|
||||
|
||||
@@ -60,7 +60,7 @@ predicate isInsecureEncryption(string name) {
|
||||
not name.toUpperCase().regexpMatch(".*TRIPLE.*")
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Holds if there is additional evidence that `name` looks like it might be
|
||||
* related to operations with an encyption algorithm, besides the name of a
|
||||
* specific algorithm. This can be used in conjuction with
|
||||
|
||||
Reference in New Issue
Block a user