GCC Middle and Back End API Reference
diagnostic-spec.cc File Reference
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "backend.h"
#include "bitmap.h"
#include "tree.h"
#include "cgraph.h"
#include "hash-map.h"
#include "diagnostic-spec.h"
#include "pretty-print.h"
#include "options.h"
Include dependency graph for diagnostic-spec.cc:


bool warning_suppressed_at (location_t loc, opt_code opt)
bool suppress_warning_at (location_t loc, opt_code opt, bool supp)
void copy_warning (location_t to, location_t from)



Function Documentation

◆ copy_warning()

◆ suppress_warning_at()

◆ warning_suppressed_at()

bool warning_suppressed_at ( location_t loc,
opt_code opt )
Return the no-warning disposition for location LOC and option OPT
or for all/any otions by default.   

References gcc_checking_assert, hash_map< KeyId, Value, Traits >::get(), ggc_alloc(), nowarn_map, and RESERVED_LOCATION_P.

Variable Documentation

◆ nowarn_map

nowarn_map_t* nowarn_map
A mapping from a 'location_t' to the warning spec set for it.   

Referenced by copy_warning(), copy_warning(), get_nowarn_spec(), get_nowarn_spec(), suppress_warning_at(), and warning_suppressed_at().