import { Joinpoint } from "@specs-feup/clava/api/Joinpoints.js"; import MISRARule from "../../MISRARule.js"; import { AnalysisType, MISRATransformationReport } from "../../MISRA.js"; /** * MISRA-C Rule 8.6: An identifier with external linkage shall have exactly one external definition */ export default class Rule_8_6_SingleExternalDefinition extends MISRARule { #private; /** * Scope of analysis */ readonly analysisType = AnalysisType.SYSTEM; /** * A positive integer starting from 1 that indicates the rule's priority, determining the order in which rules are applied. */ readonly priority = 2; /** * @returns Rule identifier according to MISRA-C:2012 */ get name(): string; /** * * @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; /** * * @param $jp - Joinpoint to transform * @returns Report detailing the transformation result */ apply($jp: Joinpoint): MISRATransformationReport; } //# sourceMappingURL=Rule_8_6_SingleExternalDefinition.d.ts.map