@@ -839,87 +839,89 @@ def PaddingChecker : Checker<"Padding">,
839839
840840let ParentPackage = InsecureAPI in {
841841
842- def SecuritySyntaxChecker : Checker<"SecuritySyntaxChecker">,
843- HelpText<"Base of various security function related checkers">,
844- CheckerOptions<[
845- CmdLineOption<String,
846- "Warn",
847- "List of space-separated function name to be warned about. "
848- "Defaults to an empty list.",
849- "",
850- InAlpha>
851- ]>,
852- Documentation<NotDocumented>,
853- Hidden;
854-
855- def bcmp : Checker<"bcmp">,
856- HelpText<"Warn on uses of the 'bcmp' function">,
857- Dependencies<[SecuritySyntaxChecker]>,
858- Documentation<HasDocumentation>;
859-
860- def bcopy : Checker<"bcopy">,
861- HelpText<"Warn on uses of the 'bcopy' function">,
862- Dependencies<[SecuritySyntaxChecker]>,
863- Documentation<HasDocumentation>;
864-
865- def bzero : Checker<"bzero">,
866- HelpText<"Warn on uses of the 'bzero' function">,
867- Dependencies<[SecuritySyntaxChecker]>,
868- Documentation<HasDocumentation>;
869-
870- def gets : Checker<"gets">,
871- HelpText<"Warn on uses of the 'gets' function">,
872- Dependencies<[SecuritySyntaxChecker]>,
873- Documentation<HasDocumentation>;
874-
875- def getpw : Checker<"getpw">,
876- HelpText<"Warn on uses of the 'getpw' function">,
877- Dependencies<[SecuritySyntaxChecker]>,
878- Documentation<HasDocumentation>;
879-
880- def mktemp : Checker<"mktemp">,
881- HelpText<"Warn on uses of the 'mktemp' function">,
882- Dependencies<[SecuritySyntaxChecker]>,
883- Documentation<HasDocumentation>;
884-
885- def mkstemp : Checker<"mkstemp">,
886- HelpText<"Warn when 'mkstemp' is passed fewer than 6 X's in the format "
887- "string">,
888- Dependencies<[SecuritySyntaxChecker]>,
889- Documentation<HasDocumentation>;
842+ def SecuritySyntaxChecker
843+ : Checker<"SecuritySyntaxChecker">,
844+ HelpText<"Base of various security function related checkers">,
845+ CheckerOptions<[CmdLineOption<
846+ String, "Warn",
847+ "List of space-separated function name to be warned about. "
848+ "Defaults to an empty list.",
849+ "", InAlpha>]>,
850+ Documentation<NotDocumented>,
851+ Hidden;
852+
853+ def bcmp : Checker<"bcmp">,
854+ HelpText<"Warn on uses of the 'bcmp' function">,
855+ Dependencies<[SecuritySyntaxChecker]>,
856+ Documentation<HasDocumentation>;
857+
858+ def bcopy : Checker<"bcopy">,
859+ HelpText<"Warn on uses of the 'bcopy' function">,
860+ Dependencies<[SecuritySyntaxChecker]>,
861+ Documentation<HasDocumentation>;
862+
863+ def bzero : Checker<"bzero">,
864+ HelpText<"Warn on uses of the 'bzero' function">,
865+ Dependencies<[SecuritySyntaxChecker]>,
866+ Documentation<HasDocumentation>;
867+
868+ def gets : Checker<"gets">,
869+ HelpText<"Warn on uses of the 'gets' function">,
870+ Dependencies<[SecuritySyntaxChecker]>,
871+ Documentation<HasDocumentation>;
872+
873+ def getpw : Checker<"getpw">,
874+ HelpText<"Warn on uses of the 'getpw' function">,
875+ Dependencies<[SecuritySyntaxChecker]>,
876+ Documentation<HasDocumentation>;
877+
878+ def mktemp : Checker<"mktemp">,
879+ HelpText<"Warn on uses of the 'mktemp' function">,
880+ Dependencies<[SecuritySyntaxChecker]>,
881+ Documentation<HasDocumentation>;
882+
883+ def mkstemp
884+ : Checker<"mkstemp">,
885+ HelpText<"Warn when 'mkstemp' is passed fewer than 6 X's in the format "
886+ "string">,
887+ Dependencies<[SecuritySyntaxChecker]>,
888+ Documentation<HasDocumentation>;
890889
891- def rand : Checker<"rand">,
892- HelpText<"Warn on uses of the 'rand', 'random', and related functions">,
893- Dependencies<[SecuritySyntaxChecker]>,
894- Documentation<HasDocumentation>;
890+ def rand
891+ : Checker<"rand">,
892+ HelpText<"Warn on uses of the 'rand', 'random', and related functions">,
893+ Dependencies<[SecuritySyntaxChecker]>,
894+ Documentation<HasDocumentation>;
895895
896- def strcpy : Checker<"strcpy">,
897- HelpText<"Warn on uses of the 'strcpy' and 'strcat' functions">,
898- Dependencies<[SecuritySyntaxChecker]>,
899- Documentation<HasDocumentation>;
896+ def strcpy : Checker<"strcpy">,
897+ HelpText<"Warn on uses of the 'strcpy' and 'strcat' functions">,
898+ Dependencies<[SecuritySyntaxChecker]>,
899+ Documentation<HasDocumentation>;
900900
901- def vfork : Checker<"vfork">,
902- HelpText<"Warn on uses of the 'vfork' function">,
903- Dependencies<[SecuritySyntaxChecker]>,
904- Documentation<HasDocumentation>;
901+ def vfork : Checker<"vfork">,
902+ HelpText<"Warn on uses of the 'vfork' function">,
903+ Dependencies<[SecuritySyntaxChecker]>,
904+ Documentation<HasDocumentation>;
905905
906- def UncheckedReturn : Checker<"UncheckedReturn">,
907- HelpText<"Warn on uses of functions whose return values must be always "
908- "checked">,
909- Dependencies<[SecuritySyntaxChecker]>,
910- Documentation<HasDocumentation>;
906+ def UncheckedReturn
907+ : Checker<"UncheckedReturn">,
908+ HelpText<"Warn on uses of functions whose return values must be always "
909+ "checked">,
910+ Dependencies<[SecuritySyntaxChecker]>,
911+ Documentation<HasDocumentation>;
911912
912- def DeprecatedOrUnsafeBufferHandling :
913- Checker<"DeprecatedOrUnsafeBufferHandling">,
914- HelpText<"Warn on uses of unsecure or deprecated buffer manipulating "
915- "functions">,
916- Dependencies<[SecuritySyntaxChecker]>,
917- Documentation<HasDocumentation>;
913+ def DeprecatedOrUnsafeBufferHandling
914+ : Checker<"DeprecatedOrUnsafeBufferHandling">,
915+ HelpText<"Warn on uses of unsecure or deprecated buffer manipulating "
916+ "functions">,
917+ Dependencies<[SecuritySyntaxChecker]>,
918+ Documentation<HasDocumentation>;
918919
919- def decodeValueOfObjCType : Checker<"decodeValueOfObjCType">,
920- HelpText<"Warn on uses of the '-decodeValueOfObjCType:at:' method">,
921- Dependencies<[SecuritySyntaxChecker]>,
922- Documentation<HasDocumentation>;
920+ def decodeValueOfObjCType
921+ : Checker<"decodeValueOfObjCType">,
922+ HelpText<"Warn on uses of the '-decodeValueOfObjCType:at:' method">,
923+ Dependencies<[SecuritySyntaxChecker]>,
924+ Documentation<HasDocumentation>;
923925
924926} // end "security.insecureAPI"
925927
0 commit comments