import { Joinpoint } from "@specs-feup/clava/api/Joinpoints.js"; import MISRARule from "../../MISRARule.js"; import { AnalysisType, MISRATransformationReport } from "../../MISRA.js"; /** * MISRA-C Rule 17.6: The declaration of an array parameter shall not contain the static keyword between the [ ] */ export default class Rule_17_6_StaticArraySizeParam extends MISRARule { #private; /** * Scope of analysis */ readonly analysisType = AnalysisType.SINGLE_TRANSLATION_UNIT; /** * Standards to which this rule applies to */ protected readonly appliesTo: Set; /** * @returns Rule identifier according to MISRA-C:2012 */ get name(): string; /** * Checks if the given joinpoint represents a function with any array parameter containing the 'static' keyword between the [ ]. * * @param $jp - Joinpoint to analyze * @param logErrors - [logErrors=false] - Whether to log errors if a violation is detected * @returns Returns true if the joinpoint violates the rule, false otherwise */ match($jp: Joinpoint, logErrors?: boolean): boolean; /** * Transforms the joinpoint if it represents a function with any array parameter containing the 'static' keyword between the square brackets. * * @param $jp - Joinpoint to transform * @returns Report detailing the transformation result */ apply($jp: Joinpoint): MISRATransformationReport; } //# sourceMappingURL=Rule_17_6_StaticArraySizeParam.d.ts.map