Skip to content

Commit

Permalink
Move command line checking to the processing phase in C++
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Oct 1, 2024
1 parent 82782ec commit 93ba580
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ public boolean isEnabled(ExtensionParameters parameters)
@Override
public void check(Root rootNode, ExtensionParameters parameters) throws ZserioExtensionException
{
CppExtensionParameters.check(parameters);

final CompatibilityChecker compatibilityChecker = new CompatibilityChecker();
rootNode.walk(compatibilityChecker);

Expand All @@ -70,6 +68,9 @@ public void check(Root rootNode, ExtensionParameters parameters) throws ZserioEx
@Override
public void process(Root rootNode, ExtensionParameters parameters) throws ZserioExtensionException
{
// this check should be here not in check() method to avoid reporting error if extension is not called
CppExtensionParameters.check(parameters);

final OutputFileManager outputFileManager = new OutputFileManager(parameters);
final CppExtensionParameters cppParameters = new CppExtensionParameters(parameters);

Expand Down

0 comments on commit 93ba580

Please sign in to comment.