C++: Autoformat.

This commit is contained in:
Geoffrey White
2021-05-13 16:19:09 +01:00
parent 3a83ff54e6
commit a9d57450c8
2 changed files with 7 additions and 14 deletions

View File

@@ -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."

View File

@@ -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