Home
last modified time | relevance | path

Searched refs:SM (Results 1 – 25 of 443) sorted by relevance

12345678910>>...18

/external/clang/lib/Frontend/
DDiagnosticRenderer.cpp43 const SourceManager &SM, in getImmediateMacroName() argument
47 while (SM.isMacroArgExpansion(Loc)) in getImmediateMacroName()
48 Loc = SM.getImmediateExpansionRange(Loc).first; in getImmediateMacroName()
52 if (!SM.getFileEntryForID(SM.getFileID(SM.getSpellingLoc(Loc)))) in getImmediateMacroName()
58 Loc = SM.getSpellingLoc(SM.getImmediateExpansionRange(Loc).first); in getImmediateMacroName()
62 std::pair<FileID, unsigned> ExpansionInfo = SM.getDecomposedLoc(Loc); in getImmediateMacroName()
63 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getImmediateMacroName()
64 StringRef ExpansionBuffer = SM.getBufferData(ExpansionInfo.first); in getImmediateMacroName()
93 const SourceManager &SM, const LangOptions &LangOpts, in mergeFixits() argument
95 edit::Commit commit(SM, LangOpts); in mergeFixits()
[all …]
DTextDiagnostic.cpp680 const SourceManager *SM, in emitDiagnosticMessage() argument
686 emitDiagnosticLoc(Loc, PLoc, Level, Ranges, *SM); in emitDiagnosticMessage()
776 const SourceManager &SM) { in emitDiagnosticLoc() argument
779 FileID FID = SM.getFileID(Loc); in emitDiagnosticLoc()
781 const FileEntry* FE = SM.getFileEntryForID(FID); in emitDiagnosticLoc()
827 SM.getFileID(SM.getExpansionLoc(Loc)); in emitDiagnosticLoc()
836 SourceLocation B = SM.getExpansionLoc(RI->getBegin()); in emitDiagnosticLoc()
837 SourceLocation E = SM.getExpansionLoc(RI->getEnd()); in emitDiagnosticLoc()
845 E = SM.getExpansionRange(RI->getEnd()).second; in emitDiagnosticLoc()
847 std::pair<FileID, unsigned> BInfo = SM.getDecomposedLoc(B); in emitDiagnosticLoc()
[all …]
DVerifyDiagnosticConsumer.cpp53 SourceManager &SM; member in __anona8d917760111::VerifyFileTracker
56 VerifyFileTracker(VerifyDiagnosticConsumer &Verify, SourceManager &SM) in VerifyFileTracker() argument
57 : Verify(Verify), SM(SM) { } in VerifyFileTracker()
64 Verify.UpdateParsedFileStatus(SM, SM.getFileID(Loc), in FileChanged()
310 static bool ParseDirective(StringRef S, ExpectedData *ED, SourceManager &SM, in ParseDirective() argument
313 DiagnosticsEngine &Diags = PP ? PP->getDiagnostics() : SM.getDiagnostics(); in ParseDirective()
385 unsigned ExpectedLine = SM.getSpellingLineNumber(Pos, &Invalid); in ParseDirective()
389 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), ExpectedLine, 1); in ParseDirective()
394 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), Line, 1); in ParseDirective()
411 if (SM.translateFile(FE).isInvalid()) in ParseDirective()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DPlistDiagnostics.cpp86 const SourceManager &SM, in ReportControlFlow() argument
110 SM.getExpansionLoc(I->getStart().asRange().getBegin())); in ReportControlFlow()
111 EmitRange(o, SM, Lexer::getAsCharRange(StartEdge, SM, LangOpts), FM, in ReportControlFlow()
115 SourceRange EndEdge(SM.getExpansionLoc(I->getEnd().asRange().getBegin())); in ReportControlFlow()
116 EmitRange(o, SM, Lexer::getAsCharRange(EndEdge, SM, LangOpts), FM, in ReportControlFlow()
139 const SourceManager &SM, in ReportEvent() argument
158 EmitLocation(o, SM, L, FM, indent); in ReportEvent()
168 EmitRange(o, SM, in ReportEvent()
169 Lexer::getAsCharRange(SM.getExpansionRange(R), SM, LangOpts), in ReportEvent()
198 const FIDMap& FM, const SourceManager &SM,
[all …]
DIssueHash.cpp129 static std::string NormalizeLine(const SourceManager &SM, FullSourceLoc &L, in NormalizeLine() argument
133 StringRef Str = GetNthLineOfFile(SM.getBuffer(L.getFileID(), L), in NormalizeLine()
138 SM.translateLineCol(SM.getFileID(L), L.getExpansionLineNumber(), col); in NormalizeLine()
140 SM.getBuffer(SM.getFileID(StartOfLine), StartOfLine); in NormalizeLine()
144 const char *BufferPos = SM.getCharacterData(StartOfLine); in NormalizeLine()
147 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(StartOfLine)), LangOpts, in NormalizeLine()
155 LineBuff << std::string(SM.getCharacterData(Token.getLocation()), in NormalizeLine()
174 std::string clang::GetIssueString(const SourceManager &SM, in GetIssueString() argument
184 NormalizeLine(SM, IssueLoc, LangOpts) + Delimiter + BugType) in GetIssueString()
188 SmallString<32> clang::GetIssueHash(const SourceManager &SM, in GetIssueHash() argument
[all …]
/external/libcxx/test/std/re/re.submatch/re.submatch.members/
Dcompare_string_type.pass.cpp23 typedef std::sub_match<const CharT*> SM; in main() typedef
24 typedef SM::string_type string; in main()
25 SM sm = SM(); in main()
26 SM sm2 = SM(); in main()
37 typedef std::sub_match<const CharT*> SM; in main() typedef
38 typedef SM::string_type string; in main()
39 SM sm = SM(); in main()
40 SM sm2 = SM(); in main()
Dcompare_value_type_ptr.pass.cpp23 typedef std::sub_match<const CharT*> SM; in main() typedef
24 SM sm = SM(); in main()
25 SM sm2 = SM(); in main()
36 typedef std::sub_match<const CharT*> SM; in main() typedef
37 SM sm = SM(); in main()
38 SM sm2 = SM(); in main()
Dcompare_sub_match.pass.cpp23 typedef std::sub_match<const CharT*> SM; in main() typedef
24 SM sm = SM(); in main()
25 SM sm2 = SM(); in main()
39 typedef std::sub_match<const CharT*> SM; in main() typedef
40 SM sm = SM(); in main()
41 SM sm2 = SM(); in main()
Doperator_string.pass.cpp23 typedef std::sub_match<const CharT*> SM; in main() typedef
24 SM sm = SM(); in main()
25 SM::string_type str = sm; in main()
36 typedef std::sub_match<const CharT*> SM; in main() typedef
37 SM sm = SM(); in main()
38 SM::string_type str = sm; in main()
Dstr.pass.cpp23 typedef std::sub_match<const CharT*> SM; in main() typedef
24 SM sm = SM(); in main()
25 SM::string_type str = sm.str(); in main()
36 typedef std::sub_match<const CharT*> SM; in main() typedef
37 SM sm = SM(); in main()
38 SM::string_type str = sm.str(); in main()
/external/libcxx/test/std/re/re.submatch/
Dtypes.pass.cpp33 typedef std::sub_match<char*> SM; in main() typedef
34 static_assert((std::is_same<SM::iterator, char*>::value), ""); in main()
35 static_assert((std::is_same<SM::value_type, char>::value), ""); in main()
36 static_assert((std::is_same<SM::difference_type, std::ptrdiff_t>::value), ""); in main()
37 static_assert((std::is_same<SM::string_type, std::string>::value), ""); in main()
38 static_assert((std::is_convertible<SM*, std::pair<char*, char*>*>::value), ""); in main()
40 SM sm; in main()
46 typedef std::sub_match<wchar_t*> SM; in main() typedef
47 static_assert((std::is_same<SM::iterator, wchar_t*>::value), ""); in main()
48 static_assert((std::is_same<SM::value_type, wchar_t>::value), ""); in main()
[all …]
/external/clang/include/clang/Frontend/
DDiagnosticRenderer.h79 const SourceManager *SM,
85 const SourceManager &SM) = 0;
91 const SourceManager &SM) = 0;
94 const SourceManager &SM) = 0;
97 const SourceManager &SM) = 0;
100 const SourceManager &SM) = 0;
111 DiagnosticsEngine::Level Level, const SourceManager &SM);
112 void emitIncludeStackRecursively(SourceLocation Loc, const SourceManager &SM);
113 void emitImportStack(SourceLocation Loc, const SourceManager &SM);
115 const SourceManager &SM);
[all …]
DTextDiagnostic.h82 const SourceManager *SM,
88 const SourceManager &SM) override;
94 const SourceManager &SM) override { in emitCodeContext() argument
95 emitSnippetAndCaret(Loc, Level, Ranges, Hints, SM); in emitCodeContext()
99 const SourceManager &SM) override;
103 const SourceManager &SM) override;
107 const SourceManager &SM) override;
113 const SourceManager &SM);
117 void emitParseableFixits(ArrayRef<FixItHint> Hints, const SourceManager &SM);
/external/llvm/utils/FileCheck/
DFileCheck.cpp128 SourceMgr &SM,
142 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer,
151 bool AddRegExToRegEx(StringRef RS, unsigned &CurParen, SourceMgr &SM);
169 size_t FindRegexVarEnd(StringRef Str, SourceMgr &SM);
175 SourceMgr &SM, in ParsePattern() argument
187 SM.PrintMessage(PatternLoc, SourceMgr::DK_Error, in ParsePattern()
213 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()), in ParsePattern()
226 if (AddRegExToRegEx(PatternStr.substr(2, End-2), CurParen, SM)) in ParsePattern()
242 size_t End = FindRegexVarEnd(PatternStr.substr(2), SM); in ParsePattern()
245 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()), in ParsePattern()
[all …]
/external/clang/lib/Frontend/Rewrite/
DRewriteMacros.cpp64 SourceManager &SM = PP.getSourceManager(); in LexRawTokensFromMainFile() local
68 const llvm::MemoryBuffer *FromFile = SM.getBuffer(SM.getMainFileID()); in LexRawTokensFromMainFile()
69 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in LexRawTokensFromMainFile()
91 SourceManager &SM = PP.getSourceManager(); in RewriteMacrosInInput() local
94 Rewrite.setSourceMgr(SM, PP.getLangOpts()); in RewriteMacrosInInput()
95 RewriteBuffer &RB = Rewrite.getEditBuffer(SM.getMainFileID()); in RewriteMacrosInInput()
115 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
118 if (!SM.isWrittenInMainFile(PPLoc)) { in RewriteMacrosInInput()
134 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput()
140 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput()
[all …]
/external/clang/tools/libclang/
DCXSourceLocation.cpp217 const SourceManager &SM = in clang_Location_isInSystemHeader() local
219 return SM.isInSystemHeader(Loc); in clang_Location_isInSystemHeader()
228 const SourceManager &SM = in clang_Location_isFromMainFile() local
230 return SM.isWrittenInMainFile(Loc); in clang_Location_isFromMainFile()
251 const SourceManager &SM = in clang_getExpansionLocation() local
253 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in clang_getExpansionLocation()
257 FileID fileID = SM.getFileID(ExpansionLoc); in clang_getExpansionLocation()
259 const SrcMgr::SLocEntry &sloc = SM.getSLocEntry(fileID, &Invalid); in clang_getExpansionLocation()
266 *file = const_cast<FileEntry *>(SM.getFileEntryForSLocEntry(sloc)); in clang_getExpansionLocation()
268 *line = SM.getExpansionLineNumber(ExpansionLoc); in clang_getExpansionLocation()
[all …]
DCIndexHigh.cpp135 static SourceLocation getFileSpellingLoc(SourceManager &SM, in getFileSpellingLoc() argument
139 SourceLocation SpellLoc = SM.getImmediateSpellingLoc(Loc); in getFileSpellingLoc()
141 return getFileSpellingLoc(SM, SpellLoc, isMacroArg); in getFileSpellingLoc()
143 isMacroArg = SM.isMacroArgExpansion(Loc); in getFileSpellingLoc()
189 SourceManager &SM = Ctx.getSourceManager(); in findFileIdRefVisit() local
193 Loc = getFileSpellingLoc(SM, Loc, isMacroArg); in findFileIdRefVisit()
198 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc); in findFileIdRefVisit()
219 SourceManager &SM = cxtu::getASTUnit(TU)->getSourceManager(); in findIdRefsInFile() local
221 FileID FID = SM.translateFile(File); in findIdRefsInFile()
235 SourceRange Range(SM.getLocForStartOfFile(FID), SM.getLocForEndOfFile(FID)); in findIdRefsInFile()
[all …]
/external/clang/lib/Analysis/
DCFGStmtMap.cpp28 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 …]
/external/clang/include/clang/Basic/
DPlistSupport.h22 const SourceManager &SM, SourceLocation L) { in AddFID() argument
23 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in AddFID()
31 inline unsigned GetFID(const FIDMap &FIDs, const SourceManager &SM, in GetFID() argument
33 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); in GetFID()
90 inline void EmitLocation(raw_ostream &o, const SourceManager &SM, in EmitLocation() argument
94 FullSourceLoc Loc(SM.getExpansionLoc(L), const_cast<SourceManager &>(SM)); in EmitLocation()
102 EmitInteger(o, GetFID(FM, SM, Loc)) << '\n'; in EmitLocation()
106 inline void EmitRange(raw_ostream &o, const SourceManager &SM, in EmitRange() argument
112 EmitLocation(o, SM, R.getBegin(), FM, indent + 1); in EmitRange()
113 EmitLocation(o, SM, R.getEnd(), FM, indent + 1); in EmitRange()
/external/llvm/unittests/Support/
DYAMLParserTest.cpp34 SourceMgr SM; in ExpectParseError() local
35 yaml::Stream Stream(Input, SM); in ExpectParseError()
36 SM.setDiagHandler(SuppressDiagnosticsOutput); in ExpectParseError()
43 SourceMgr SM; in ExpectParseSuccess() local
44 yaml::Stream Stream(Input, SM); in ExpectParseSuccess()
161 SourceMgr SM; in TEST() local
162 yaml::Stream Stream("test: |\n Hello\n World\n", SM); in TEST()
191 SourceMgr SM; in ExpectCanParseString() local
192 yaml::Stream Stream(StringInArray, SM); in ExpectCanParseString()
228 SourceMgr SM; in TEST() local
[all …]
/external/clang/lib/Basic/
DSourceLocation.cpp28 Loc.print(OS, SM); in print()
38 void SourceLocation::print(raw_ostream &OS, const SourceManager &SM)const{ in print()
45 PresumedLoc PLoc = SM.getPresumedLoc(*this); in print()
57 SM.getExpansionLoc(*this).print(OS, SM); in print()
60 SM.getSpellingLoc(*this).print(OS, SM); in print()
65 SourceLocation::printToString(const SourceManager &SM) const { in printToString()
68 print(OS, SM); in printToString()
72 LLVM_DUMP_METHOD void SourceLocation::dump(const SourceManager &SM) const { in dump()
73 print(llvm::errs(), SM); in dump()
/external/clang/lib/CodeGen/
DCoverageMappingGen.cpp78 SourceManager &SM; member in __anon06f642770111::CoverageMappingBuilder
92 CoverageMappingBuilder(CoverageMappingModuleGen &CVM, SourceManager &SM, in CoverageMappingBuilder() argument
94 : CVM(CVM), SM(SM), LangOpts(LangOpts) {} in CoverageMappingBuilder()
101 Lexer::MeasureTokenLength(SM.getSpellingLoc(Loc), SM, LangOpts); in getPreciseTokenLocEnd()
108 return Loc.getLocWithOffset(-SM.getFileOffset(Loc)); in getStartOfFileOrMacro()
109 return SM.getLocForStartOfFile(SM.getFileID(Loc)); in getStartOfFileOrMacro()
115 return Loc.getLocWithOffset(SM.getFileIDSize(SM.getFileID(Loc)) - in getEndOfFileOrMacro()
116 SM.getFileOffset(Loc)); in getEndOfFileOrMacro()
117 return SM.getLocForEndOfFile(SM.getFileID(Loc)); in getEndOfFileOrMacro()
122 return Loc.isMacroID() ? SM.getImmediateExpansionRange(Loc).first in getIncludeOrExpansionLoc()
[all …]
/external/clang/lib/Edit/
DCommit.cpp19 SourceLocation Commit::Edit::getFileLocation(SourceManager &SM) const { in getFileLocation()
20 SourceLocation Loc = SM.getLocForStartOfFile(Offset.getFID()); in getFileLocation()
26 CharSourceRange Commit::Edit::getFileRange(SourceManager &SM) const { in getFileRange()
27 SourceLocation Loc = getFileLocation(SM); in getFileRange()
31 CharSourceRange Commit::Edit::getInsertFromRange(SourceManager &SM) const { in getInsertFromRange()
32 SourceLocation Loc = SM.getLocForStartOfFile(InsertFromRangeOffs.getFID()); in getInsertFromRange()
227 const SourceManager &SM = SourceMgr; in canInsert() local
228 while (SM.isMacroArgExpansion(loc)) in canInsert()
229 loc = SM.getImmediateSpellingLoc(loc); in canInsert()
235 if (SM.isInSystemHeader(loc)) in canInsert()
[all …]
/external/llvm/lib/Target/NVPTX/
DNVPTX.td23 // - We use the SM version number instead of explicit feature table.
28 // SM Versions
30 "Target SM 2.0">;
32 "Target SM 2.1">;
34 "Target SM 3.0">;
36 "Target SM 3.2">;
38 "Target SM 3.5">;
40 "Target SM 3.7">;
42 "Target SM 5.0">;
44 "Target SM 5.2">;
[all …]
/external/clang/lib/Rewrite/
DHTMLRewrite.cpp34 SourceManager &SM = R.getSourceMgr(); in HighlightRange() local
35 B = SM.getExpansionLoc(B); in HighlightRange()
36 E = SM.getExpansionLoc(E); in HighlightRange()
37 FileID FID = SM.getFileID(B); in HighlightRange()
38 assert(SM.getFileID(E) == FID && "B/E not in the same file!"); in HighlightRange()
40 unsigned BOffset = SM.getFileOffset(B); in HighlightRange()
41 unsigned EOffset = SM.getFileOffset(E); in HighlightRange()
47 const char *BufferStart = SM.getBufferData(FID, &Invalid).data(); in HighlightRange()
360 const SourceManager &SM = PP.getSourceManager(); in SyntaxHighlight() local
361 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); in SyntaxHighlight()
[all …]

12345678910>>...18