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:

Functions

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

Variables

nowarn_map_tnowarn_map
 

Function Documentation

◆ copy_warning()

◆ put_warning_spec_at()

void put_warning_spec_at ( location_t loc,
unsigned bits )
Change the warning disposition for LOC to match OPTSPEC.

References hash_map< location_hash, nowarn_spec_t >::create_ggc(), nowarn_spec_t::from_bits(), gcc_checking_assert, nowarn_map, and RESERVED_LOCATION_P.

Referenced by put_warning_spec().

◆ suppress_warning_at()

bool suppress_warning_at ( location_t loc,
opt_code opt = all_warnings,
bool supp = true )
Set the disposition for a warning (or all warnings by default) at a location to disabled by default.

References hash_map< location_hash, nowarn_spec_t >::create_ggc(), gcc_checking_assert, no_warning, nowarn_map, NULL, and RESERVED_LOCATION_P.

Referenced by suppress_warning(), and suppress_warning().

◆ 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, nowarn_map, RESERVED_LOCATION_P, and warning_suppressed_at().

Referenced by warning_suppressed_at().

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(), put_warning_spec_at(), suppress_warning_at(), and warning_suppressed_at().