| /src/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
| H A D | SourceCode.cpp | 54 const SourceManager &SM, in validateRange() argument 65 if (SM.isInSystemHeader(Range.getBegin()) || in validateRange() 66 SM.isInSystemHeader(Range.getEnd())) in validateRange() 71 std::pair<FileID, unsigned> BeginInfo = SM.getDecomposedLoc(Range.getBegin()); in validateRange() 72 std::pair<FileID, unsigned> EndInfo = SM.getDecomposedLoc(Range.getEnd()); in validateRange() 85 const SourceManager &SM) { in validateEditRange() argument 86 return validateRange(Range, SM, /*AllowSystemHeaders=*/false); in validateEditRange() 90 const SourceManager &SM) { in spelledInMacroDefinition() argument 92 const auto &Expansion = SM.getSLocEntry(SM.getFileID(Loc)).getExpansion(); in spelledInMacroDefinition() 108 getExpansionForSplitToken(SourceLocation Loc, const SourceManager &SM, in getExpansionForSplitToken() argument [all …]
|
| /src/sys/contrib/dev/ath/ath_hal/ar9300/ |
| H A D | ar9300_aic.c | 453 ahp->ah_aic_sram[i] = (SM(aic_sram[i].sram.vga_dir_sign, in ar9300_aic_cal_post_process() 455 SM(aic_sram[i].sram.vga_quad_sign, in ar9300_aic_cal_post_process() 457 SM(aic_sram[i].sram.com_att_6db, in ar9300_aic_cal_post_process() 459 SM(aic_sram[i].sram.valid, in ar9300_aic_cal_post_process() 461 SM(aic_sram[i].sram.rot_dir_att_db, in ar9300_aic_cal_post_process() 463 SM(aic_sram[i].sram.rot_quad_att_db, in ar9300_aic_cal_post_process() 525 (SM(0, AR_PHY_AIC_MON_ENABLE) | in ar9300_aic_calibration() 526 SM(40, AR_PHY_AIC_CAL_MAX_HOP_COUNT) | in ar9300_aic_calibration() 527 SM(1, AR_PHY_AIC_CAL_MIN_VALID_COUNT) | //26 in ar9300_aic_calibration() 528 SM(37, AR_PHY_AIC_F_WLAN) | in ar9300_aic_calibration() [all …]
|
| /src/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | DiagnosticRenderer.cpp | 59 const SourceManager &SM, const LangOptions &LangOpts, in mergeFixits() argument 61 edit::Commit commit(SM, LangOpts); in mergeFixits() 79 edit::EditedSource Editor(SM, LangOpts); in mergeFixits() 248 void DiagnosticRenderer::emitModuleBuildStack(const SourceManager &SM) { in emitModuleBuildStack() argument 249 ModuleBuildStack Stack = SM.getModuleBuildStack(); in emitModuleBuildStack() 263 bool IsBegin, const SourceManager *SM, in retrieveMacroLocation() argument 265 assert(SM->getFileID(Loc) == MacroFileID); in retrieveMacroLocation() 273 if (SM->isMacroArgExpansion(Loc)) { in retrieveMacroLocation() 279 CharSourceRange(SM->getImmediateSpellingLoc(Loc), IsTokenRange); in retrieveMacroLocation() 280 MacroArgRange = SM->getImmediateExpansionRange(Loc); in retrieveMacroLocation() [all …]
|
| H A D | SARIFDiagnostic.cpp | 88 auto &SM = Loc.getManager(); in addLocationToResult() local 89 SourceLocation B = SM.getExpansionLoc(Range.getBegin()); in addLocationToResult() 90 CharSourceRange ERange = SM.getExpansionRange(Range.getEnd()); in addLocationToResult() 94 std::pair<FileID, unsigned> BInfo = SM.getDecomposedLoc(B); in addLocationToResult() 95 std::pair<FileID, unsigned> EInfo = SM.getDecomposedLoc(E); in addLocationToResult() 106 TokSize = Lexer::MeasureTokenLength(E, SM, LangOpts); in addLocationToResult() 108 FullSourceLoc BF(B, SM), EF(E, SM); in addLocationToResult() 109 SourceLocation BeginLoc = SM.translateLineCol( in addLocationToResult() 111 SourceLocation EndLoc = SM.translateLineCol( in addLocationToResult() 120 auto &SM = Loc.getManager(); in addLocationToResult() local [all …]
|
| /src/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | MacroExpansionContext.cpp | 22 SourceManager &SM; member in clang::detail::MacroExpansionRangeRecorder 27 const Preprocessor &PP, SourceManager &SM, in MacroExpansionRangeRecorder() argument 29 : PP(PP), SM(SM), ExpansionRanges(ExpansionRanges) {} in MacroExpansionRangeRecorder() 37 SourceLocation MacroNameBegin = SM.getExpansionLoc(MacroName.getLocation()); in MacroExpands() 38 assert(MacroNameBegin == SM.getExpansionLoc(Range.getBegin())); in MacroExpands() 40 const SourceLocation ExpansionEnd = [Range, &SM = SM, &MacroName] { in MacroExpands() 43 return SM.getExpansionLoc( in MacroExpands() 47 return SM.getExpansionLoc(Range.getEnd()).getLocWithOffset(1); in MacroExpands() 55 MacroNameBegin.print(llvm::dbgs(), SM); in MacroExpands() 57 ExpansionEnd.print(llvm::dbgs(), SM); llvm::dbgs() << '\n';); in MacroExpands() [all …]
|
| H A D | CFGStmtMap.cpp | 28 SMap *SM = AsMap(M); in getBlock() local 34 SMap::iterator I = SM->find(X); in getBlock() 35 if (I != SM->end()) { in getBlock() 39 (*SM)[X] = B; in getBlock() 49 static void Accumulate(SMap &SM, CFGBlock *B) { in Accumulate() argument 57 CFGBlock *&Entry = SM[CS->getStmt()]; in Accumulate() 69 SM[Label] = B; in Accumulate() 75 SM[Term] = B; in Accumulate() 82 SMap *SM = new SMap(); in Build() local 87 Accumulate(*SM, *I); in Build() [all …]
|
| /src/sys/dev/rtwn/rtl8812a/ |
| H A D | r12a_chan.c | 69 SM(R12A_TXAGC_MCS0, power[RTWN_RIDX_HT_MCS(0)]) | in r12a_write_txpower_ht() 70 SM(R12A_TXAGC_MCS1, power[RTWN_RIDX_HT_MCS(1)]) | in r12a_write_txpower_ht() 71 SM(R12A_TXAGC_MCS2, power[RTWN_RIDX_HT_MCS(2)]) | in r12a_write_txpower_ht() 72 SM(R12A_TXAGC_MCS3, power[RTWN_RIDX_HT_MCS(3)])); in r12a_write_txpower_ht() 74 SM(R12A_TXAGC_MCS4, power[RTWN_RIDX_HT_MCS(4)]) | in r12a_write_txpower_ht() 75 SM(R12A_TXAGC_MCS5, power[RTWN_RIDX_HT_MCS(5)]) | in r12a_write_txpower_ht() 76 SM(R12A_TXAGC_MCS6, power[RTWN_RIDX_HT_MCS(6)]) | in r12a_write_txpower_ht() 77 SM(R12A_TXAGC_MCS7, power[RTWN_RIDX_HT_MCS(7)])); in r12a_write_txpower_ht() 80 SM(R12A_TXAGC_MCS8, power[RTWN_RIDX_HT_MCS(8)]) | in r12a_write_txpower_ht() 81 SM(R12A_TXAGC_MCS9, power[RTWN_RIDX_HT_MCS(9)]) | in r12a_write_txpower_ht() [all …]
|
| H A D | r12a_tx.c | 105 txd->txdw5 |= htole32(SM(R12A_TXDW5_DATA_BW, in r12a_tx_set_vht_bw() 107 txd->txdw5 |= htole32(SM(R12A_TXDW5_DATA_PRIM_CHAN, in r12a_tx_set_vht_bw() 110 txd->txdw5 |= htole32(SM(R12A_TXDW5_DATA_BW, in r12a_tx_set_vht_bw() 112 txd->txdw5 |= htole32(SM(R12A_TXDW5_DATA_PRIM_CHAN, in r12a_tx_set_vht_bw() 131 txd->txdw5 |= htole32(SM(R12A_TXDW5_DATA_BW, in r12a_tx_set_ht40() 133 txd->txdw5 |= htole32(SM(R12A_TXDW5_DATA_PRIM_CHAN, in r12a_tx_set_ht40() 171 txd->txdw4 |= htole32(SM(R12A_TXDW4_RTSRATE, ridx)); in r12a_tx_protection() 173 txd->txdw4 |= htole32(SM(R12A_TXDW4_RTSRATE_FB_LMT, 0xf)); in r12a_tx_protection() 261 txd->txdw1 |= htole32(SM(R12A_TXDW1_RAID, raid)); in r12a_tx_raid() 358 txd->txdw4 |= htole32(SM(R12A_TXDW4_RETRY_LMT, in r12a_fill_tx_desc() [all …]
|
| /src/contrib/llvm-project/clang/lib/Basic/ |
| H A D | SourceLocation.cpp | 35 Loc.print(OS, SM); in print() 62 void SourceLocation::print(raw_ostream &OS, const SourceManager &SM)const{ in print() 69 PresumedLoc PLoc = SM.getPresumedLoc(*this); in print() 81 SM.getExpansionLoc(*this).print(OS, SM); in print() 84 SM.getSpellingLoc(*this).print(OS, SM); in print() 89 SourceLocation::printToString(const SourceManager &SM) const { in printToString() 92 print(OS, SM); in printToString() 96 LLVM_DUMP_METHOD void SourceLocation::dump(const SourceManager &SM) const { in dump() 97 print(llvm::errs(), SM); in dump() 101 LLVM_DUMP_METHOD void SourceRange::dump(const SourceManager &SM) const { in dump() [all …]
|
| H A D | Cuda.cpp | 83 #define SM(sm) SM2(sm, "compute_" #sm) macro 89 SM(30), {OffloadArch::SM_32_, "sm_32", "compute_32"}, SM(35), SM(37), // Kepler 90 SM(50), SM(52), SM(53), // Maxwell 91 SM(60), SM(61), SM(62), // Pascal 92 SM(70), SM(72), // Volta 93 SM(75), // Turing 94 SM(80), SM(86), // Ampere 95 SM(87), // Jetson/Drive AGX Orin 96 SM(89), // Ada Lovelace 97 SM(90), // Hopper [all …]
|
| H A D | XRayLists.cpp | 23 ArrayRef<std::string> AttrListPaths, SourceManager &SM) in XRayFunctionFilter() argument 25 AlwaysInstrumentPaths, SM.getFileManager().getVirtualFileSystem())), in XRayFunctionFilter() 27 NeverInstrumentPaths, SM.getFileManager().getVirtualFileSystem())), in XRayFunctionFilter() 29 AttrListPaths, SM.getFileManager().getVirtualFileSystem())), in XRayFunctionFilter() 30 SM(SM) {} in XRayFunctionFilter() 75 return this->shouldImbueFunctionsInFile(SM.getFilename(SM.getFileLoc(Loc)), in shouldImbueLocation()
|
| /src/sys/dev/ath/ath_hal/ar5416/ |
| H A D | ar5416_xmit.c | 79 SM(10, AR_QUIET2_QUIET_DUR)); in ar5416StopTxDma() 125 (SM((_series)[_index].Tries, AR_XmitDataTries##_index)) 128 (SM((_series)[_index].Rate, AR_XmitRate##_index)) 131 (SM((_series)[_index].PktDuration, AR_PacketDur##_index) |\ 139 |SM((_series)[_index].ChSel, AR_ChainSel##_index) 373 ads->ds_ctl2 = SM(txTries0, AR_XmitDataTries0) in ar5416SetupTxDesc() 381 ads->ds_ctl7 = SM(ahp->ah_tx_chainmask, AR_ChainSel0) in ar5416SetupTxDesc() 382 | SM(ahp->ah_tx_chainmask, AR_ChainSel1) in ar5416SetupTxDesc() 383 | SM(ahp->ah_tx_chainmask, AR_ChainSel2) in ar5416SetupTxDesc() 384 | SM(ahp->ah_tx_chainmask, AR_ChainSel3) in ar5416SetupTxDesc() [all …]
|
| /src/sys/dev/ath/ath_hal/ar9002/ |
| H A D | ar9285_diversity.c | 91 regVal |= SM(ant_div_control1, AR_PHY_9285_ANT_DIV_CTL); in ar9285SetAntennaSwitch() 96 regVal |= SM(ant_div_control2, AR_PHY_9285_ANT_DIV_ALT_LNACONF); in ar9285SetAntennaSwitch() 97 regVal |= SM((ant_div_control2 >> 2), AR_PHY_9285_ANT_DIV_MAIN_LNACONF); in ar9285SetAntennaSwitch() 98 regVal |= SM((ant_div_control1 >> 1), AR_PHY_9285_ANT_DIV_ALT_GAINTB); in ar9285SetAntennaSwitch() 99 regVal |= SM((ant_div_control1 >> 2), AR_PHY_9285_ANT_DIV_MAIN_GAINTB); in ar9285SetAntennaSwitch() 105 regVal |= SM(HAL_ANT_DIV_COMB_LNA2, AR_PHY_9285_ANT_DIV_ALT_LNACONF); in ar9285SetAntennaSwitch() 106 regVal |= SM(HAL_ANT_DIV_COMB_LNA1, AR_PHY_9285_ANT_DIV_MAIN_LNACONF); in ar9285SetAntennaSwitch() 107 regVal |= SM(AR_PHY_9285_ANT_DIV_GAINTB_0, AR_PHY_9285_ANT_DIV_ALT_GAINTB); in ar9285SetAntennaSwitch() 108 regVal |= SM(AR_PHY_9285_ANT_DIV_GAINTB_1, AR_PHY_9285_ANT_DIV_MAIN_GAINTB); in ar9285SetAntennaSwitch() 114 regVal |= SM(HAL_ANT_DIV_COMB_LNA1, AR_PHY_9285_ANT_DIV_ALT_LNACONF); in ar9285SetAntennaSwitch() [all …]
|
| /src/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteMacros.cpp | 63 SourceManager &SM = PP.getSourceManager(); in LexRawTokensFromMainFile() local 67 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(SM.getMainFileID()); in LexRawTokensFromMainFile() 68 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in LexRawTokensFromMainFile() 90 SourceManager &SM = PP.getSourceManager(); in RewriteMacrosInInput() local 93 Rewrite.setSourceMgr(SM, PP.getLangOpts()); in RewriteMacrosInInput() 94 RewriteBuffer &RB = Rewrite.getEditBuffer(SM.getMainFileID()); in RewriteMacrosInInput() 114 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput() 117 if (!SM.isWrittenInMainFile(PPLoc)) { in RewriteMacrosInInput() 133 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput() 139 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput() [all …]
|
| /src/contrib/llvm-project/llvm/lib/FileCheck/ |
| H A D | FileCheck.cpp | 138 const SourceMgr &SM) const { in valueFromStringRepr() 242 BinaryOperation::getImplicitFormat(const SourceMgr &SM) const { in getImplicitFormat() 243 Expected<ExpressionFormat> LeftFormat = LeftOperand->getImplicitFormat(SM); in getImplicitFormat() 244 Expected<ExpressionFormat> RightFormat = RightOperand->getImplicitFormat(SM); in getImplicitFormat() 258 SM, getExpressionStr(), in getImplicitFormat() 289 Pattern::parseVariable(StringRef &Str, const SourceMgr &SM) { in parseVariable() argument 291 return ErrorDiagnostic::get(SM, Str, "empty variable name"); in parseVariable() 301 return ErrorDiagnostic::get(SM, Str.slice(I, StringRef::npos), in parseVariable() 307 return ErrorDiagnostic::get(SM, Str, "invalid variable name"); in parseVariable() 339 const SourceMgr &SM) { in parseNumericVariableDefinition() argument [all …]
|
| H A D | FileCheckImpl.h | 100 APInt valueFromStringRepr(StringRef StrVal, const SourceMgr &SM) const; 146 getImplicitFormat(const SourceMgr &SM) const { in getImplicitFormat() argument 293 getImplicitFormat(const SourceMgr &SM) const override { in getImplicitFormat() argument 333 getImplicitFormat(const SourceMgr &SM) const override; 457 SourceMgr &SM); 508 static Error get(const SourceMgr &SM, SMLoc Loc, const Twine &ErrMsg, 511 SM.GetMessage(Loc, SourceMgr::DK_Error, ErrMsg), Range); 514 static Error get(const SourceMgr &SM, StringRef Buffer, const Twine &ErrMsg) { in get() argument 517 return get(SM, Start, ErrMsg, SMRange(Start, End)); in get() 661 const SourceMgr &SM); [all …]
|
| /src/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
| H A D | Tokens.cpp | 41 const SourceManager &SM) { in getTokensCovering() argument 46 return SM.isBeforeInTranslationUnit(T.location(), R.getBegin()); in getTokensCovering() 50 return !SM.isBeforeInTranslationUnit(R.getEnd(), T.location()); in getTokensCovering() 69 const SourceManager &SM) { in spelledForExpandedSlow() argument 77 assert(SM.getSLocEntry(TargetFile).isFile()); in spelledForExpandedSlow() 89 auto DecFirst = SM.getDecomposedLoc(First); in spelledForExpandedSlow() 90 auto DecLast = SM.getDecomposedLoc(Last); in spelledForExpandedSlow() 91 auto &ExpFirst = SM.getSLocEntry(DecFirst.first).getExpansion(); in spelledForExpandedSlow() 92 auto &ExpLast = SM.getSLocEntry(DecLast.first).getExpansion(); in spelledForExpandedSlow() 106 auto ExpFileID = SM.getFileID(ExpFirst.getExpansionLocStart()); in spelledForExpandedSlow() [all …]
|
| /src/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | PlistSupport.h | 39 const SourceManager &SM, SourceLocation L) { in AddFID() argument 40 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in AddFID() 50 inline unsigned GetFID(const FIDMap &FIDs, const SourceManager &SM, in GetFID() argument 52 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in GetFID() 106 inline void EmitLocation(raw_ostream &o, const SourceManager &SM, in EmitLocation() argument 110 FullSourceLoc Loc(SM.getExpansionLoc(L), const_cast<SourceManager &>(SM)); in EmitLocation() 118 EmitInteger(o, GetFID(FM, SM, Loc)) << '\n'; in EmitLocation() 122 inline void EmitRange(raw_ostream &o, const SourceManager &SM, in EmitRange() argument 128 EmitLocation(o, SM, R.getBegin(), FM, indent + 1); in EmitRange() 133 EmitLocation(o, SM, R.getEnd().getLocWithOffset(-1), FM, indent + 1); in EmitRange()
|
| /src/contrib/llvm-project/llvm/lib/MCA/ |
| H A D | Support.cpp | 40 void computeProcResourceMasks(const MCSchedModel &SM, in computeProcResourceMasks() argument 44 assert(Masks.size() == SM.getNumProcResourceKinds() && in computeProcResourceMasks() 50 for (unsigned I = 1, E = SM.getNumProcResourceKinds(); I < E; ++I) { in computeProcResourceMasks() 51 const MCProcResourceDesc &Desc = *SM.getProcResource(I); in computeProcResourceMasks() 59 for (unsigned I = 1, E = SM.getNumProcResourceKinds(); I < E; ++I) { in computeProcResourceMasks() 60 const MCProcResourceDesc &Desc = *SM.getProcResource(I); in computeProcResourceMasks() 74 for (unsigned I = 0, E = SM.getNumProcResourceKinds(); I < E; ++I) { in computeProcResourceMasks() 75 const MCProcResourceDesc &Desc = *SM.getProcResource(I); in computeProcResourceMasks() 83 double computeBlockRThroughput(const MCSchedModel &SM, unsigned DispatchWidth, in computeBlockRThroughput() argument 94 for (unsigned I = 0, E = SM.getNumProcResourceKinds(); I < E; ++I) { in computeBlockRThroughput() [all …]
|
| /src/sys/dev/rtwn/rtl8192c/ |
| H A D | r92c_chan.c | 243 SM(R92C_TXAGC_RATE06, power[RTWN_RIDX_OFDM6]) | in r92c_write_txpower() 244 SM(R92C_TXAGC_RATE09, power[RTWN_RIDX_OFDM9]) | in r92c_write_txpower() 245 SM(R92C_TXAGC_RATE12, power[RTWN_RIDX_OFDM12]) | in r92c_write_txpower() 246 SM(R92C_TXAGC_RATE18, power[RTWN_RIDX_OFDM18])); in r92c_write_txpower() 248 SM(R92C_TXAGC_RATE24, power[RTWN_RIDX_OFDM24]) | in r92c_write_txpower() 249 SM(R92C_TXAGC_RATE36, power[RTWN_RIDX_OFDM36]) | in r92c_write_txpower() 250 SM(R92C_TXAGC_RATE48, power[RTWN_RIDX_OFDM48]) | in r92c_write_txpower() 251 SM(R92C_TXAGC_RATE54, power[RTWN_RIDX_OFDM54])); in r92c_write_txpower() 254 SM(R92C_TXAGC_MCS00, power[RTWN_RIDX_HT_MCS(0)]) | in r92c_write_txpower() 255 SM(R92C_TXAGC_MCS01, power[RTWN_RIDX_HT_MCS(1)]) | in r92c_write_txpower() [all …]
|
| /src/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | Lexer.h | 181 const SourceManager &SM, const LangOptions &LangOpts, 363 const SourceManager &SM, 372 const SourceManager &SM, 378 const SourceManager &SM, 386 const SourceManager &SM, 393 const SourceManager &SM, 401 const SourceManager &SM, in AdvanceToTokenCharacter() argument 404 getTokenPrefixLength(TokStart, Characters, SM, LangOpts)); in AdvanceToTokenCharacter() 423 const SourceManager &SM, 431 const SourceManager &SM, in getAsCharRange() argument [all …]
|
| /src/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | PlistDiagnostics.cpp | 171 const MacroExpansionContext &MacroExpansions, const SourceManager &SM); 188 const SourceManager &SM = PP.getSourceManager(); in EmitRanges() local 192 EmitRange(o, SM, in EmitRanges() 193 Lexer::getAsCharRange(SM.getExpansionRange(R), SM, LangOpts), in EmitRanges() 219 const SourceManager &SM = PP.getSourceManager(); in EmitFixits() local 231 EmitRange(o, SM, Lexer::getAsCharRange(fixit.RemoveRange, SM, LangOpts), in EmitFixits() 245 const SourceManager &SM = PP.getSourceManager(); in ReportControlFlow() local 268 SM.getExpansionLoc(I->getStart().asRange().getBegin())); in ReportControlFlow() 269 EmitRange(o, SM, Lexer::getAsCharRange(StartEdge, SM, LangOpts), FM, in ReportControlFlow() 273 SourceRange EndEdge(SM.getExpansionLoc(I->getEnd().asRange().getBegin())); in ReportControlFlow() [all …]
|
| /src/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CoverageMappingGen.cpp | 231 SpellingRegion(SourceManager &SM, SourceLocation LocStart, in SpellingRegion() 233 LineStart = SM.getSpellingLineNumber(LocStart); in SpellingRegion() 234 ColumnStart = SM.getSpellingColumnNumber(LocStart); in SpellingRegion() 235 LineEnd = SM.getSpellingLineNumber(LocEnd); in SpellingRegion() 236 ColumnEnd = SM.getSpellingColumnNumber(LocEnd); in SpellingRegion() 239 SpellingRegion(SourceManager &SM, SourceMappingRegion &R) in SpellingRegion() 240 : SpellingRegion(SM, R.getBeginLoc(), R.getEndLoc()) {} in SpellingRegion() 255 SourceManager &SM; member in __anon015dba650211::CoverageMappingBuilder 277 CoverageMappingBuilder(CoverageMappingModuleGen &CVM, SourceManager &SM, in CoverageMappingBuilder() argument 279 : CVM(CVM), SM(SM), LangOpts(LangOpts) {} in CoverageMappingBuilder() [all …]
|
| /src/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/ |
| H A D | SourceExtraction.cpp | 22 bool isSemicolonAtLocation(SourceLocation TokenLoc, const SourceManager &SM, in isSemicolonAtLocation() argument 25 CharSourceRange::getTokenRange(TokenLoc, TokenLoc), SM, in isSemicolonAtLocation() 62 const SourceManager &SM) { in areOnSameLine() argument 64 SM.getSpellingLineNumber(Loc1) == SM.getSpellingLineNumber(Loc2); in areOnSameLine() 74 const SourceManager &SM, in compute() argument 99 if (isSemicolonAtLocation(End, SM, LangOpts)) in compute() 104 std::optional<Token> NextToken = Lexer::findNextToken(End, SM, LangOpts); in compute() 106 areOnSameLine(NextToken->getLocation(), End, SM)) { in compute()
|
| /src/contrib/llvm-project/clang/lib/Edit/ |
| H A D | Commit.cpp | 24 SourceLocation Commit::Edit::getFileLocation(SourceManager &SM) const { in getFileLocation() 25 SourceLocation Loc = SM.getLocForStartOfFile(Offset.getFID()); in getFileLocation() 31 CharSourceRange Commit::Edit::getFileRange(SourceManager &SM) const { in getFileRange() 32 SourceLocation Loc = getFileLocation(SM); in getFileRange() 36 CharSourceRange Commit::Edit::getInsertFromRange(SourceManager &SM) const { in getInsertFromRange() 37 SourceLocation Loc = SM.getLocForStartOfFile(InsertFromRangeOffs.getFID()); in getInsertFromRange() 232 const SourceManager &SM = SourceMgr; in canInsert() local 233 loc = SM.getTopMacroCallerLoc(loc); in canInsert() 239 if (SM.isInSystemHeader(loc)) in canInsert() 242 std::pair<FileID, unsigned> locInfo = SM.getDecomposedLoc(loc); in canInsert() [all …]
|