Searched defs:SM (Results 26 - 50 of 141) sorted by relevance

123456

/external/clang/lib/Basic/
H A DSourceLocation.cpp28 Loc.print(OS, SM);
38 void SourceLocation::print(raw_ostream &OS, const SourceManager &SM)const{
45 PresumedLoc PLoc = SM.getPresumedLoc(*this);
57 SM.getExpansionLoc(*this).print(OS, SM);
60 SM.getSpellingLoc(*this).print(OS, SM);
65 SourceLocation::printToString(const SourceManager &SM) const {
68 print(OS, SM);
72 LLVM_DUMP_METHOD void SourceLocation::dump(const SourceManager &SM) cons
73 print(llvm::errs(), SM); local
[all...]
/external/clang/lib/Lex/
H A DPPConditionalDirectiveRecord.cpp19 PPConditionalDirectiveRecord::PPConditionalDirectiveRecord(SourceManager &SM) argument
20 : SourceMgr(SM) {
H A DTokenConcatenation.cpp54 SourceManager &SM = PP.getSourceManager();
55 const char *Ptr = SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation()));
129 SourceManager &SM = PP.getSourceManager(); local
130 return *SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation()));
159 SourceManager &SM = PP.getSourceManager(); local
160 SourceLocation PrevSpellLoc = SM.getSpellingLoc(PrevTok.getLocation());
161 SourceLocation SpellLoc = SM.getSpellingLoc(Tok.getLocation());
/external/clang/lib/Parse/
H A DParseAST.cpp64 const SourceManager &SM = P.getPreprocessor().getSourceManager(); local
66 const char *Spelling = SM.getCharacterData(Tok.getLocation(), &Invalid);
/external/clang/lib/StaticAnalyzer/Checkers/
H A DAnalyzerStatsChecker.cpp45 const SourceManager &SM = B.getSourceManager(); local
93 PresumedLoc Loc = SM.getPresumedLoc(D->getLocation());
116 output.str(), PathDiagnosticLocation(D, SM));
133 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC));
H A DObjCUnusedIVarsChecker.cpp98 SourceManager &SM) {
102 if (SM.getFileID(L) == FID)
152 SourceManager &SM = BR.getSourceManager();
153 Scan(M, D->getDeclContext(), SM.getFileID(D->getLocation()), SM);
97 Scan(IvarUsageMap &M, const DeclContext *C, const FileID FID, SourceManager &SM) argument
H A DUnreachableCodeChecker.cpp164 const SourceManager &SM = B.getSourceManager(); local
165 if (SM.isInSystemHeader(SL) || SM.isInExternCSystemHeader(SL))
H A DStackAddrEscapeChecker.cpp49 SourceManager &SM = Ctx.getSourceManager(); local
58 << SM.getExpansionLineNumber(CL->getLocStart())
67 << SM.getExpansionLineNumber(L);
74 << SM.getExpansionLineNumber(L);
/external/llvm/tools/llvm-mc/
H A DDisassembler.cpp55 SourceMgr &SM, raw_ostream &Out,
73 SM.PrintMessage(SMLoc::getFromPointer(Bytes[Index].second),
86 SM.PrintMessage(SMLoc::getFromPointer(Bytes[Index].second),
129 SourceMgr &SM) {
143 SM.PrintMessage(SMLoc::getFromPointer(Value.data()), SourceMgr::DK_Error,
162 SourceMgr &SM,
202 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error,
211 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error,
221 ErrorOccurred |= ByteArrayFromString(ByteArray, Str, SM);
224 ErrorOccurred |= PrintInsts(*DisAsm, ByteArray, SM, Ou
53 PrintInsts(const MCDisassembler &DisAsm, const ByteArrayTy &Bytes, SourceMgr &SM, raw_ostream &Out, MCStreamer &Streamer, bool InAtomicBlock, const MCSubtargetInfo &STI) argument
127 ByteArrayFromString(ByteArrayTy &ByteArray, StringRef &Str, SourceMgr &SM) argument
157 disassemble(const Target &T, const std::string &Triple, MCSubtargetInfo &STI, MCStreamer &Streamer, MemoryBuffer &Buffer, SourceMgr &SM, raw_ostream &Out) argument
[all...]
/external/llvm/unittests/Support/
H A DSourceMgrTest.cpp21 SourceMgr SM; member in class:__anon26548::SourceMgrTest
27 MainBufferID = SM.AddNewSourceBuffer(MainBuffer, llvm::SMLoc());
32 SM.getMemoryBuffer(MainBufferID)->getBufferStart() + Offset);
43 SM.PrintMessage(OS, Loc, Kind, Msg, Ranges, FixIts);
H A DYAMLParserTest.cpp34 SourceMgr SM; local
35 yaml::Stream Stream(Input, SM);
36 SM.setDiagHandler(SuppressDiagnosticsOutput);
43 SourceMgr SM; local
44 yaml::Stream Stream(Input, SM);
148 SourceMgr SM; local
149 yaml::Stream Stream(StringInArray, SM);
185 SourceMgr SM; local
186 yaml::Stream Stream("[\"1\", \"2\", \"3\", \"4\", \"5\", \"6\"]", SM);
193 SourceMgr SM; local
206 SourceMgr SM; local
[all...]
/external/clang/include/clang/AST/
H A DRawCommentList.h166 const SourceManager &SM; member in class:clang::BeforeThanCompare
169 explicit BeforeThanCompare(const SourceManager &SM) : SM(SM) { } argument
172 return SM.isBeforeInTranslationUnit(LHS.getLocStart(), RHS.getLocStart());
/external/clang/include/clang/Basic/
H A DPlistSupport.h23 const SourceManager &SM, SourceLocation L) {
24 FileID FID = SM.getFileID(SM.getExpansionLoc(L));
32 inline unsigned GetFID(const FIDMap &FIDs, const SourceManager &SM, argument
34 FileID FID = SM.getFileID(SM.getExpansionLoc(L));
91 inline void EmitLocation(raw_ostream &o, const SourceManager &SM, argument
95 FullSourceLoc Loc(SM.getExpansionLoc(L), const_cast<SourceManager &>(SM));
99 extend ? Lexer::MeasureTokenLength(Loc, SM, LangOpt
22 AddFID(FIDMap &FIDs, SmallVectorImpl<FileID> &V, const SourceManager &SM, SourceLocation L) argument
111 EmitRange(raw_ostream &o, const SourceManager &SM, const LangOptions &LangOpts, CharSourceRange R, const FIDMap &FM, unsigned indent) argument
[all...]
/external/clang/lib/Frontend/
H A DHeaderIncludeGen.cpp20 SourceManager &SM; member in class:__anon17924::HeaderIncludesCallback
33 : SM(PP->getSourceManager()), OutputFile(OutputFile_),
84 PresumedLoc UserLoc = SM.getPresumedLoc(Loc);
/external/clang/unittests/Tooling/
H A DCommentHandlerTest.cpp41 SourceManager &SM = PP.getSourceManager(); local
42 std::string C(SM.getCharacterData(Start),
43 SM.getCharacterData(Loc.getEnd()));
46 unsigned CLine = SM.getSpellingLineNumber(Start, &Invalid);
49 unsigned CCol = SM.getSpellingColumnNumber(Start, &Invalid);
/external/llvm/lib/AsmParser/
H A DLLLexer.h33 SourceMgr &SM; member in class:llvm::LLLexer
46 explicit LLLexer(MemoryBuffer *StartBuf, SourceMgr &SM, SMDiagnostic &,
/external/llvm/lib/TableGen/
H A DTGLexer.cpp29 TGLexer::TGLexer(SourceMgr &SM) : SrcMgr(SM) { argument
/external/llvm/utils/yaml-bench/
H A DYAMLBench.cpp161 llvm::SourceMgr SM; local
162 llvm::yaml::Stream stream(JSONText, SM);
/external/clang/include/clang/Edit/
H A DCommit.h42 SourceLocation getFileLocation(SourceManager &SM) const;
43 CharSourceRange getFileRange(SourceManager &SM) const;
44 CharSourceRange getInsertFromRange(SourceManager &SM) const;
60 Commit(const SourceManager &SM, const LangOptions &LangOpts, argument
62 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), Editor(nullptr),
/external/clang/include/clang/Frontend/
H A DVerifyDiagnosticConsumer.h224 void setSourceManager(SourceManager &SM) { argument
225 assert((!SrcManager || SrcManager == &SM) && "SourceManager changed!");
226 SrcManager = &SM;
267 void UpdateParsedFileStatus(SourceManager &SM, FileID FID, ParsedStatus PS);
/external/clang/include/clang/Rewrite/Core/
H A DRewriter.h152 explicit Rewriter(SourceManager &SM, const LangOptions &LO) argument
153 : SourceMgr(&SM), LangOpts(&LO) {}
156 void setSourceMgr(SourceManager &SM, const LangOptions &LO) { argument
157 SourceMgr = &SM;
/external/clang/lib/ARCMigrate/
H A DTransGCAttrs.cpp93 SourceManager &SM = Ctx.getSourceManager(); local
95 Loc = SM.getImmediateExpansionRange(Loc).first;
99 SM.getSpellingLoc(TL.getAttrEnumOperandLoc()),
100 Buf, SM, Ctx.getLangOpts(), &Invalid);
177 SourceManager &SM = MigrateCtx.Pass.Ctx.getSourceManager();
178 return SM.isInFileID(SM.getExpansionLoc(Loc), SM.getMainFileID());
H A DTransProtectedScope.cpp97 SourceManager &SM; member in class:__anon17699::ProtectedScopeFixer
104 SM(Pass.Ctx.getSourceManager()) {
193 return !SM.isBeforeInTranslationUnit(Loc, R.getBegin()) &&
194 SM.isBeforeInTranslationUnit(Loc, R.getEnd());
/external/clang/lib/AST/
H A DRawCommentList.cpp165 static bool onlyWhitespaceBetween(SourceManager &SM, argument
168 std::pair<FileID, unsigned> Loc1Info = SM.getDecomposedLoc(Loc1);
169 std::pair<FileID, unsigned> Loc2Info = SM.getDecomposedLoc(Loc2);
176 const char *Buffer = SM.getBufferData(Loc1Info.first, &Invalid).data();
/external/clang/lib/Edit/
H A DCommit.cpp19 SourceLocation Commit::Edit::getFileLocation(SourceManager &SM) const {
20 SourceLocation Loc = SM.getLocForStartOfFile(Offset.getFID());
26 CharSourceRange Commit::Edit::getFileRange(SourceManager &SM) const {
27 SourceLocation Loc = getFileLocation(SM);
31 CharSourceRange Commit::Edit::getInsertFromRange(SourceManager &SM) const {
32 SourceLocation Loc = SM.getLocForStartOfFile(InsertFromRangeOffs.getFID());
227 const SourceManager &SM = SourceMgr; local
228 while (SM.isMacroArgExpansion(loc))
229 loc = SM.getImmediateSpellingLoc(loc);
235 if (SM
258 const SourceManager &SM = SourceMgr; local
297 const SourceManager &SM = SourceMgr; local
[all...]

Completed in 3851 milliseconds

123456