Project

General

Profile

Actions

Bug #74

open

Incorrect #include parsing

Added by Anonymous over 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-

Description

Fails to properly handle #include clauses.

This should not create problem:

//#include "someInstance.ins" 

But it creates the error:
data/....../.......dom:.. Error : Include has wrong format

A quick investigation shows that the file
/home/rlalleme/hatp/hatponboard-lib/parsing/HATPPreprocessor.hh
in bool includeFile(const std::string& includeName)
does not parse correctly ... it should detect the include only when:
  • not in the commented part of a line
  • not in a string "...."

Moreover it should work even if it is in the middle of a line:

preconditions{ #include "preconditionsInAnotherFile.part" }

No data to display

Actions

Also available in: Atom PDF