From 1bc255c4b5f8ac2d71d0aa91b3a063c3f8978a8f Mon Sep 17 00:00:00 2001 From: Matthew Woehlke Date: Fri, 4 Oct 2013 16:40:38 -0400 Subject: 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 --- ApiExtractor/parser/rpp/pp-engine-bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 " "\"\" or \"./path/to/header.h\", " -- cgit v1.2.3