gcc/libcpp
Nathan Sidwell 3f6677f418 [PATCH] CPP Macro predicates
https://gcc.gnu.org/ml/gcc-patches/2018-08/msg00897.html
	libcpp/
	* include/cpplib.h (cpp_user_macro_p, cpp_builtin_macro_p)
	(cpp_macro_p): New inlines.
	* directives.c (do_pragma_poison): Use cpp_macro_p.
	(do_ifdef, do_ifndef): Likewise.  Use _cpp_maybe_notify_macro_use.
	(cpp_pop_definition): Use cpp_macro_p.  Move _cpp_free_definition
	earlier.  Don't zap node directly.
	* expr.c (parse_defined): Use _cpp_maybe_notify_macro_use &
	cpp_macro_p.
	* files.c (should_stack_file): Use cpp_macro_p.
	* identifiers.c (cpp_defined): Likewise.
	* internal.h (_cpp_mark_macro): Use cpp_user_macro_p.
	(_cpp_notify_macro_use): Declare.
	(_cpp_maybe_notify_macro_use): New inline.
	* lex.c (is_macro): Use cpp_macro_p.
	* macro.c (_cpp_warn_if_unused_macro): Use cpp_user_macro_p.
	(enter_macro_context): Likewise.
	(_cpp_create_definition): Use cpp_builtin_macro_p,
	cpp_user_macro_p.  Move _cpp_free_definition earlier.
	(_cpp_notify_macro_use): New, broken out of multiple call sites.
	* traditional.c (fun_like_macro_p): Use cpp_builtin_macro_p.
	(maybe_start_funlike, _cpp_scan_out_logical_line)
	(push_replacement_text): Likewise.
	gcc/c-family/
	* c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
	(store_ada_macro): Likewise.
	* c-ppoutput.c (cb_used_define, dump_macro): Likewise.
	* c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
	gcc/
	* config/rs6000/rs6000-c.c (rs6000_macro_to_expend): Use cpp_macro_p.
	* config/powerpcspc/powerpcspe-c.c (rs6000_macro_to_expend): Likewise.
	gcc/cp/
	* name-lookup.c (lookup_name_fuzzy): Likewise.
	gcc/fortran/
	* cpp.c (dump_macro): Use cpp_user_macro_p.

From-SVN: r263587
2018-08-16 13:51:38 +00:00
..
include [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
po Regenerate .pot files. 2018-07-25 15:31:18 +01:00
aclocal.m4
ChangeLog [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
ChangeLog.jit
charset.c
config.in
configure
configure.ac
directives-only.c
directives.c [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
errors.c
expr.c [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
files.c [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
identifiers.c [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
init.c
internal.h [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
lex.c [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
line-map.c diagnostics: add labeling of source ranges 2018-08-15 18:09:35 +00:00
location-example.txt
macro.c [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
Makefile.in
makeucnid.c
mkdeps.c
pch.c
symtab.c
system.h * system.h: #include <new> earlier. 2018-05-23 13:13:30 -04:00
traditional.c [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
ucnid.h
ucnid.tab