LLVM
24.0.0git
include
llvm
Frontend
Directive
Spelling.h
Go to the documentation of this file.
1
//===-------------------------------------------------------------- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
#ifndef LLVM_FRONTEND_DIRECTIVE_SPELLING_H
9
#define LLVM_FRONTEND_DIRECTIVE_SPELLING_H
10
11
#include "
llvm/ADT/StringRef.h
"
12
#include "
llvm/ADT/iterator_range.h
"
13
#include "
llvm/Frontend/Directive/Version.h
"
14
#include "
llvm/Support/Compiler.h
"
15
16
#include <limits>
17
#include <tuple>
18
19
namespace
llvm::directive
{
20
struct
Spelling
{
21
StringRef
Name
;
22
VersionRange
Versions
;
23
};
24
25
LLVM_ABI
StringRef
FindName
(
llvm::iterator_range<const Spelling *>
,
26
Version
Version
);
27
}
// namespace llvm::directive
28
29
#endif
// LLVM_FRONTEND_DIRECTIVE_SPELLING_H
Compiler.h
LLVM_ABI
#define LLVM_ABI
Definition
Compiler.h:211
StringRef.h
Version.h
llvm::StringRef
Represent a constant reference to a string, i.e.
Definition
StringRef.h:56
llvm::iterator_range
A range adaptor for a pair of iterators.
Definition
iterator_range.h:31
iterator_range.h
This provides a very simple, boring adaptor for a begin and end iterator into a range type.
llvm::directive
Definition
Spelling.h:19
llvm::directive::FindName
LLVM_ABI StringRef FindName(llvm::iterator_range< const Spelling * >, Version Version)
Definition
Spelling.cpp:18
llvm::directive::Spelling
Definition
Spelling.h:20
llvm::directive::Spelling::Name
StringRef Name
Definition
Spelling.h:21
llvm::directive::Spelling::Versions
VersionRange Versions
Definition
Spelling.h:22
llvm::directive::VersionRange
Definition
Version.h:53
llvm::directive::Version
Definition
Version.h:18
Generated on
for LLVM by
1.14.0