GCC Middle and Back End API Reference
gcc-attribute-urlifier.cc File Reference
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "pretty-print.h"
#include "pretty-print-urlifier.h"
#include "gcc-urlifier.h"
#include "opts.h"
#include "options.h"
#include "diagnostic.h"
#include "selftest.h"
#include "make-unique.h"
#include "target.h"
#include "attr-urls.def"
Include dependency graph for gcc-attribute-urlifier.cc:

Data Structures

struct  attr_url_entry
 

Macros

#define INCLUDE_MEMORY
 

Functions

static const attr_url_entryfind_attr_url_entry (const char *str, size_t str_len, const char *target_docs_name, const attr_url_entry *table, size_t table_sz)
 
static const attr_url_entryfind_attr_url_entry (const char *str, size_t str_len, const char *target_docs_name)
 

Macro Definition Documentation

◆ INCLUDE_MEMORY

#define INCLUDE_MEMORY
Automatic generation of links into GCC's documentation.
   Copyright (C) 2023-2024 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   

Function Documentation

◆ find_attr_url_entry() [1/2]

static const attr_url_entry * find_attr_url_entry ( const char * str,
size_t str_len,
const char * target_docs_name )
static
Search for STR, LEN in all of the attribute tables, in order.
TARGET_DOCS_NAME works as above.   

References find_attr_url_entry().

◆ find_attr_url_entry() [2/2]

static const attr_url_entry * find_attr_url_entry ( const char * str,
size_t str_len,
const char * target_docs_name,
const attr_url_entry * table,
size_t table_sz )
static
We look in two passes: first for an exact match on target name (if any).
Otherwise, we look for one with an empty target name.   
Search for STR, LEN in the given TABLE.
If TARGET_DOCS_NAME is non-null, then look for an exact match on target name.
If TARGET_DOCS_NAME is null, then look for an empty string for the
target name.   

References i, and table.

Referenced by find_attr_url_entry(), and attribute_urlifier::get_url_suffix_for_quoted_text().