import { Joinpoint } from "@specs-feup/clava/api/Joinpoints.js"; import MISRARule from "../../MISRARule.js"; import { AnalysisType, MISRATransformationReport } from "../../MISRA.js"; /** * MISRA-C Rule 13.6: The operand of the sizeof operator shall not contain any expression which has potential side effects */ export default class Rule_13_6_SafeSizeOfOperand extends MISRARule { #private; /** * Scope of analysis */ analysisType: AnalysisType; /** * @returns Rule identifier according to MISRA-C:2012 */ get name(): string; private operandIsVariableArrayType; /** * * @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; apply($jp: Joinpoint): MISRATransformationReport; } //# sourceMappingURL=Rule_13_6_SafeSizeOfOperand.d.ts.map