forked from qt-creator/qt-creator
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:
@@ -0,0 +1,2 @@
|
||||
#define ENABLE_FEATURE_X
|
||||
#include_next "t.h"
|
||||
@@ -0,0 +1,13 @@
|
||||
// Copyright
|
||||
|
||||
#include "t.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
#ifdef FEATURE_X_ENABLED
|
||||
#define OK_FEATURE_X_ENABLED
|
||||
return 0;
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
#define SYSTEM_HEADER_INCLUDED
|
||||
|
||||
#ifdef ENABLE_FEATURE_X
|
||||
#define FEATURE_X_ENABLED
|
||||
#endif
|
||||
Reference in New Issue
Block a user