/external/clang/lib/Edit/ |
H A D | EditedSource.cpp | 267 static void adjustRemoval(const SourceManager &SM, const LangOptions &LangOpts, argument 271 SourceLocation BeginTokLoc = Lexer::GetBeginningOfToken(Loc, SM, LangOpts); 276 StringRef buffer = SM.getBufferData(offs.getFID(), &Invalid); 306 const SourceManager &SM, const LangOptions &LangOpts) { 308 SourceLocation Loc = SM.getLocForStartOfFile(offs.getFID()); 313 adjustRemoval(SM, LangOpts, Loc, offs, len, text); 304 applyRewrite(EditsReceiver &receiver, StringRef text, FileOffset offs, unsigned len, const SourceManager &SM, const LangOptions &LangOpts) argument
|
/external/clang/lib/Frontend/ |
H A D | FrontendActions.cpp | 549 SourceManager &SM = PP.getSourceManager(); local 552 const llvm::MemoryBuffer *FromFile = SM.getBuffer(SM.getMainFileID()); 553 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); 623 const SourceManager& SM = CI.getSourceManager(); local 624 const llvm::MemoryBuffer *Buffer = SM.getBuffer(SM.getMainFileID(),
|
H A D | DependencyFile.cpp | 34 SourceManager &SM; member in struct:__anon17918::DepCollectorPPCallbacks 35 DepCollectorPPCallbacks(DependencyCollector &L, SourceManager &SM) argument 36 : DepCollector(L), SM(SM) { } 48 SM.getFileEntryForID(SM.getFileID(SM.getExpansionLoc(Loc))); 239 SourceManager &SM = PP->getSourceManager(); 242 SM.getFileEntryForID(SM [all...] |
H A D | DiagnosticRenderer.cpp | 43 const SourceManager &SM, 47 while (SM.isMacroArgExpansion(Loc)) 48 Loc = SM.getImmediateExpansionRange(Loc).first; 52 if (!SM.getFileEntryForID(SM.getFileID(SM.getSpellingLoc(Loc)))) 58 Loc = SM.getSpellingLoc(SM.getImmediateExpansionRange(Loc).first); 62 std::pair<FileID, unsigned> ExpansionInfo = SM.getDecomposedLoc(Loc); 63 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpt 42 getImmediateMacroName(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument 92 mergeFixits(ArrayRef<FixItHint> FixItHints, const SourceManager &SM, const LangOptions &LangOpts, SmallVectorImpl<FixItHint> &MergedFixits) argument 123 emitDiagnostic(SourceLocation Loc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> FixItHints, const SourceManager *SM, DiagOrStoredDiag D) argument 210 emitIncludeStack(SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, const SourceManager &SM) argument 235 emitIncludeStackRecursively(SourceLocation Loc, const SourceManager &SM) argument 264 emitImportStack(SourceLocation Loc, const SourceManager &SM) argument 278 emitImportStackRecursively(SourceLocation Loc, StringRef ModuleName, const SourceManager &SM) argument 300 emitModuleBuildStack(const SourceManager &SM) argument 323 mapDiagnosticRanges( SourceLocation CaretLoc, ArrayRef<CharSourceRange> Ranges, SmallVectorImpl<CharSourceRange> &SpellingRanges, const SourceManager *SM) argument 387 emitCaret(SourceLocation Loc, DiagnosticsEngine::Level Level, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints, const SourceManager &SM) argument 409 emitMacroExpansions(SourceLocation Loc, DiagnosticsEngine::Level Level, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints, const SourceManager &SM, unsigned &MacroDepth, unsigned OnMacroInst) argument 477 emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc, const SourceManager &SM) argument 488 emitImportLocation(SourceLocation Loc, PresumedLoc PLoc, StringRef ModuleName, const SourceManager &SM) argument 501 emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc, StringRef ModuleName, const SourceManager &SM) argument [all...] |
/external/clang/lib/Rewrite/Core/ |
H A D | HTMLRewrite.cpp | 34 SourceManager &SM = R.getSourceMgr(); local 35 B = SM.getExpansionLoc(B); 36 E = SM.getExpansionLoc(E); 37 FileID FID = SM.getFileID(B); 38 assert(SM.getFileID(E) == FID && "B/E not in the same file!"); 40 unsigned BOffset = SM.getFileOffset(B); 41 unsigned EOffset = SM.getFileOffset(E); 47 const char *BufferStart = SM.getBufferData(FID, &Invalid).data(); 360 const SourceManager &SM = PP.getSourceManager(); local 361 const llvm::MemoryBuffer *FromFile = SM 448 const SourceManager &SM = PP.getSourceManager(); local [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | PlistDiagnostics.cpp | 86 const SourceManager &SM, 110 EmitRange(o, SM, LangOpts, CharSourceRange::getTokenRange(StartEdge), FM, 115 EmitRange(o, SM, LangOpts, CharSourceRange::getTokenRange(EndEdge), FM, 138 const SourceManager &SM, 157 EmitLocation(o, SM, LangOpts, L, FM, indent); 168 EmitRange(o, SM, LangOpts, CharSourceRange::getTokenRange(*I), FM, 198 const FIDMap& FM, const SourceManager &SM, 207 const FIDMap& FM, const SourceManager &SM, 216 ReportPiece(o, *callEnter, FM, SM, LangOpts, indent, depth, true, 225 ReportPiece(o, *callEnterWithinCaller, FM, SM, LangOpt 83 ReportControlFlow(raw_ostream &o, const PathDiagnosticControlFlowPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent) argument 136 ReportEvent(raw_ostream &o, const PathDiagnosticPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent, unsigned depth, bool isKeyEvent = false) argument 205 ReportCall(raw_ostream &o, const PathDiagnosticCallPiece &P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent, unsigned depth) argument 240 ReportMacro(raw_ostream &o, const PathDiagnosticMacroPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent, unsigned depth) argument 253 ReportDiag(raw_ostream &o, const PathDiagnosticPiece& P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts) argument 259 ReportPiece(raw_ostream &o, const PathDiagnosticPiece &P, const FIDMap& FM, const SourceManager &SM, const LangOptions &LangOpts, unsigned indent, unsigned depth, bool includeControlFlow, bool isKeyEvent) argument 295 const SourceManager* SM = nullptr; local [all...] |
/external/clang/lib/Tooling/ |
H A D | Refactoring.cpp | 54 SourceManager &SM = Rewrite.getSourceMgr(); local 55 const FileEntry *Entry = SM.getFileManager().getFile(FilePath); 59 // FIXME: Use SM.translateFile directly. 60 SourceLocation Location = SM.translateFileLineCol(Entry, 1, 1); 62 SM.getFileID(Location) : 63 SM.createFileID(Entry, SourceLocation(), SrcMgr::C_User); 67 SM.getLocForStartOfFile(ID).
|
/external/clang/tools/arcmt-test/ |
H A D | arcmt-test.cpp | 309 SourceManager &SM = Ctx.getSourceManager(); local 310 PresumedLoc PL = SM.getPresumedLoc(loc); 319 SourceManager &SM = Ctx.getSourceManager(); local 322 PresumedLoc PL = SM.getPresumedLoc(range.getBegin()); 330 PL = SM.getPresumedLoc(end); 334 endCol += Lexer::MeasureTokenLength(end, SM, langOpts);
|
/external/clang/tools/libclang/ |
H A D | CIndexHigh.cpp | 135 static SourceLocation getFileSpellingLoc(SourceManager &SM, argument 139 SourceLocation SpellLoc = SM.getImmediateSpellingLoc(Loc); 141 return getFileSpellingLoc(SM, SpellLoc, isMacroArg); 143 isMacroArg = SM.isMacroArgExpansion(Loc); 189 SourceManager &SM = Ctx.getSourceManager(); local 193 Loc = getFileSpellingLoc(SM, Loc, isMacroArg); 198 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc); 219 SourceManager &SM = cxtu::getASTUnit(TU)->getSourceManager(); local 221 FileID FID = SM.translateFile(File); 235 SourceRange Range(SM 284 SourceManager &SM = Ctx.getSourceManager(); local 317 SourceManager &SM = Unit->getSourceManager(); local 362 SourceManager &SM = Ctx.getSourceManager(); local 389 SourceManager &SM = Unit->getSourceManager(); local [all...] |
H A D | CXSourceLocation.cpp | 217 const SourceManager &SM = local 219 return SM.isInSystemHeader(Loc); 228 const SourceManager &SM = local 230 return SM.isWrittenInMainFile(Loc); 251 const SourceManager &SM = local 253 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); 257 FileID fileID = SM.getFileID(ExpansionLoc); 259 const SrcMgr::SLocEntry &sloc = SM.getSLocEntry(fileID, &Invalid); 266 *file = const_cast<FileEntry *>(SM.getFileEntryForSLocEntry(sloc)); 268 *line = SM 294 const SourceManager &SM = local 333 const SourceManager &SM = local 371 const SourceManager &SM = local [all...] |
/external/clang/unittests/Tooling/ |
H A D | RefactoringTest.cpp | 283 clang::SourceManager *SM; member in class:clang::tooling::__anon19550::TestVisitor 304 Visitor->SM = &compiler.getSourceManager(); 327 Replace = Replacement(*SM, Record, ""); 350 Replace = Replacement(*SM, Call, "");
|
H A D | TestVisitor.h | 206 void UpdateFor(StringRef Name, FullSourceLoc Location, SourceManager &SM) { argument 213 Location.print(Stream, SM);
|
/external/eigen/Eigen/src/SparseLU/ |
H A D | SparseLU_gemm_kernel.h | 38 SM = PM*PacketSize // step along M enumerator in enum:Eigen::internal::__anon20998 61 Index actual_b_end1 = (actual_b/SM)*SM; // actual number of rows suitable for peeling
|
/external/llvm/include/llvm/MC/ |
H A D | MCInstrItineraries.h | 125 InstrItineraryData(const MCSchedModel *SM, const InstrStage *S, argument 127 : SchedModel(SM), Stages(S), OperandCycles(OS), Forwardings(F),
|
/external/llvm/lib/Target/Hexagon/ |
H A D | HexagonMachineScheduler.h | 57 VLIWResourceModel(const TargetMachine &TM, const TargetSchedModel *SM) : argument 58 SchedModel(SM), TotalPackets(0) {
|
/external/llvm/tools/llvm-mcmarkup/ |
H A D | llvm-mcmarkup.cpp | 71 SourceMgr &SM; member in class:MarkupParser 73 MarkupParser(MarkupLexer &lex, SourceMgr &SrcMgr) : Lex(lex), SM(SrcMgr) {} 84 SM.PrintMessage(Loc, SourceMgr::DK_Error, Msg);
|
/external/clang/include/clang/Lex/ |
H A D | LiteralSupport.h | 184 const SourceManager &SM; member in class:clang::StringLiteralParser 205 : SM(sm), Features(features), Target(target), Diags(diags),
|
/external/clang/lib/ARCMigrate/ |
H A D | TransUnbridgedCasts.cpp | 256 SourceManager &SM = Pass.Ctx.getSourceManager(); local 257 char PrevChar = *SM.getCharacterData(InsertLoc.getLocWithOffset(-1)); 283 SourceManager &SM = Pass.Ctx.getSourceManager(); local 287 std::tie(MacroBegin, MacroEnd) = SM.getImmediateExpansionRange(Loc); 289 SourceLocation InnerBegin = SM.getImmediateMacroCallerLoc(SubRange.getBegin()); 290 SourceLocation InnerEnd = SM.getImmediateMacroCallerLoc(SubRange.getEnd());
|
/external/clang/lib/Analysis/ |
H A D | ReachableCode.cpp | 115 static SourceLocation getTopMostMacro(SourceLocation Loc, SourceManager &SM) { argument 120 Loc = SM.getImmediateMacroCallerLoc(Loc); 139 SourceManager &SM = PP.getSourceManager(); local 140 SourceLocation TopL = getTopMostMacro(L, SM);
|
/external/clang/lib/CodeGen/ |
H A D | CGDeclCXX.cpp | 387 SourceManager &SM = Context.getSourceManager(); local 389 SM.getFileEntryForID(SM.getMainFileID())->getName()));
|
/external/clang/lib/Lex/ |
H A D | PreprocessingRecord.cpp | 41 PreprocessingRecord::PreprocessingRecord(SourceManager &SM) argument 42 : SourceMgr(SM), 67 SourceManager &SM) { 76 if (SM.isInFileID(SM.getFileLoc(Loc), FID)) 174 const SourceManager &SM; member in struct:__anon17951::PPEntityComp 176 explicit PPEntityComp(const SourceManager &SM) : SM(SM) { } argument 181 return SM 66 isPreprocessedEntityIfInFileID(PreprocessedEntity *PPE, FileID FID, SourceManager &SM) argument [all...] |
H A D | TokenLexer.cpp | 47 SourceManager &SM = PP.getSourceManager(); local 48 MacroStartSLocOffset = SM.getNextLocalOffset(); 60 MacroDefStart = SM.getExpansionLoc(Tokens[0].getLocation()); 61 MacroDefLength = Macro->getDefinitionLength(SM); 62 MacroExpansionStart = SM.createExpansionLoc(MacroDefStart, 425 SourceManager &SM = PP.getSourceManager(); local 454 SM.isBeforeInSLocAddrSpace(Tok.getLocation(), MacroStartSLocOffset)) { 457 instLoc = SM.createExpansionLoc(Tok.getLocation(), 615 SourceManager &SM = PP.getSourceManager(); local 617 SM 652 SourceManager &SM = PP.getSourceManager(); local 720 SourceManager &SM = PP.getSourceManager(); local 738 updateConsecutiveMacroArgTokens(SourceManager &SM, SourceLocation InstLoc, Token *&begin_tokens, Token * end_tokens) argument 804 SourceManager &SM = PP.getSourceManager(); local [all...] |
/external/clang/lib/Rewrite/Frontend/ |
H A D | InclusionRewriter.cpp | 41 SourceManager &SM; ///< Used to read and manage source files. member in class:__anon17971::InclusionRewriter 91 : PP(PP), SM(PP.getSourceManager()), OS(OS), PredefinesBuffer(nullptr), 148 LastInsertedFileChange->second.Id = FullSourceLoc(Loc, SM).getFileID(); 248 SM.getFileOffset(StartToken.getLocation()), EOL, Line, false); 259 SM.getFileOffset(DirectiveToken.getLocation()) + DirectiveToken.getLength(), 351 const MemoryBuffer &FromFile = *SM.getBuffer(FileId, &Invalid); 361 if (FileId == SM.getMainFileID() || FileId == PP.getPredefinesFileID()) 366 if (SM.getFileIDSize(FileId) == 0) 371 unsigned NextToWrite = SM.getFileOffset(RawLex.getSourceLocation()); 372 assert(SM 524 SourceManager &SM = PP.getSourceManager(); local [all...] |
/external/llvm/include/llvm/Support/ |
H A D | SourceMgr.h | 228 const SourceMgr *SM; member in class:llvm::SMDiagnostic 240 : SM(nullptr), LineNo(0), ColumnNo(0), Kind(SourceMgr::DK_Error) {} 243 : SM(nullptr), Filename(filename), LineNo(-1), ColumnNo(-1), Kind(Knd), 253 const SourceMgr *getSourceMgr() const { return SM; }
|
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64AsmPrinter.cpp | 51 StackMaps SM; member in class:__anon25931::AArch64AsmPrinter 57 MCInstLowering(OutContext, *Mang, *this), SM(*this), AArch64FI(nullptr), 70 void LowerSTACKMAP(MCStreamer &OutStreamer, StackMaps &SM, 72 void LowerPATCHPOINT(MCStreamer &OutStreamer, StackMaps &SM, 134 SM.serializeToStackMapSection(); 379 void AArch64AsmPrinter::LowerSTACKMAP(MCStreamer &OutStreamer, StackMaps &SM, argument 383 SM.recordStackMap(MI); 392 void AArch64AsmPrinter::LowerPATCHPOINT(MCStreamer &OutStreamer, StackMaps &SM, argument 394 SM.recordPatchPoint(MI); 505 return LowerSTACKMAP(OutStreamer, SM, *M [all...] |