Project

General

Profile

Bug #74

Incorrect #include parsing

Added by Raphaƫl Lallement almost 5 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" }

Also available in: Atom PDF