C++: Finish gcc's include_next support

This implements the actual include_next logic and thus completes

    commit b934cc1
    C++: pass #include_next down to CppPreprocessor::tryIncludeFile

    commmit 140b502
    C++: Highlight argument to gcc's #include_next extension

Based on https://gcc.gnu.org/onlinedocs/cpp/Wrapper-Headers.html

Task-number: QTCREATORBUG-10225
Change-Id: I7eef7f5ea64a114f6d092304d32b72c55c2ce134
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
Nikolai Kosjar
2014-12-05 11:56:06 +01:00
parent b18c0f6af5
commit e3977de08e
7 changed files with 81 additions and 12 deletions

View File

@@ -0,0 +1,2 @@
#define ENABLE_FEATURE_X
#include_next "t.h"

View File

@@ -0,0 +1,13 @@
// Copyright
#include "t.h"
int main()
{
#ifdef FEATURE_X_ENABLED
#define OK_FEATURE_X_ENABLED
return 0;
#endif
return 1;
}

View File

@@ -0,0 +1,5 @@
#define SYSTEM_HEADER_INCLUDED
#ifdef ENABLE_FEATURE_X
#define FEATURE_X_ENABLED
#endif