[Feature] Implement semantic analysis warnings using CompilableASTNode.checkForWarnings()
#199
Closed
6 tasks done
Labels
Milestone
Is there an existing proposal for this?
This feature does not exist in the latest version
Proposal
Implement semantic analysis warnings using
CompilableASTNode.checkForWarnings()
, which is a specific function that will check for warnings during the semantic analysis of a program. If the user decides to disable warnings using a compile config flag, then this function is not called at all avoiding unnecessary checking.This function should be called last after the primary semantic analysis, type checking and target-specific semantic analysis was finished and not called at all if an error occurred, even with recovery mode (#198).
Exact behaviour / changes you want
-w/--warnings
and--no-warnings
.CompilableASTNode.checkForWarnings()
, which must be implemented by every child class.CompilableASTNode.semanticAnalysis()
andKipperProgramContext
, which will keep track of all warnings.warnings
in the classKipperCompileResult
, which stores a list of all warnings.The text was updated successfully, but these errors were encountered: