Home
last modified time | relevance | path

Searched refs:CharType (Results 1 – 25 of 26) sorted by relevance

12

/llvm-project-15.0.7/flang/runtime/
H A Dformat.h83 using CharType = typename Context::CharType; variable
86 FormatControl(const Terminator &, const CharType *format,
120 CharType PeekNext() { in PeekNext()
124 CharType GetNextChar(IoErrorHandler &handler) { in GetNextChar()
138 int GetIntField(IoErrorHandler &, CharType firstCh = '\0');
147 static constexpr CharType Capitalize(CharType ch) { in Capitalize()
152 if constexpr (std::is_same_v<CharType, char>) { in ReportBadFormat()
178 const CharType *format_{nullptr};
H A Dio-stmt.h337 using CharType = CHAR;
339 std::conditional_t<DIR == Direction::Input, const CharType *, CharType *>;
367 using CharType = CHAR;
368 using typename InternalIoStatementState<DIR, CharType>::Buffer;
370 const CharType *format, std::size_t formatLength,
385 using InternalIoStatementState<DIR, CharType>::unit_;
394 using CharType = CHAR;
395 using typename InternalIoStatementState<DIR, CharType>::Buffer;
405 using InternalIoStatementState<DIR, CharType>::unit_;
458 using CharType = CHAR;
[all …]
H A Dformat-implementation.h26 const CharType *format, std::size_t formatLength, int maxHeight) in FormatControl()
38 IoErrorHandler &handler, CharType firstCh) { in GetIntField()
39 CharType ch{firstCh ? firstCh : PeekNext()}; in GetIntField()
189 CharType ch{GetNextChar(context)}; in CueUpNextDataEdit()
282 CharType quote{ch}; in CueUpNextDataEdit()
315 CharType next{'\0'}; in CueUpNextDataEdit()
317 CharType peek{Capitalize(PeekNext())}; in CueUpNextDataEdit()
445 CharType ch{PeekNext()}; in GetNextDataEdit()
H A Ddescriptor-io.h341 using CharType = in UnformattedDescriptorIO() local
343 auto Transfer{[=](CharType &x, std::size_t totalBytes, in UnformattedDescriptorIO()
H A Dio-stmt.cpp97 const CharType *data, std::size_t chars) { in Emit()
102 return unit_.Emit(data, chars * sizeof(CharType), *this); in Emit()
184 : InternalIoStatementState<DIR, CharType>{buffer, length, sourceFile, in InternalListIoStatementState()
191 : InternalIoStatementState<DIR, CharType>{d, sourceFile, sourceLine}, in InternalListIoStatementState()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DStringIntegerAssignmentCheck.cpp47 CharExpressionDetector(QualType CharType, const ASTContext &Ctx) in CharExpressionDetector() argument
48 : CharType(CharType), Ctx(Ctx) {} in CharExpressionDetector()
116 return EvalResult.Val.getInt().getActiveBits() <= Ctx.getTypeSize(CharType); in isCharValuedConstant()
122 CharType.getTypePtr(); in isCharTyped()
125 const QualType CharType; member in clang::tidy::bugprone::CharExpressionDetector
132 const auto CharType = in check() local
137 if (CharExpressionDetector(CharType, *Result.Context) in check()
150 bool IsWideCharType = CharType->isWideCharType(); in check()
151 if (!CharType->isCharType() && !IsWideCharType) in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/boost/
H A DUseToStringCheck.cpp42 auto CharType = in check() local
46 if (CharType->isSpecificBuiltinType(BuiltinType::Char_S) || in check()
47 CharType->isSpecificBuiltinType(BuiltinType::Char_U)) in check()
49 else if (CharType->isSpecificBuiltinType(BuiltinType::WChar_S) || in check()
50 CharType->isSpecificBuiltinType(BuiltinType::WChar_U)) in check()
/llvm-project-15.0.7/llvm/utils/unittest/googletest/src/
H A Dgtest-printers.cc262 template <typename CharType>
268 const CharType* begin, size_t len, ostream* os) { in PrintCharsAsStringTo()
269 const char* const kQuoteBegin = sizeof(CharType) == 1 ? "\"" : "L\""; in PrintCharsAsStringTo()
274 const CharType cur = begin[index]; in PrintCharsAsStringTo()
293 template <typename CharType>
299 const CharType* begin, size_t len, ostream* os) { in UniversalPrintCharArray()
H A Dgtest.cc5995 template <typename CharType>
5996 void ParseGoogleTestFlagsOnlyImpl(int* argc, CharType** argv) { in ParseGoogleTestFlagsOnlyImpl()
6071 template <typename CharType>
6072 void InitGoogleTestImpl(int* argc, CharType** argv) { in InitGoogleTestImpl()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DProgram.cpp40 PrimType CharType; in createGlobalString() local
43 CharType = PT_Sint8; in createGlobalString()
46 CharType = PT_Uint16; in createGlobalString()
49 CharType = PT_Uint32; in createGlobalString()
56 Descriptor *Desc = allocateDescriptor(S, CharType, S->getLength() + 1, in createGlobalString()
74 switch (CharType) { in createGlobalString()
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/
H A DFuzzySymbolIndex.cpp53 enum CharType { UPPER, LOWER, DIGIT, MISC }; enum
54 CharType classify(char c) { in classify()
80 CharType Type = classify(Text[I]); in tokenize()
/llvm-project-15.0.7/llvm/utils/unittest/googlemock/src/
H A Dgmock.cc143 template <typename CharType>
144 void InitGoogleMockImpl(int* argc, CharType** argv) { in InitGoogleMockImpl()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DStringFindStrContainsCheck.cpp50 auto CharType = hasUnqualifiedDesugaredType(isCharType()); in makeRewriteRule() local
58 hasType(CharType)))))), in makeRewriteRule()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DFuzzyMatch.cpp159 CharType Type = packedLookup<CharType>(CharTypes, Text[0]); in calculateRoles()
165 auto Rotate = [&](CharType T) { Types = ((Types << 2) | T) & 0x3f; }; in calculateRoles()
168 Type = packedLookup<CharType>(CharTypes, Text[I + 1]); in calculateRoles()
H A DFuzzyMatch.h41 enum CharType : unsigned char { enum
/llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/
H A Dgtest-printers.h334 #define GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(CharType) \ argument
336 class FormatForComparison<CharType*, OtherOperand> { \
338 static ::std::string Format(CharType* value) { \
353 #define GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(CharType, OtherStringType) \ argument
355 class FormatForComparison<CharType*, OtherStringType> { \
357 static ::std::string Format(CharType* value) { \
H A Dgtest-matchers.h635 template <typename CharType>
636 bool MatchAndExplain(CharType* s, MatchResultListener* listener) const { in MatchAndExplain()
/llvm-project-15.0.7/libc/spec/
H A Dspec.td49 def CharType : NamedType<"char">;
73 def CharPtr : PtrType<CharType>;
75 def CharRestrictedPtr : RestrictedPtrType<CharType>;
H A Dposix.td25 PtrType CharPtr = PtrType<CharType>;
26 RestrictedPtrType RestrictedCharPtr = RestrictedPtrType<CharType>;
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseAutoCheck.cpp31 enum CharType { Space, Alpha, Punctuation }; in getTypeNameLength() enum
32 CharType LastChar = Space, BeforeSpace = Punctuation; in getTypeNameLength()
40 const CharType NextChar = in getTypeNameLength()
/llvm-project-15.0.7/flang/unittests/Runtime/
H A DFormat.cpp25 using CharType = char; typedef in TestFormatContext
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dintrinsics.cpp65 static constexpr CategorySet CharType{TypeCategory::Character}; variable
70 static constexpr CategorySet RelatableType{IntType | RealType | CharType};
73 IntType | RealType | ComplexType | CharType | LogicalType};
109 static constexpr TypePattern DefaultChar{CharType, KindCode::defaultCharKind};
127 static constexpr TypePattern AnyChar{CharType, KindCode::any};
147 static constexpr TypePattern SameChar{CharType, KindCode::same};
173 static constexpr TypePattern KINDChar{CharType, KindCode::effectiveKind};
/llvm-project-15.0.7/llvm/utils/unittest/googlemock/include/gmock/
H A Dgmock-matchers.h688 template <typename CharType>
689 bool MatchAndExplain(CharType* s, MatchResultListener* listener) const {
758 template <typename CharType>
759 bool MatchAndExplain(CharType* s, MatchResultListener* listener) const {
815 template <typename CharType>
816 bool MatchAndExplain(CharType* s, MatchResultListener* listener) const {
871 template <typename CharType>
872 bool MatchAndExplain(CharType* s, MatchResultListener* listener) const {
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp1740 TypeIndex CharType = TypeIndex(SimpleTypeKind::NarrowCharacter); in lowerTypeString() local
1749 ArrayRecord AR(CharType, IndexType, ArraySize, Name); in lowerTypeString()
/llvm-project-15.0.7/clang/lib/AST/
H A DExprConstant.cpp3397 QualType CharType = CAT->getElementType(); in extractStringLiteralCharacter() local
3398 assert(CharType->isIntegerType() && "unexpected character type"); in extractStringLiteralCharacter()
3401 CharType->isUnsignedIntegerType()); in extractStringLiteralCharacter()
3417 QualType CharType = CAT->getElementType(); in expandStringLiteral() local
3418 assert(CharType->isIntegerType() && "unexpected character type"); in expandStringLiteral()
3424 CharType->isUnsignedIntegerType()); in expandStringLiteral()

12