diff options
author | Matthew Woehlke <matthew.woehlke@kitware.com> | 2013-10-04 16:40:38 -0400 |
---|---|---|
committer | John Cummings <jcummings2@users.sf.net> | 2013-10-09 15:07:46 +0200 |
commit | 1bc255c4b5f8ac2d71d0aa91b3a063c3f8978a8f (patch) | |
tree | acffc124e3c4825af0c65b1617206046e7e350d5 | |
parent | a4bfd1948ba4e8f20d7bcd116fb756fc3559e078 (diff) |
Fix 'special' include handling
Fix handling of includes like '#include BOOST_USER_CONFIG'. This was
failing due to an obvious logic error in how the preprocessor tests if
the expanded symbol looks like an include file location.
Change-Id: Ia085e5c081078d328d6fc84ff2a99681913a30b9
Reviewed-by: John Cummings <jcummings2@users.sf.net>
-rw-r--r-- | ApiExtractor/parser/rpp/pp-engine-bits.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ApiExtractor/parser/rpp/pp-engine-bits.h b/ApiExtractor/parser/rpp/pp-engine-bits.h index b53607c..5552b16 100644 --- a/ApiExtractor/parser/rpp/pp-engine-bits.h +++ b/ApiExtractor/parser/rpp/pp-engine-bits.h @@ -368,7 +368,7 @@ _InputIterator pp::handle_include(bool __skip_current_path, _InputIterator __fir name.reserve(255); expand_include(__first, __last, std::back_inserter(name)); std::string::iterator it = skip_blanks(name.begin(), name.end()); - if (it != name.end() && (*it != '<' || *it != '"')) { + if (it != name.end() && !(*it == '<' || *it == '"')) { std::cerr << "** WARNING APIExtractor does not support the use " "of #include directives without passing either " "\"<path/to/header.h>\" or \"./path/to/header.h\", " |