977 |
vIssues.push_back(w); |
vIssues.push_back(w); |
978 |
} |
} |
979 |
|
|
980 |
|
void ParserContext::addPreprocessorComment(int firstLine, int lastLine, int firstColumn, int lastColumn) { |
981 |
|
CodeBlock block; |
982 |
|
block.firstLine = firstLine; |
983 |
|
block.lastLine = lastLine; |
984 |
|
block.firstColumn = firstColumn; |
985 |
|
block.lastColumn = lastColumn; |
986 |
|
vPreprocessorComments.push_back(block); |
987 |
|
} |
988 |
|
|
989 |
bool ParserContext::setPreprocessorCondition(const char* name) { |
bool ParserContext::setPreprocessorCondition(const char* name) { |
990 |
if (builtinPreprocessorConditions.count(name)) return false; |
if (builtinPreprocessorConditions.count(name)) return false; |
991 |
if (userPreprocessorConditions.count(name)) return false; |
if (userPreprocessorConditions.count(name)) return false; |
1017 |
return vWarnings; |
return vWarnings; |
1018 |
} |
} |
1019 |
|
|
1020 |
|
std::vector<CodeBlock> ParserContext::preprocessorComments() const { |
1021 |
|
return vPreprocessorComments; |
1022 |
|
} |
1023 |
|
|
1024 |
VMEventHandler* ParserContext::eventHandler(uint index) { |
VMEventHandler* ParserContext::eventHandler(uint index) { |
1025 |
if (!handlers) return NULL; |
if (!handlers) return NULL; |
1026 |
return handlers->eventHandler(index); |
return handlers->eventHandler(index); |