/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | ExpandMacro.cpp | 52 llvm::ArrayRef<syntax::Token> Spelled, in REGISTER_TWEAK() 55 auto It = llvm::partition_point(Spelled, [&](const syntax::Token &T) { in REGISTER_TWEAK() 59 if (It == Spelled.begin()) in REGISTER_TWEAK() 72 auto Spelled = Tokens.spelledTokens(SM.getFileID(Cursor)); in findIdentifierUnderCursor() local 74 auto *T = findTokenUnderCursor(SM, Spelled, SM.getFileOffset(Cursor)); in findIdentifierUnderCursor() 82 if (T == Spelled.begin()) in findIdentifierUnderCursor() 122 CharSourceRange::getCharRange(Expansion.Spelled.front().location(), in apply() 123 Expansion.Spelled.back().endLocation()); in apply()
|
/external/llvm-project/clang/lib/Tooling/Syntax/ |
D | Tokens.cpp | 234 const syntax::Token *Spelled) { in mappingStartingBeforeSpelled() argument 235 assert(F.SpelledTokens.data() <= Spelled); in mappingStartingBeforeSpelled() 236 unsigned SpelledI = Spelled - F.SpelledTokens.data(); in mappingStartingBeforeSpelled() 249 TokenBuffer::expandedForSpelled(llvm::ArrayRef<syntax::Token> Spelled) const { in expandedForSpelled() 250 if (Spelled.empty()) in expandedForSpelled() 252 const auto &File = fileForSpelled(Spelled); in expandedForSpelled() 254 auto *FrontMapping = mappingStartingBeforeSpelled(File, &Spelled.front()); in expandedForSpelled() 255 unsigned SpelledFrontI = &Spelled.front() - File.SpelledTokens.data(); in expandedForSpelled() 277 auto *BackMapping = mappingStartingBeforeSpelled(File, &Spelled.back()); in expandedForSpelled() 278 unsigned SpelledBackI = &Spelled.back() - File.SpelledTokens.data(); in expandedForSpelled() [all …]
|
D | ComputeReplacements.cpp | 79 auto Spelled = Buffer.spelledForExpanded(Expanded); in rangeOfExpanded() local 80 assert(Spelled && "could not find spelled tokens for expanded"); in rangeOfExpanded() 81 return syntax::Token::range(SM, Spelled->front(), Spelled->back()); in rangeOfExpanded()
|
/external/llvm-project/clang/include/clang/Tooling/Syntax/ |
D | Tokens.h | 258 expandedForSpelled(llvm::ArrayRef<syntax::Token> Spelled) const; 270 llvm::ArrayRef<syntax::Token> Spelled; member 277 expansionStartingAt(const syntax::Token *Spelled) const; 281 expansionsOverlapping(llvm::ArrayRef<syntax::Token> Spelled) const; 357 const syntax::Token *Spelled); 363 const MarkedFile &fileForSpelled(llvm::ArrayRef<syntax::Token> Spelled) const;
|
/external/llvm-project/clang-tools-extra/clangd/index/ |
D | SymbolCollector.cpp | 178 RefKind toRefKind(index::SymbolRoleSet Roles, bool Spelled = false) { in toRefKind() argument 186 if (Spelled) in toRefKind() 187 Result |= RefKind::Spelled; in toRefKind() 588 bool Spelled = false) { in finish() argument 598 R.Kind = toRefKind(LocAndRole.Roles, Spelled); in finish() 628 bool Spelled = IdentifierToken && IsTargetKind && in finish() local 630 CollectRef(ID, LocAndRole, Spelled); in finish()
|
D | Ref.h | 67 Spelled = 1 << 3, enumerator 68 All = Declaration | Definition | Reference | Spelled,
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | DumpAST.cpp | 93 auto Spelled = Tokens.spelledForExpanded(Tokens.expandedTokens(SR)); in getRange() local 94 if (!Spelled) in getRange() 98 CharSourceRange::getCharRange(Spelled->front().location(), in getRange() 99 Spelled->back().endLocation())); in getRange()
|
D | IncludeFixer.cpp | 160 auto Spelled = Inserter->calculateIncludePath(*ResolvedInserted, File); in fixesForSymbols() local 161 if (!Spelled) in fixesForSymbols() 164 std::move(*Spelled), in fixesForSymbols()
|
D | CodeComplete.cpp | 188 if (auto Spelled = in overloadSet() local 190 HeaderForHash = *Spelled; in overloadSet() 346 auto Spelled = Includes.calculateIncludePath(*ResolvedInserted, FileName); in CodeCompletionBuilder() local 347 if (!Spelled) in CodeCompletionBuilder() 350 std::move(*Spelled), in CodeCompletionBuilder()
|
D | Selection.cpp | 232 for (const syntax::Token &Tok : X.Spelled) { in SelectionTester()
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | ParsedASTTests.cpp | 244 auto Spelled = T.spelledTokens(SM.getMainFileID()); in TEST() local 245 ASSERT_FALSE(Spelled.empty()); in TEST() 246 EXPECT_EQ(Spelled.front().kind(), tok::hash); in TEST() 247 EXPECT_EQ(Spelled.back().text(SM), "last_token"); in TEST()
|
D | RenameTests.cpp | 39 Result.Kind = RefKind::Reference | RefKind::Spelled; in refWithRange()
|
D | SymbolCollectorTests.cpp | 925 if ((Ref.Kind & RefKind::Spelled) != RefKind::Unknown) in TEST_F()
|
/external/llvm-project/clang-tools-extra/clangd/unittests/remote/ |
D | MarshallingTests.cpp | 213 Ref.Kind = clangd::RefKind::Spelled | clangd::RefKind::Declaration; in TEST() 343 Request.Filter = RefKind::Spelled | RefKind::Declaration; in TEST()
|
/external/llvm-project/clang/unittests/Tooling/Syntax/ |
D | TokensTest.cpp | 75 IsExpansion(Matcher<llvm::ArrayRef<syntax::Token>> Spelled, in IsExpansion() argument 77 return AllOf(Field(&TokenBuffer::Expansion::Spelled, Spelled), in IsExpansion()
|
/external/llvm-project/clang-tools-extra/clangd/refactor/ |
D | Rename.cpp | 474 if ((R.Kind & RefKind::Spelled) == RefKind::Unknown) in findOccurrencesOutsideFile()
|
/external/llvm-project/clang/docs/ |
D | InternalsManual.rst | 2295 ``GNU`` Spelled with a GNU-style ``__attribute__((attr))`` syntax and 2297 ``CXX11`` Spelled with a C++-style ``[[attr]]`` syntax with an optional 2299 ``C2x`` Spelled with a C-style ``[[attr]]`` syntax with an optional 2301 ``Declspec`` Spelled with a Microsoft-style ``__declspec(attr)`` syntax.
|
/external/clang/docs/ |
D | InternalsManual.rst | 1699 ``GNU`` Spelled with a GNU-style ``__attribute__((attr))`` syntax and 1701 ``CXX11`` Spelled with a C++-style ``[[attr]]`` syntax. If the attribute 1704 ``Declspec`` Spelled with a Microsoft-style ``__declspec(attr)`` syntax.
|