Showing the changes to gcc/libcpp/include/cpplib.h (1 of 28754 files). Show all
Unified · Split
| @@ -1,7 +1,5 @@ | ||
| 1 | 1 | /* Definitions for CPP library. |
| 2 | − Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, | |
| 3 | − 2004, 2005, 2007, 2008, 2009, 2010, 2011 | |
| 4 | − Free Software Foundation, Inc. | |
| 2 | + Copyright (C) 1995-2014 Free Software Foundation, Inc. | |
| 5 | 3 | Written by Per Bothner, 1994-95. |
| 6 | 4 | |
| 7 | 5 | This program is free software; you can redistribute it and/or modify it |
| @@ -167,7 +165,8 @@ enum cpp_ttype · 159 unmodified lines | ||
| 167 | 165 | /* C language kind, used when calling cpp_create_reader. */ |
| 168 | 166 | enum c_lang {CLK_GNUC89 = 0, CLK_GNUC99, CLK_GNUC11, |
| 169 | 167 | CLK_STDC89, CLK_STDC94, CLK_STDC99, CLK_STDC11, |
| 170 | − CLK_GNUCXX, CLK_CXX98, CLK_GNUCXX11, CLK_CXX11, CLK_ASM}; | |
| 168 | + CLK_GNUCXX, CLK_CXX98, CLK_GNUCXX11, CLK_CXX11, | |
| 169 | + CLK_GNUCXX1Y, CLK_CXX1Y, CLK_ASM}; | |
| 171 | 170 | |
| 172 | 171 | /* Payload of a NUMBER, STRING, CHAR or COMMENT token. */ |
| 173 | 172 | struct GTY(()) cpp_string { |
| @@ -249,7 +248,7 @@ struct GTY(()) cpp_token { · 75 unmodified lines | ||
| 249 | 248 | }; |
| 250 | 249 | |
| 251 | 250 | /* Say which field is in use. */ |
| 252 | −extern enum cpp_token_fld_kind cpp_token_val_index (cpp_token *tok); | |
| 251 | +extern enum cpp_token_fld_kind cpp_token_val_index (const cpp_token *tok); | |
| 253 | 252 | |
| 254 | 253 | /* A type wide enough to hold any multibyte source character. |
| 255 | 254 | cpplib's character constant interpreter requires an unsigned type. |
| @@ -338,6 +337,9 @@ struct cpp_options · 82 unmodified lines | ||
| 338 | 337 | /* Nonzero means warn if slash-star appears in a comment. */ |
| 339 | 338 | unsigned char warn_comments; |
| 340 | 339 | |
| 340 | + /* Nonzero means to warn about __DATA__, __TIME__ and __TIMESTAMP__ usage. */ | |
| 341 | + unsigned char warn_date_time; | |
| 342 | + | |
| 341 | 343 | /* Nonzero means warn if a user-supplied include directory does not |
| 342 | 344 | exist. */ |
| 343 | 345 | unsigned char warn_missing_include_dirs; |
| @@ -424,9 +426,27 @@ struct cpp_options · 80 unmodified lines | ||
| 424 | 426 | /* True for traditional preprocessing. */ |
| 425 | 427 | unsigned char traditional; |
| 426 | 428 | |
| 427 | − /* Nonzero for C++ 2011 Standard user-defnied literals. */ | |
| 429 | + /* Nonzero for C++ 2011 Standard user-defined literals. */ | |
| 428 | 430 | unsigned char user_literals; |
| 429 | 431 | |
| 432 | + /* Nonzero means warn when a string or character literal is followed by a | |
| 433 | + ud-suffix which does not beging with an underscore. */ | |
| 434 | + unsigned char warn_literal_suffix; | |
| 435 | + | |
| 436 | + /* Nonzero means interpret imaginary, fixed-point, or other gnu extension | |
| 437 | + literal number suffixes as user-defined literal number suffixes. */ | |
| 438 | + unsigned char ext_numeric_literals; | |
| 439 | + | |
| 440 | + /* Nonzero means extended identifiers allow the characters specified | |
| 441 | + in C11 and C++11. */ | |
| 442 | + unsigned char c11_identifiers; | |
| 443 | + | |
| 444 | + /* Nonzero for C++ 2014 Standard binary constants. */ | |
| 445 | + unsigned char binary_constants; | |
| 446 | + | |
| 447 | + /* Nonzero for C++ 2014 Standard digit separators. */ | |
| 448 | + unsigned char digit_separators; | |
| 449 | + | |
| 430 | 450 | /* Holds the name of the target (execution) character set. */ |
| 431 | 451 | const char *narrow_charset; |
| 432 | 452 | |
| @@ -485,6 +505,9 @@ struct cpp_options · 52 unmodified lines | ||
| 485 | 505 | |
| 486 | 506 | /* True disables tokenization outside of preprocessing directives. */ |
| 487 | 507 | bool directives_only; |
| 508 | + | |
| 509 | + /* True enables canonicalization of system header file paths. */ | |
| 510 | + bool canonical_system_headers; | |
| 488 | 511 | }; |
| 489 | 512 | |
| 490 | 513 | /* Callback for header lookup for HEADER, which is the name of a |
| @@ -847,13 +870,15 @@ struct cpp_num · 356 unmodified lines | ||
| 847 | 870 | /* Classify a CPP_NUMBER token. The return value is a combination of |
| 848 | 871 | the flags from the above sets. */ |
| 849 | 872 | extern unsigned cpp_classify_number (cpp_reader *, const cpp_token *, |
| 850 | − const char **); | |
| 873 | + const char **, source_location); | |
| 851 | 874 | |
| 852 | 875 | /* Return the classification flags for a float suffix. */ |
| 853 | −extern unsigned int cpp_interpret_float_suffix (const char *, size_t); | |
| 876 | +extern unsigned int cpp_interpret_float_suffix (cpp_reader *, const char *, | |
| 877 | + size_t); | |
| 854 | 878 | |
| 855 | 879 | /* Return the classification flags for an int suffix. */ |
| 856 | −extern unsigned int cpp_interpret_int_suffix (const char *, size_t); | |
| 880 | +extern unsigned int cpp_interpret_int_suffix (cpp_reader *, const char *, | |
| 881 | + size_t); | |
| 857 | 882 | |
| 858 | 883 | /* Evaluate a token classified as category CPP_N_INTEGER. */ |
| 859 | 884 | extern cpp_num cpp_interpret_integer (cpp_reader *, const cpp_token *, |
| @@ -906,7 +931,9 @@ enum { · 46 unmodified lines | ||
| 906 | 931 | CPP_W_CXX_OPERATOR_NAMES, |
| 907 | 932 | CPP_W_NORMALIZE, |
| 908 | 933 | CPP_W_INVALID_PCH, |
| 909 | − CPP_W_WARNING_DIRECTIVE | |
| 934 | + CPP_W_WARNING_DIRECTIVE, | |
| 935 | + CPP_W_LITERAL_SUFFIX, | |
| 936 | + CPP_W_DATE_TIME | |
| 910 | 937 | }; |
| 911 | 938 | |
| 912 | 939 | /* Output a diagnostic of some kind. */ |
| @@ -1005,6 +1032,7 @@ extern bool cpp_included (cpp_reader *, const char *); · 92 unmodified lines | ||
| 1005 | 1032 | extern bool cpp_included_before (cpp_reader *, const char *, source_location); |
| 1006 | 1033 | extern void cpp_make_system_header (cpp_reader *, int, int); |
| 1007 | 1034 | extern bool cpp_push_include (cpp_reader *, const char *); |
| 1035 | +extern bool cpp_push_default_include (cpp_reader *, const char *); | |
| 1008 | 1036 | extern void cpp_change_file (cpp_reader *, enum lc_reason, const char *); |
| 1009 | 1037 | extern const char *cpp_get_path (struct _cpp_file *); |
| 1010 | 1038 | extern cpp_dir *cpp_get_dir (struct _cpp_file *); |