Searched refs:SM (Results 76 - 100 of 185) sorted by relevance

12345678

/external/clang/include/clang/Basic/
H A DSourceLocation.h173 void print(raw_ostream &OS, const SourceManager &SM) const;
174 void dump(const SourceManager &SM) const;
277 explicit FullSourceLoc(SourceLocation Loc, const SourceManager &SM) argument
278 : SourceLocation(Loc), SrcMgr(&SM) {}
H A DSourceManager.h174 const SourceManager &SM,
1572 SourceManager &SM;
1575 explicit BeforeThanCompare(SourceManager &SM) : SM(SM) { }
1578 return SM.isBeforeInTranslationUnit(LHS, RHS);
1585 SourceManager &SM;
1588 explicit BeforeThanCompare(SourceManager &SM) : SM(SM) { }
[all...]
/external/clang/unittests/Tooling/
H A DRefactoringTest.cpp217 clang::SourceManager *SM; member in class:clang::tooling::__anon4861::TestVisitor
238 Visitor->SM = &compiler.getSourceManager();
261 Replace = Replacement(*SM, Record, "");
284 Replace = Replacement(*SM, Call, "");
H A DTestVisitor.h189 void UpdateFor(StringRef Name, FullSourceLoc Location, SourceManager &SM) { argument
196 Location.print(Stream, SM);
/external/apache-http/src/org/apache/http/impl/cookie/
H A DRFC2965Spec.java47 import org.apache.http.cookie.SM;
119 if (header.getName().equals(SM.SET_COOKIE2)) {
251 buffer.append(SM.COOKIE2);
H A DRFC2109Spec.java45 import org.apache.http.cookie.SM;
159 buffer.append(SM.COOKIE);
/external/clang/lib/ARCMigrate/
H A DTransEmptyStatementsAndDealloc.cpp45 SourceManager &SM = Ctx.getSourceManager();
48 BeforeThanCompare<SourceLocation>(SM));
58 if (!SM.isInSameSLocAddrSpace(AfterMacroLoc, SemiLoc, &RelOffs))
H A DTransAutoreleasePool.cpp289 SourceManager &SM = Ctx.getSourceManager();
290 if (SM.isBeforeInTranslationUnit(loc, ScopeRange.getBegin()))
292 return SM.isBeforeInTranslationUnit(loc, ScopeRange.getEnd());
/external/clang/lib/StaticAnalyzer/Checkers/
H A DUnreachableCodeChecker.cpp161 const SourceManager &SM = B.getSourceManager(); local
162 if (SM.isInSystemHeader(SL) || SM.isInExternCSystemHeader(SL))
/external/srec/tools/cmd/
H A Dsrecres2utd.pl234 open(SM,"<$semfile") || die "error: opening $semfile\n";
235 while(<SM>) {
248 close(SM);
/external/llvm/utils/TableGen/
H A DDAGISelMatcherOpt.cpp474 if (ScopeMatcher *SM = dyn_cast<ScopeMatcher>(PrevMatcher)) {
475 SM->setNumChildren(SM->getNumChildren()+1);
476 SM->resetChild(SM->getNumChildren()-1, MatcherWithoutCTM);
H A DDAGISelMatcherEmitter.cpp144 const ScopeMatcher *SM = cast<ScopeMatcher>(N); local
145 assert(SM->getNext() == 0 && "Shouldn't have next after scope");
150 for (unsigned i = 0, e = SM->getNumChildren(); i != e; ++i) {
176 ChildSize = EmitMatcherList(SM->getChild(i), Indent+1,
187 OS.PadToColumn(CommentIndent) << "// " << SM->getNumChildren()
717 if (const ScopeMatcher *SM = dyn_cast<ScopeMatcher>(M)) {
718 for (unsigned i = 0, e = SM->getNumChildren(); i != e; ++i)
719 BuildHistogram(SM->getChild(i), OpcodeFreq);
/external/clang/lib/Lex/
H A DLiteralSupport.cpp1096 : SM(PP.getSourceManager()), Features(PP.getLangOpts()),
1186 Lexer::getSpelling(StringToks[i], ThisTokBuf, SM, Features,
1293 FullSourceLoc(StringToks[i].getLocation(), SM),
1300 FullSourceLoc(StringToks[i].getLocation(), SM),
1383 Diag(Diags, Features, FullSourceLoc(Tok.getLocation(), SM), TokBegin,
1409 unsigned TokLen = Lexer::getSpelling(Tok, SpellingPtr, SM, Features,
1467 FullSourceLoc(Tok.getLocation(), SM),
/external/clang/lib/StaticAnalyzer/Core/
H A DBugReporter.cpp417 static void CompactPathDiagnostic(PathPieces &path, const SourceManager& SM);
924 SourceManager &SM = PDB.getSourceManager(); local
925 SourceLocation ContainerRBeg = SM.getExpansionLoc(ContainerR.getBegin());
926 SourceLocation ContainerREnd = SM.getExpansionLoc(ContainerR.getEnd());
927 SourceLocation ContaineeRBeg = SM.getExpansionLoc(ContaineeR.getBegin());
928 SourceLocation ContaineeREnd = SM.getExpansionLoc(ContaineeR.getEnd());
930 unsigned ContainerBegLine = SM.getExpansionLineNumber(ContainerRBeg);
931 unsigned ContainerEndLine = SM.getExpansionLineNumber(ContainerREnd);
932 unsigned ContaineeBegLine = SM.getExpansionLineNumber(ContaineeRBeg);
933 unsigned ContaineeEndLine = SM
1151 const SourceManager& SM = PDB.getSourceManager(); local
1758 CompactPathDiagnostic(PathPieces &path, const SourceManager& SM) argument
[all...]
/external/clang/lib/Frontend/
H A DCacheTokens.cpp469 SourceManager &SM = PP.getSourceManager(); local
472 for (SourceManager::fileinfo_iterator I = SM.fileinfo_begin(),
473 E = SM.fileinfo_end(); I != E; ++I) {
481 const llvm::MemoryBuffer *B = C.getBuffer(PP.getDiagnostics(), SM);
484 FileID FID = SM.createFileID(FE, SourceLocation(), SrcMgr::C_User);
485 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID);
486 Lexer L(FID, FromFile, SM, LOpts);
H A DPrintPreprocessedOutput.cpp83 SourceManager &SM; member in class:__anon113::PrintPPOutputPPCallbacks
101 : PP(pp), SM(PP.getSourceManager()),
141 PresumedLoc PLoc = SM.getPresumedLoc(Loc);
242 SourceManager &SourceMgr = SM;
427 unsigned ColNo = SM.getExpansionColumnNumber(Tok.getLocation());
/external/clang/tools/libclang/
H A DIndexingContext.cpp629 SourceManager &SM = Ctx->getSourceManager();
630 SourceLocation FileLoc = SM.getFileLoc(Loc);
631 FileID FID = SM.getFileID(FileLoc);
632 return SM.getFileEntryForID(FID) == 0;
707 SourceManager &SM = Ctx->getSourceManager();
710 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(SM.getFileLoc(Loc));
715 const FileEntry *FE = SM.getFileEntryForID(FID);
805 SourceManager &SM = Ctx->getSourceManager();
806 Loc = SM
[all...]
H A DCIndex.cpp76 static RangeComparisonResult RangeCompare(SourceManager &SM, argument
82 SM.isBeforeInTranslationUnit(R1.getEnd(), R2.getBegin()))
85 SM.isBeforeInTranslationUnit(R2.getEnd(), R1.getBegin()))
92 static RangeComparisonResult LocationCompare(SourceManager &SM, argument
98 if (SM.isBeforeInTranslationUnit(L, R.getBegin()))
100 if (SM.isBeforeInTranslationUnit(R.getEnd(), L))
111 CXSourceRange cxloc::translateSourceRange(const SourceManager &SM, argument
117 if (EndLoc.isValid() && EndLoc.isMacroID() && !SM.isMacroArgExpansion(EndLoc))
118 EndLoc = SM.getExpansionRange(EndLoc).second;
120 unsigned Length = Lexer::MeasureTokenLength(SM
200 SourceManager &SM = Visitor.getASTUnit()->getSourceManager(); local
222 SourceManager &SM = Unit->getSourceManager(); local
268 SourceManager &SM = Unit->getSourceManager(); local
364 SourceManager &SM = AU->getSourceManager(); local
880 addRangedDeclsInContainer(DeclIt *DI_current, DeclIt DE_current, SourceManager &SM, SourceLocation EndLoc, SmallVectorImpl<Decl *> &Decls) argument
902 SourceManager &SM; member in struct:__anon4830::ContainerDeclsSort
927 SourceManager &SM = AU->getSourceManager(); local
3652 GetCursorData(SourceManager &SM, SourceLocation tokenBegin, CXCursor &outputCursor) argument
4579 SourceManager &SM = FD->getASTContext().getSourceManager(); local
5225 SourceManager &SM; member in class:__anon4835::MarkMacroArgTokensVisitor
5231 MarkMacroArgTokensVisitor(SourceManager &SM, CXToken *tokens, unsigned numTokens) argument
[all...]
H A DIndexing.cpp58 SourceManager &SM = PP.getSourceManager();
59 SourceLocation MainFileLoc = SM.getLocForStartOfFile(SM.getMainFileID());
63 IndexCtx.enteredMainFile(SM.getFileEntryForID(SM.getMainFileID()));
/external/clang/lib/Rewrite/Frontend/
H A DRewriteObjC.cpp64 SourceManager *SM; member in class:__anon152::RewriteObjC
603 SM = &Context->getSourceManager();
633 MainFileID = SM->getMainFileID();
634 const llvm::MemoryBuffer *MainBuf = SM->getBuffer(MainFileID);
653 Loc = SM->getExpansionLoc(Loc);
723 if (SM->isFromMainFile(Loc))
732 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID);
733 StringRef MainBuf = SM->getBufferData(MainFileID);
774 const char *startBuf = SM->getCharacterData(startLoc);
904 const char *startBuf = SM
[all...]
H A DRewriteModernObjC.cpp64 SourceManager *SM; member in class:__anon149::RewriteModernObjC
623 SM = &Context->getSourceManager();
653 MainFileID = SM->getMainFileID();
654 const llvm::MemoryBuffer *MainBuf = SM->getBuffer(MainFileID);
673 Loc = SM->getExpansionLoc(Loc);
750 if (SM->isFromMainFile(Loc))
759 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID);
760 StringRef MainBuf = SM->getBufferData(MainFileID);
874 const char *startBuf = SM->getCharacterData(startLoc);
1010 const char *startBuf = SM
[all...]
/external/llvm/lib/Support/
H A DYAMLParser.cpp254 Scanner(const StringRef Input, SourceMgr &SM);
264 SM.PrintMessage(Loc, Kind, Message, Ranges);
463 SourceMgr &SM; member in class:llvm::yaml::Scanner
540 SourceMgr SM; local
541 Scanner scanner(Input, SM);
621 llvm::SourceMgr SM; local
622 llvm::yaml::Scanner scanner(Input, SM);
697 : SM(sm)
706 SM.AddNewSourceBuffer(InputBuffer, SMLoc());
1524 Stream::Stream(StringRef Input, SourceMgr &SM) argument
[all...]
/external/llvm/utils/yaml-bench/
H A DYAMLBench.cpp147 llvm::SourceMgr SM; local
148 llvm::yaml::Stream stream(JSONText, SM);
/external/clang/lib/StaticAnalyzer/Frontend/
H A DAnalysisConsumer.cpp221 SourceManager &SM = Mgr->getASTContext().getSourceManager();
222 PresumedLoc Loc = SM.getPresumedLoc(D->getLocation());
528 SourceManager &SM = Ctx->getSourceManager();
529 SourceLocation SL = SM.getExpansionLoc(D->getLocation());
530 if (!Opts->AnalyzeAll && !SM.isFromMainFile(SL))
/external/clang/include/clang/Frontend/
H A DASTUnit.h193 SourceRange getSourceRange(const SourceManager &SM) const {
194 SourceLocation FileLoc = SM.getLocForStartOfFile(SM.getPreambleFileID());

Completed in 3209 milliseconds

12345678