Extend deck grooming functions to detect keywords which are in invalid sections

This commit is contained in:
Andreas Lauser
2014-10-12 14:53:49 +02:00
parent a4f55f5f8d
commit ee9b7d2cae
4 changed files with 61 additions and 5 deletions

View File

@@ -39,7 +39,8 @@ bool checkDeck(DeckConstPtr deck, ParserLogPtr parserLog, size_t enabledChecks)
// make sure all mandatory sections are present and that their order is correct
if (enabledChecks & SectionTopology) {
deckValid = deckValid && Section::checkSectionTopology(deck, parserLog);
bool ensureKeywordSection = enabledChecks & KeywordSection;
deckValid = deckValid && Section::checkSectionTopology(deck, parserLog, ensureKeywordSection);
}
return deckValid;