Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang/lib/Format/
H A DTokenAnnotator.cpp84 Keywords(Keywords) { in AnnotatingParser()
1795 Keywords.kw_get, Keywords.kw_init, Keywords.kw_set) || in determineTokenType()
2563 Current->isOneOf(Keywords.kw_in, Keywords.kw_as)) { in getCurrentPrecedence()
3692 if (Keywords.isWordLike(Right) && Keywords.isWordLike(Left)) in spaceRequiredBefore()
3874 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield, in spaceRequiredBefore()
3897 if ((Left.isOneOf(Keywords.kw_let, Keywords.kw_var, Keywords.kw_in, in spaceRequiredBefore()
3943 Right.isOneOf(Keywords.kw_as, Keywords.kw_in)) { in spaceRequiredBefore()
4611 if (Left.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
4626 Keywords.kw_readonly, Keywords.kw_override, Keywords.kw_abstract, in canBreakBefore()
4627 Keywords.kw_get, Keywords.kw_set, Keywords.kw_async, in canBreakBefore()
[all …]
H A DUnwrappedLineParser.cpp322 CurrentLines(&Lines), Style(Style), Keywords(Keywords), in UnwrappedLineParser()
1289 Keywords.kw_in, Keywords.kw_of, Keywords.kw_as, Keywords.kw_async, in mustBeJSIdent()
1290 Keywords.kw_await, Keywords.kw_yield, Keywords.kw_finally, in mustBeJSIdent()
1291 Keywords.kw_function, Keywords.kw_import, Keywords.kw_is, in mustBeJSIdent()
1292 Keywords.kw_let, Keywords.kw_var, tok::kw_const, in mustBeJSIdent()
1293 Keywords.kw_abstract, Keywords.kw_extends, Keywords.kw_implements, in mustBeJSIdent()
1294 Keywords.kw_instanceof, Keywords.kw_interface, in mustBeJSIdent()
1295 Keywords.kw_override, Keywords.kw_throws, Keywords.kw_from)); in mustBeJSIdent()
1321 Keywords.kw_async, Keywords.kw_function, in isJSDeclOrStmt()
2017 Keywords.kw_init, Keywords.kw_set)) { in tryToParsePropertyAccessor()
[all …]
H A DSortJavaScriptImports.cpp153 parseModuleReferences(Keywords, AnnotatedLines); in analyze()
364 parseModuleReferences(const AdditionalKeywords &Keywords, in parseModuleReferences() argument
412 if (!parseModuleReference(Keywords, Reference)) { in parseModuleReferences()
459 if (!parseModuleBindings(Keywords, Reference)) in parseModuleReference()
462 if (Current->is(Keywords.kw_from)) { in parseModuleReference()
484 if (parseStarBinding(Keywords, Reference)) in parseModuleBindings()
486 return parseNamedBindings(Keywords, Reference); in parseModuleBindings()
489 bool parseStarBinding(const AdditionalKeywords &Keywords, in parseStarBinding() argument
495 if (Current->isNot(Keywords.kw_as)) in parseStarBinding()
511 if (Current->is(Keywords.kw_from)) in parseNamedBindings()
[all …]
H A DUnwrappedLineFormatter.h33 const AdditionalKeywords &Keywords, in UnwrappedLineFormatter() argument
37 Keywords(Keywords), SourceMgr(SourceMgr), Status(Status) {} in UnwrappedLineFormatter()
69 const AdditionalKeywords &Keywords; variable
H A DTokenAnnotator.h158 TokenAnnotator(const FormatStyle &Style, const AdditionalKeywords &Keywords) in TokenAnnotator() argument
159 : Style(Style), Keywords(Keywords) {} in TokenAnnotator()
207 const AdditionalKeywords &Keywords; variable
H A DUnwrappedLineFormatter.cpp48 : Style(Style), Keywords(Keywords), AdditionalIndent(AdditionalIndent) { in LevelIndentTracker()
117 else if ((RootToken.isOneOf(Keywords.kw_signals, Keywords.kw_qsignals) && in getIndentOffset()
121 RootToken.Next->isOneOf(Keywords.kw_slots, in getIndentOffset()
122 Keywords.kw_qslots) && in getIndentOffset()
157 const AdditionalKeywords &Keywords; member in clang::format::__anon8a591c740111::LevelIndentTracker
202 : Style(Style), Keywords(Keywords), End(Lines.end()), Next(Lines.begin()), in LineJoiner()
287 tok::kw_extern, Keywords.kw_interface)) { in tryFitMultipleLinesInOne()
715 tok::r_brace, Keywords.kw___except)) { in tryMergeSimpleBlock()
890 const AdditionalKeywords &Keywords; member in clang::format::__anon8a591c740111::LineJoiner
1269 LineJoiner Joiner(Style, Keywords, Lines); in format()
[all …]
H A DFormatTokenLexer.h48 const AdditionalKeywords &getKeywords() { return Keywords; } in getKeywords()
112 AdditionalKeywords Keywords; variable
H A DQualifierAlignmentFixer.cpp207 const SourceManager &SourceMgr, const AdditionalKeywords &Keywords, in analyzeRight() argument
296 !Tok->Next->isOneOf(Keywords.kw_override, Keywords.kw_final)) { in analyzeRight()
309 const SourceManager &SourceMgr, const AdditionalKeywords &Keywords, in analyzeLeft() argument
432 const AdditionalKeywords &Keywords = Tokens.getKeywords(); in analyze() local
454 Tok = analyzeRight(SourceMgr, Keywords, Fixes, Tok, Qualifier, in analyze()
457 Tok = analyzeLeft(SourceMgr, Keywords, Fixes, Tok, Qualifier, in analyze()
H A DQualifierAlignmentFixer.h76 const AdditionalKeywords &Keywords,
83 const AdditionalKeywords &Keywords,
H A DUnwrappedLineParser.h79 const AdditionalKeywords &Keywords,
257 const AdditionalKeywords &Keywords; variable
H A DContinuationIndenter.h55 const AdditionalKeywords &Keywords,
192 const AdditionalKeywords &Keywords; variable
H A DFormatTokenLexer.cpp33 Style(Style), IdentTable(IdentTable), Keywords(IdentTable),
310 if (!Keywords.isCSharpKeyword(*Keyword)) in tryMergeCSharpKeywordVariables()
441 tok::kw_typeof, Keywords.kw_instanceof, Keywords.kw_in) || in precedesOperand()
H A DContinuationIndenter.cpp226 const AdditionalKeywords &Keywords, in ContinuationIndenter() argument
231 : Style(Style), Keywords(Keywords), SourceMgr(SourceMgr), in ContinuationIndenter()
460 Keywords.kw_dollar) && in mustBreak()
899 !Current.isOneOf(Keywords.kw_async, Keywords.kw_function))) { in addTokenOnNewLine()
1088 Current.isOneOf(Keywords.kw_implements, Keywords.kw_extends)) { in getNewLineColumn()
H A DFormat.cpp2461 const AdditionalKeywords &Keywords) { in guessIsObjC() argument
2553 FormatTok->isOneOf(Keywords.kw_NS_CLOSED_ENUM, Keywords.kw_NS_ENUM, in guessIsObjC()
2554 Keywords.kw_NS_OPTIONS, TT_ObjCBlockLBrace, in guessIsObjC()
2566 if (guessIsObjC(SourceManager, Line->Children, Keywords)) in guessIsObjC()
/llvm-project-15.0.7/clang/include/clang/Analysis/
H A DRetainSummaryManager.h575 template <typename... Keywords>
577 const RetainSummary *Summ, Keywords *... Kws) {
582 template <typename... Keywords>
584 Keywords *... Kws) {
588 template <typename... Keywords>
590 Keywords *... Kws) {
595 template <typename... Keywords>
597 Keywords *... Kws) {
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/
H A DRename.cpp432 Keywords, enumerator
441 case InvalidName::Keywords: in toString()
454 case InvalidName::Keywords: in makeError()
494 Result = InvalidName{InvalidName::Keywords, NewName.str()}; in checkName()
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DTokenKinds.def79 // Keywords. These turn "foo" into Token::kw_foo enums.
/llvm-project-15.0.7/lldb/unittests/Language/Highlighting/
H A DHighlighterTest.cpp151 TEST_F(HighlighterTest, Keywords) { in TEST_F() argument
/llvm-project-15.0.7/mlir/utils/vim/syntax/
H A Dmlir.vim65 " Keywords.
/llvm-project-15.0.7/llvm/utils/vim/syntax/
H A Dllvm.vim39 " Keywords.
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DIdentifierNamingCheck.cpp323 static constexpr StringRef Keywords[] = { in getDeclTypeName() local
334 for (StringRef Kw : Keywords) { in getDeclTypeName()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DTokenKinds.def250 // C99 6.4.1: Keywords. These turn into kw_* tokens.
335 // C++ 2.11p1: Keywords.
/llvm-project-15.0.7/clang/docs/
H A DDebuggingCoroutines.rst39 Keywords `co_await`, `co_yield`, or `co_return`. A `coroutine type` is a
/llvm-project-15.0.7/clang/utils/TableGen/
H A DClangAttrEmitter.cpp4302 Keywords, Pragma, C2x, HLSLSemantic; in EmitClangAttrParsedAttrKinds() local
4350 Matches = &Keywords; in EmitClangAttrParsedAttrKinds()
4387 StringMatcher("Name", Keywords, OS).Emit(); in EmitClangAttrParsedAttrKinds()
/llvm-project-15.0.7/llvm/docs/
H A DCodingStandards.rst576 Use of ``class`` and ``struct`` Keywords

12