This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Greetings, I am finally getting back to my SD-6 C++ features test work.This first part adds a __has_include__ built-in that will return true if a header exists. I also added __has_include_next__ as an extension. Clang has this extension.
Both these built-ins will be wrapped in function type macros in a later patch to c-family.
As written, these are available to the whole C-family rather than just C++. I think this makes a valuable addition for everyone.(I sort of wonder why this wasn't added to the actual preprocessor 20 years ago.)
Bootstrapped and tested under x86_64-linux. OK? Ed
Attachment:
CL_feature_test_1a
Description: Text document
Attachment:
patch_feature_test_1a
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |