/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | ExpandMacro.cpp | 43 syntax::TokenBuffer::Expansion Expansion; member in clang::clangd::__anon445c37070111::ExpandMacro 100 auto Expansion = Inputs.AST->getTokens().expansionStartingAt(T); in prepare() local 101 if (!Expansion) in prepare() 104 this->Expansion = *Expansion; in prepare() 112 for (const syntax::Token &T : Expansion.Expanded) { in apply() 122 CharSourceRange::getCharRange(Expansion.Spelled.front().location(), in apply() 123 Expansion.Spelled.back().endLocation()); in apply()
|
D | ExpandAutoType.cpp | 129 Expansion(SrcMgr, CharSourceRange(CachedLocation->getSourceRange(), true), in apply() local 132 return Effect::mainFileEdit(SrcMgr, tooling::Replacements(Expansion)); in apply()
|
/external/clang/lib/Rewrite/ |
D | HTMLRewrite.cpp | 534 std::string Expansion = EscapeText(TmpPP.getSpelling(Tok)); in HighlightMacros() local 535 unsigned LineLen = Expansion.size(); in HighlightMacros() 549 Expansion += "<br>"; in HighlightMacros() 553 LineLen -= Expansion.size(); in HighlightMacros() 559 Expansion += ' '; in HighlightMacros() 562 Expansion += EscapeText(TmpPP.getSpelling(Tok)); in HighlightMacros() 563 LineLen += Expansion.size(); in HighlightMacros() 573 Expansion = "<span class='expansion'>" + Expansion + "</span></span>"; in HighlightMacros() 576 "<span class='macro'>", Expansion.c_str()); in HighlightMacros()
|
/external/llvm-project/clang/lib/Rewrite/ |
D | HTMLRewrite.cpp | 621 std::string Expansion = EscapeText(TmpPP.getSpelling(Tok)); in HighlightMacros() local 622 unsigned LineLen = Expansion.size(); in HighlightMacros() 636 Expansion += "<br>"; in HighlightMacros() 640 LineLen -= Expansion.size(); in HighlightMacros() 646 Expansion += ' '; in HighlightMacros() 649 Expansion += EscapeText(TmpPP.getSpelling(Tok)); in HighlightMacros() 650 LineLen += Expansion.size(); in HighlightMacros() 659 Expansion = "<span class='macro_popup'>" + Expansion + "</span></span>"; in HighlightMacros() 662 Expansion.c_str(), LLoc.isTokenRange()); in HighlightMacros()
|
/external/rust/crates/libz-sys/src/zlib/os400/ |
D | zlib.inc | 315 D strm like(z_stream) Expansion stream 320 D strm like(z_stream) Expansion stream 324 D strm like(z_stream) Expansion stream 380 D strm like(z_stream) Expansion stream 387 D strm like(z_stream) Expansion stream 393 D strm like(z_stream) Expansion stream 399 D strm like(z_stream) Expansion stream 404 D strm like(z_stream) Expansion stream 411 D strm like(z_stream) Expansion stream 414 D strm like(z_stream) Expansion stream [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | UseNullptrCheck.cpp | 320 const SrcMgr::ExpansionInfo &Expansion = E->getExpansion(); in getMacroAndArgLocations() local 323 ArgLoc = Expansion.getExpansionLocStart(); in getMacroAndArgLocations() 324 if (!Expansion.isMacroArgExpansion()) { in getMacroAndArgLocations() 335 ArgLoc = Expansion.getSpellingLoc().getLocWithOffset(LocInfo.second); in getMacroAndArgLocations() 373 const SrcMgr::ExpansionInfo &Expansion = E->getExpansion(); in expandsFrom() local 375 Loc = Expansion.getExpansionLocStart(); in expandsFrom() 377 if (!Expansion.isMacroArgExpansion()) { in expandsFrom() 394 Loc = Expansion.getSpellingLoc().getLocWithOffset(LocInfo.second); in expandsFrom()
|
/external/llvm/utils/TableGen/ |
D | PseudoLoweringEmitter.cpp | 208 for (auto &Expansion : Expansions) { in emitLoweringEmitter() local 209 CodeGenInstruction &Source = Expansion.Source; in emitLoweringEmitter() 210 CodeGenInstruction &Dest = Expansion.Dest; in emitLoweringEmitter() 226 switch (Expansion.OperandMap[MIOpNo + i].Kind) { in emitLoweringEmitter() 229 << Source.Operands[Expansion.OperandMap[MIOpNo].Data in emitLoweringEmitter() 236 << Expansion.OperandMap[MIOpNo + i].Data.Imm << "));\n"; in emitLoweringEmitter() 239 Record *Reg = Expansion.OperandMap[MIOpNo + i].Data.Reg; in emitLoweringEmitter()
|
/external/llvm-project/llvm/utils/TableGen/ |
D | PseudoLoweringEmitter.cpp | 230 for (auto &Expansion : Expansions) { in emitLoweringEmitter() local 231 CodeGenInstruction &Source = Expansion.Source; in emitLoweringEmitter() 232 CodeGenInstruction &Dest = Expansion.Dest; in emitLoweringEmitter() 248 switch (Expansion.OperandMap[MIOpNo + i].Kind) { in emitLoweringEmitter() 251 << Source.Operands[Expansion.OperandMap[MIOpNo].Data in emitLoweringEmitter() 258 << Expansion.OperandMap[MIOpNo + i].Data.Imm << "));\n"; in emitLoweringEmitter() 261 Record *Reg = Expansion.OperandMap[MIOpNo + i].Data.Reg; in emitLoweringEmitter()
|
/external/llvm-project/llvm/tools/llvm-cov/ |
D | CoverageExporterJson.cpp | 94 json::Object renderExpansion(const coverage::ExpansionRecord &Expansion) { in renderExpansion() argument 96 {{"filenames", json::Array(Expansion.Function.Filenames)}, in renderExpansion() 98 {"source_region", renderRegion(Expansion.Region)}, in renderExpansion() 100 {"target_regions", renderRegions(Expansion.Function.CountedRegions)}}); in renderExpansion() 132 for (const auto &Expansion : FileCoverage.getExpansions()) in renderFileExpansions() local 133 ExpansionArray.push_back(renderExpansion(Expansion)); in renderFileExpansions()
|
/external/llvm-project/clang/lib/Frontend/Rewrite/ |
D | RewriteMacros.cpp | 195 std::string Expansion; in RewriteMacrosInInput() local 197 Expansion += ' ' + PP.getSpelling(PPTok); in RewriteMacrosInInput() 202 Expansion += ' '; in RewriteMacrosInInput() 203 RB.InsertTextBefore(InsertPos, Expansion); in RewriteMacrosInInput()
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteMacros.cpp | 196 std::string Expansion; in RewriteMacrosInInput() local 198 Expansion += ' ' + PP.getSpelling(PPTok); in RewriteMacrosInInput() 203 Expansion += ' '; in RewriteMacrosInInput() 204 RB.InsertTextBefore(InsertPos, Expansion); in RewriteMacrosInInput()
|
/external/llvm-project/llvm/utils/TableGen/GlobalISel/ |
D | CodeExpansions.h | 26 void declare(StringRef Name, StringRef Expansion) { in declare() argument 27 bool Inserted = Expansions.try_emplace(Name, Expansion).second; in declare()
|
/external/llvm-project/clang/include/clang/Tooling/Syntax/ |
D | Tokens.h | 269 struct Expansion { struct 276 llvm::Optional<Expansion> argument 280 std::vector<Expansion> 360 Expansion makeExpansion(const MarkedFile &, const Mapping &) const;
|
/external/llvm/lib/ProfileData/Coverage/ |
D | CoverageMapping.cpp | 522 CoverageMapping::getCoverageForExpansion(const ExpansionRecord &Expansion) { in getCoverageForExpansion() argument 524 Expansion.Function.Filenames[Expansion.FileID]); in getCoverageForExpansion() 526 for (const auto &CR : Expansion.Function.CountedRegions) in getCoverageForExpansion() 527 if (CR.FileID == Expansion.FileID) { in getCoverageForExpansion() 529 if (isExpansion(CR, Expansion.FileID)) in getCoverageForExpansion() 530 ExpansionCoverage.Expansions.emplace_back(CR, Expansion.Function); in getCoverageForExpansion() 533 DEBUG(dbgs() << "Emitting segments for expansion of file " << Expansion.FileID in getCoverageForExpansion()
|
/external/llvm-project/llvm/lib/ProfileData/Coverage/ |
D | CoverageMapping.cpp | 731 const ExpansionRecord &Expansion) const { in getCoverageForExpansion() 733 Expansion.Function.Filenames[Expansion.FileID]); in getCoverageForExpansion() 735 for (const auto &CR : Expansion.Function.CountedRegions) in getCoverageForExpansion() 736 if (CR.FileID == Expansion.FileID) { in getCoverageForExpansion() 738 if (isExpansion(CR, Expansion.FileID)) in getCoverageForExpansion() 739 ExpansionCoverage.Expansions.emplace_back(CR, Expansion.Function); in getCoverageForExpansion() 743 << Expansion.FileID << "\n"); in getCoverageForExpansion()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/Coverage/ |
D | CoverageMapping.cpp | 722 const ExpansionRecord &Expansion) const { in getCoverageForExpansion() 724 Expansion.Function.Filenames[Expansion.FileID]); in getCoverageForExpansion() 726 for (const auto &CR : Expansion.Function.CountedRegions) in getCoverageForExpansion() 727 if (CR.FileID == Expansion.FileID) { in getCoverageForExpansion() 729 if (isExpansion(CR, Expansion.FileID)) in getCoverageForExpansion() 730 ExpansionCoverage.Expansions.emplace_back(CR, Expansion.Function); in getCoverageForExpansion() 734 << Expansion.FileID << "\n"); in getCoverageForExpansion()
|
/external/clang/lib/Sema/ |
D | SemaTemplateVariadic.cpp | 893 PackExpansionTypeLoc Expansion = in getTemplateArgumentPackExpansionPattern() local 895 Ellipsis = Expansion.getEllipsisLoc(); in getTemplateArgumentPackExpansionPattern() 897 TypeLoc Pattern = Expansion.getPatternLoc(); in getTemplateArgumentPackExpansionPattern() 898 NumExpansions = Expansion.getTypePtr()->getNumExpansions(); in getTemplateArgumentPackExpansionPattern() 912 PackExpansionExpr *Expansion in getTemplateArgumentPackExpansionPattern() local 914 Expr *Pattern = Expansion->getPattern(); in getTemplateArgumentPackExpansionPattern() 915 Ellipsis = Expansion->getEllipsisLoc(); in getTemplateArgumentPackExpansionPattern() 916 NumExpansions = Expansion->getNumExpansions(); in getTemplateArgumentPackExpansionPattern()
|
/external/llvm-project/clang/lib/Tooling/Syntax/ |
D | Tokens.cpp | 383 TokenBuffer::Expansion TokenBuffer::makeExpansion(const MarkedFile &F, in makeExpansion() 385 Expansion E; in makeExpansion() 412 llvm::Optional<TokenBuffer::Expansion> 426 std::vector<TokenBuffer::Expansion> TokenBuffer::expansionsOverlapping( in expansionsOverlapping() 438 std::vector<TokenBuffer::Expansion> Expansions; in expansionsOverlapping() 735 SourceLocation Expansion = SM.getExpansionLoc(Tok.location()); in advance() local 736 FileID File = SM.getFileID(Expansion); in advance() 752 auto End = CollectedExpansions.lookup(Expansion); in advance() 766 Result.ExpandedTokens[NextExpanded].location()) == Expansion) in advance()
|
/external/llvm-project/clang/include/clang/Basic/ |
D | SourceManager.h | 475 ExpansionInfo Expansion; member 493 return Expansion; in getExpansion() 505 static SLocEntry get(unsigned Offset, const ExpansionInfo &Expansion) { in get() argument 510 E.Expansion = Expansion; in get() 1184 CharSourceRange Expansion = getExpansionRange(Range.getAsRange()); in getExpansionRange() local 1185 if (Expansion.getEnd() == Range.getEnd()) in getExpansionRange() 1186 Expansion.setTokenRange(Range.isTokenRange()); in getExpansionRange() 1187 return Expansion; in getExpansionRange() 1787 SourceLocation createExpansionLocImpl(const SrcMgr::ExpansionInfo &Expansion,
|
/external/clang/test/Analysis/ |
D | CFRetainRelease_NSAssertionHandler.m | 42 // Expansion of: NSParameterAssert( x != 0 ); 55 // Expansion of: NSAssert( x != 0, @"" );
|
/external/llvm-project/clang/test/Analysis/ |
D | CFRetainRelease_NSAssertionHandler.m | 42 // Expansion of: NSParameterAssert( x != 0 ); 55 // Expansion of: NSAssert( x != 0, @"" );
|
/external/llvm-project/clang/test/Preprocessor/ |
D | warning_tests.c | 44 #error Expansion should have occurred
|
/external/clang/test/Preprocessor/ |
D | warning_tests.c | 44 #error Expansion should have occurred
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaTemplateVariadic.cpp | 1068 PackExpansionTypeLoc Expansion = in getTemplateArgumentPackExpansionPattern() local 1070 Ellipsis = Expansion.getEllipsisLoc(); in getTemplateArgumentPackExpansionPattern() 1072 TypeLoc Pattern = Expansion.getPatternLoc(); in getTemplateArgumentPackExpansionPattern() 1073 NumExpansions = Expansion.getTypePtr()->getNumExpansions(); in getTemplateArgumentPackExpansionPattern() 1087 PackExpansionExpr *Expansion in getTemplateArgumentPackExpansionPattern() local 1089 Expr *Pattern = Expansion->getPattern(); in getTemplateArgumentPackExpansionPattern() 1090 Ellipsis = Expansion->getEllipsisLoc(); in getTemplateArgumentPackExpansionPattern() 1091 NumExpansions = Expansion->getNumExpansions(); in getTemplateArgumentPackExpansionPattern()
|
/external/clang/test/CoverageMapping/ |
D | implicit-def-in-macro.m | 11 // CHECK: Expansion,File 0, [[@LINE+1]]:3 -> [[@LINE+1]]:6 = 0
|