clang
22.0.0git
lib
Format
NumericLiteralInfo.h
Go to the documentation of this file.
1
//===--- NumericLiteralInfo.h -----------------------------------*- 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
9
#ifndef LLVM_CLANG_LIB_FORMAT_NUMERICLITERALINFO_H
10
#define LLVM_CLANG_LIB_FORMAT_NUMERICLITERALINFO_H
11
12
#include "llvm/ADT/StringRef.h"
13
14
namespace
clang
{
15
namespace
format {
16
17
struct
NumericLiteralInfo
{
18
size_t
BaseLetterPos
= llvm::StringRef::npos;
// as in 0b1, 0xF, etc.
19
size_t
DotPos
= llvm::StringRef::npos;
// pos of decimal/hex point
20
size_t
ExponentLetterPos
= llvm::StringRef::npos;
// as in 9e9 and 0xFp9
21
size_t
SuffixPos
= llvm::StringRef::npos;
// starting pos of suffix
22
23
NumericLiteralInfo
(llvm::StringRef
Text
,
char
Separator =
'\''
);
24
};
25
26
}
// end namespace format
27
}
// end namespace clang
28
29
#endif
clang
The JSON file list parser is used to communicate input to InstallAPI.
Definition:
CalledOnceCheck.h:17
clang::PragmaClangSectionKind::Text
@ Text
clang::format::NumericLiteralInfo
Definition:
NumericLiteralInfo.h:17
clang::format::NumericLiteralInfo::DotPos
size_t DotPos
Definition:
NumericLiteralInfo.h:19
clang::format::NumericLiteralInfo::ExponentLetterPos
size_t ExponentLetterPos
Definition:
NumericLiteralInfo.h:20
clang::format::NumericLiteralInfo::SuffixPos
size_t SuffixPos
Definition:
NumericLiteralInfo.h:21
clang::format::NumericLiteralInfo::BaseLetterPos
size_t BaseLetterPos
Definition:
NumericLiteralInfo.h:18
Generated on Tue Sep 2 2025 18:39:14 for clang by
1.9.6