|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
tools/clang/include/clang/AST/CommentParser.h 23 class SourceManager;
tools/clang/include/clang/AST/DeclBase.h 65 class SourceManager;
tools/clang/include/clang/AST/PrettyDeclStackTrace.h 25 class SourceManager;
tools/clang/include/clang/AST/PrettyPrinter.h 22 class SourceManager;
tools/clang/include/clang/AST/Stmt.h 55 class SourceManager;
tools/clang/include/clang/Analysis/Analyses/LiveVariables.h 26 class SourceManager;
tools/clang/include/clang/Analysis/PathDiagnostic.h 51 class SourceManager;
tools/clang/include/clang/Basic/Diagnostic.h 48 class SourceManager;
tools/clang/include/clang/Basic/SourceLocation.h 33 class SourceManager;
tools/clang/include/clang/Basic/SourceManager.h 64 class SourceManager;
tools/clang/include/clang/Basic/TargetInfo.h 49 class SourceManager;
tools/clang/include/clang/Edit/Commit.h 23 class SourceManager;
tools/clang/include/clang/Edit/EditedSource.h 28 class SourceManager;
tools/clang/include/clang/Format/Format.h 33 class SourceManager;
tools/clang/include/clang/Frontend/CompilerInstance.h 51 class SourceManager;
tools/clang/include/clang/Frontend/DiagnosticRenderer.h 30 class SourceManager;
tools/clang/include/clang/Frontend/VerifyDiagnosticConsumer.h 29 class SourceManager;
tools/clang/include/clang/Index/USRGeneration.h 21 class SourceManager;
tools/clang/include/clang/Lex/Lexer.h 38 class SourceManager;
tools/clang/include/clang/Lex/LiteralSupport.h 33 class SourceManager;
tools/clang/include/clang/Lex/MacroInfo.h 34 class SourceManager;
tools/clang/include/clang/Lex/ModuleMap.h 42 class SourceManager;
tools/clang/include/clang/Lex/PreprocessingRecord.h 55 class SourceManager;
tools/clang/include/clang/Lex/ScratchBuffer.h 19 class SourceManager;
tools/clang/include/clang/Rewrite/Core/Rewriter.h 27 class SourceManager;
tools/clang/include/clang/Rewrite/Core/TokenRewriter.h 28 class SourceManager;
tools/clang/include/clang/Rewrite/Frontend/FixItRewriter.h 31 class SourceManager;
tools/clang/include/clang/Serialization/ASTReader.h 110 class SourceManager;
tools/clang/include/clang/Serialization/ASTWriter.h 89 class SourceManager;
tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h 51 class SourceManager;
tools/clang/include/clang/StaticAnalyzer/Core/IssueHash.h 15 class SourceManager;
tools/clang/include/clang/Tooling/Core/Replacement.h 39 class SourceManager;
tools/clang/include/clang/Tooling/Refactoring/Extract/SourceExtraction.h 17 class SourceManager;
tools/clang/include/clang/Tooling/Tooling.h 57 class SourceManager;
tools/clang/lib/CodeGen/CoverageMappingGen.h 26 class SourceManager;
tools/clang/lib/Format/ContinuationIndenter.h 26 class SourceManager;
tools/clang/lib/Format/TokenAnnotator.h 22 class SourceManager;
tools/clang/tools/clang-refactor/TestSupport.h 29 class SourceManager;
tools/clang/tools/extra/clangd/AST.h 22 class SourceManager;
tools/clang/tools/extra/clangd/SourceCode.h 31 class SourceManager;
tools/clang/tools/libclang/CXSourceLocation.h 23 class SourceManager;
tools/lldb/include/lldb/Core/ClangForward.h 102 class SourceManager;
References
include/llvm/ADT/IntrusiveRefCntPtr.h 125 static void retain(T *obj) { obj->Retain(); }
126 static void release(T *obj) { obj->Release(); }
136 T *Obj = nullptr;
139 using element_type = T;
142 IntrusiveRefCntPtr(T *obj) : Obj(obj) { retain(); }
147 IntrusiveRefCntPtr(IntrusiveRefCntPtr<X> &&S) : Obj(S.get()) {
152 IntrusiveRefCntPtr(const IntrusiveRefCntPtr<X> &S) : Obj(S.get()) {
163 T &operator*() const { return *Obj; }
164 T *operator->() const { return Obj; }
165 T *get() const { return Obj; }
169 T *tmp = other.Obj;
184 IntrusiveRefCntPtrInfo<T>::retain(Obj);
189 IntrusiveRefCntPtrInfo<T>::release(Obj);
228 bool operator==(std::nullptr_t A, const IntrusiveRefCntPtr<T> &B) {
233 bool operator==(const IntrusiveRefCntPtr<T> &A, std::nullptr_t B) {
243 bool operator!=(const IntrusiveRefCntPtr<T> &A, std::nullptr_t B) {
tools/clang/include/clang/AST/ASTContext.h 539 SourceManager &SourceMgr;
678 SourceManager& getSourceManager() { return SourceMgr; }
679 const SourceManager& getSourceManager() const { return SourceMgr; }
1070 ASTContext(LangOptions &LOpts, SourceManager &SM, IdentifierTable &idents,
tools/clang/include/clang/AST/ASTDumper.h 27 const SourceManager *SM)
31 const SourceManager *SM, bool ShowColors)
34 const SourceManager *SM, bool ShowColors,
tools/clang/include/clang/AST/ASTTypeTraits.h 280 void dump(llvm::raw_ostream &OS, SourceManager &SM) const;
tools/clang/include/clang/AST/Comment.h 213 const SourceManager *SM) const;
tools/clang/include/clang/AST/CommentLexer.h 216 void dump(const Lexer &L, const SourceManager &SM) const;
355 StringRef getSpelling(const Token &Tok, const SourceManager &SourceMgr) const;
tools/clang/include/clang/AST/CommentParser.h 43 const SourceManager &SourceMgr;
89 const SourceManager &SourceMgr, DiagnosticsEngine &Diags,
tools/clang/include/clang/AST/CommentSema.h 40 const SourceManager &SourceMgr;
72 Sema(llvm::BumpPtrAllocator &Allocator, const SourceManager &SourceMgr,
tools/clang/include/clang/AST/DeclBase.h 1181 SourceManager &SM;
1186 SourceManager &sm, const char *Msg)
tools/clang/include/clang/AST/Expr.h 1846 getLocationOfByte(unsigned ByteNo, const SourceManager &SM,
tools/clang/include/clang/AST/JSONNodeDumper.h 123 const SourceManager &SM;
182 JSONNodeDumper(raw_ostream &OS, const SourceManager &SrcMgr, ASTContext &Ctx,
407 JSONDumper(raw_ostream &OS, const SourceManager &SrcMgr, ASTContext &Ctx,
tools/clang/include/clang/AST/LexicallyOrderedRecursiveASTVisitor.h 64 LexicallyOrderedRecursiveASTVisitor(const SourceManager &SM) : SM(SM) {}
157 const SourceManager &SM;
tools/clang/include/clang/AST/RawCommentList.h 45 RawComment(const SourceManager &SourceMgr, SourceRange SR,
96 StringRef getRawText(const SourceManager &SourceMgr) const {
137 std::string getFormattedText(const SourceManager &SourceMgr,
169 StringRef getRawTextSlow(const SourceManager &SourceMgr) const;
179 const SourceManager &SM;
182 explicit BeforeThanCompare(const SourceManager &SM) : SM(SM) { }
197 RawCommentList(SourceManager &SourceMgr) : SourceMgr(SourceMgr) {}
213 SourceManager &SourceMgr;
tools/clang/include/clang/AST/Stmt.h 1123 void dump(SourceManager &SM) const;
1124 void dump(raw_ostream &OS, SourceManager &SM) const;
tools/clang/include/clang/AST/TextNodeDumper.h 142 const SourceManager *SM;
152 TextNodeDumper(raw_ostream &OS, bool ShowColors, const SourceManager *SM,
tools/clang/include/clang/ASTMatchers/ASTMatchFinder.h 85 clang::SourceManager * const SourceManager;
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 238 auto &SourceManager = Finder->getASTContext().getSourceManager();
259 auto &SourceManager = Finder->getASTContext().getSourceManager();
285 auto &SourceManager = Finder->getASTContext().getSourceManager();
tools/clang/include/clang/Analysis/Analyses/LiveVariables.h 92 void dumpBlockLiveness(const SourceManager &M);
96 void dumpStmtLiveness(const SourceManager &M);
tools/clang/include/clang/Analysis/PathDiagnostic.h 163 const SourceManager *SM = nullptr;
167 PathDiagnosticLocation(SourceLocation L, const SourceManager &sm, Kind kind)
182 PathDiagnosticLocation(const Stmt *s, const SourceManager &sm,
193 PathDiagnosticLocation(const Decl *d, const SourceManager &sm)
203 PathDiagnosticLocation(SourceLocation loc, const SourceManager &sm)
211 const SourceManager &SM) {
217 const SourceManager &SM);
223 createBegin(const Decl *D, const SourceManager &SM,
230 const SourceManager &SM,
238 const SourceManager &SM,
244 const SourceManager &SM);
247 const SourceManager &SM);
252 const SourceManager &SM);
257 const SourceManager &SM);
262 const SourceManager &SM);
267 const SourceManager &SM);
272 const SourceManager &SM);
276 const SourceManager &SMng);
328 const SourceManager& getManager() const { assert(isValid()); return *SM; }
561 void setCallee(const CallEnter &CE, const SourceManager &SM);
582 const SourceManager &SM);
tools/clang/include/clang/Basic/Diagnostic.h 244 SourceManager *SourceMgr = nullptr;
315 void append(SourceManager &SrcMgr, SourceLocation Loc, DiagState *State);
318 DiagState *lookup(SourceManager &SrcMgr, SourceLocation Loc) const;
331 LLVM_DUMP_METHOD void dump(SourceManager &SrcMgr,
392 File *getFile(SourceManager &SrcMgr, FileID ID) const;
522 SourceManager &getSourceManager() const {
527 void setSourceManager(SourceManager *SrcMgr) {
1330 SourceManager &getSourceManager() const { return DiagObj->getSourceManager();}
tools/clang/include/clang/Basic/JsonSupport.h 82 const SourceManager &SM,
tools/clang/include/clang/Basic/PlistSupport.h 39 const SourceManager &SM, SourceLocation L) {
50 inline unsigned GetFID(const FIDMap &FIDs, const SourceManager &SM,
107 inline void EmitLocation(raw_ostream &o, const SourceManager &SM,
123 inline void EmitRange(raw_ostream &o, const SourceManager &SM,
tools/clang/include/clang/Basic/PrettyStackTrace.h 27 SourceManager &SM;
31 PrettyStackTraceLoc(SourceManager &sm, SourceLocation L, const char *Msg)
tools/clang/include/clang/Basic/SanitizerBlacklist.h 28 SourceManager &SM;
32 SourceManager &SM);
tools/clang/include/clang/Basic/SourceLocation.h 178 void print(raw_ostream &OS, const SourceManager &SM) const;
179 std::string printToString(const SourceManager &SM) const;
180 void dump(const SourceManager &SM) const;
222 void print(raw_ostream &OS, const SourceManager &SM) const;
223 std::string printToString(const SourceManager &SM) const;
224 void dump(const SourceManager &SM) const;
346 const SourceManager *SrcMgr = nullptr;
352 explicit FullSourceLoc(SourceLocation Loc, const SourceManager &SM)
362 const SourceManager &getManager() const {
tools/clang/include/clang/Basic/SourceManager.h 596 class SourceManager : public RefCountedBase<SourceManager> {
761 explicit SourceManager(const SourceManager &) = delete;
762 SourceManager &operator=(const SourceManager &) = delete;
762 SourceManager &operator=(const SourceManager &) = delete;
769 void initializeForReplay(const SourceManager &Old);
1868 SourceManager &SM;
1871 explicit BeforeThanCompare(SourceManager &SM) : SM(SM) {}
1881 SourceManager &SM;
1884 explicit BeforeThanCompare(SourceManager &SM) : SM(SM) {}
1899 SourceManager &get() {
1910 std::unique_ptr<SourceManager> SourceMgr;
tools/clang/include/clang/Basic/XRayLists.h 29 SourceManager &SM;
34 ArrayRef<std::string> AttrListPaths, SourceManager &SM);
tools/clang/include/clang/Edit/Commit.h 46 SourceLocation getFileLocation(SourceManager &SM) const;
47 CharSourceRange getFileRange(SourceManager &SM) const;
48 CharSourceRange getInsertFromRange(SourceManager &SM) const;
52 const SourceManager &SourceMgr;
64 Commit(const SourceManager &SM, const LangOptions &LangOpts,
tools/clang/include/clang/Edit/EditedSource.h 36 const SourceManager &SourceMgr;
73 EditedSource(const SourceManager &SM, const LangOptions &LangOpts,
77 const SourceManager &getSourceManager() const { return SourceMgr; }
tools/clang/include/clang/Frontend/ASTUnit.h 112 IntrusiveRefCntPtr<SourceManager> SourceMgr;
259 SourceManager &SrcMan,
432 const SourceManager &getSourceManager() const { return *SourceMgr; }
433 SourceManager &getSourceManager() { return *SourceMgr; }
886 SourceManager &SourceMgr, FileManager &FileMgr,
tools/clang/include/clang/Frontend/CompilerInstance.h 89 IntrusiveRefCntPtr<SourceManager> SourceMgr;
428 SourceManager &getSourceManager() const {
439 void setSourceManager(SourceManager *Value);
773 SourceManager &SourceMgr,
tools/clang/include/clang/Frontend/DiagnosticRenderer.h 109 void emitModuleBuildStack(const SourceManager &SM);
tools/clang/include/clang/Frontend/TextDiagnostic.h 101 void emitFilename(StringRef Filename, const SourceManager &SM);
109 void emitParseableFixits(ArrayRef<FixItHint> Hints, const SourceManager &SM);
tools/clang/include/clang/Frontend/VerifyDiagnosticConsumer.h 264 SourceManager *SrcManager = nullptr;
271 void setSourceManager(SourceManager &SM) {
318 void UpdateParsedFileStatus(SourceManager &SM, FileID FID, ParsedStatus PS);
tools/clang/include/clang/Index/USRGeneration.h 71 const SourceManager &SM, SmallVectorImpl<char> &Buf);
73 const SourceManager &SM, SmallVectorImpl<char> &Buf);
tools/clang/include/clang/Lex/HeaderSearch.h 255 SourceManager &SourceMgr, DiagnosticsEngine &Diags,
tools/clang/include/clang/Lex/Lexer.h 153 const SourceManager &SM, const LangOptions &LangOpts);
303 const SourceManager &SourceMgr,
313 const SourceManager &SourceMgr,
327 const SourceManager &SM,
336 const SourceManager &SM,
342 const SourceManager &SM,
350 const SourceManager &SM,
357 const SourceManager &SM,
365 const SourceManager &SM,
387 const SourceManager &SM,
395 const SourceManager &SM,
403 const SourceManager &SM,
416 const SourceManager &SM,
426 const SourceManager &SM,
457 const SourceManager &SM,
462 const SourceManager &SM,
474 const SourceManager &SM,
495 SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts);
520 const SourceManager &SM,
530 const SourceManager &SM,
559 const SourceManager &SM);
tools/clang/include/clang/Lex/LiteralSupport.h 206 const SourceManager &SM;
224 const SourceManager &sm, const LangOptions &features,
tools/clang/include/clang/Lex/MacroInfo.h 132 unsigned getDefinitionLength(const SourceManager &SM) const {
280 unsigned getDefinitionLengthSlow(const SourceManager &SM) const;
398 const SourceManager &SM) const;
tools/clang/include/clang/Lex/ModuleMap.h 75 SourceManager &SourceMgr;
388 ModuleMap(SourceManager &SourceMgr, DiagnosticsEngine &Diags,
tools/clang/include/clang/Lex/PPConditionalDirectiveRecord.h 26 SourceManager &SourceMgr;
42 SourceManager &SM;
44 explicit Comp(SourceManager &SM) : SM(SM) {}
66 explicit PPConditionalDirectiveRecord(SourceManager &SM);
70 SourceManager &getSourceManager() const { return SourceMgr; }
tools/clang/include/clang/Lex/PreprocessingRecord.h 309 SourceManager &SourceMgr;
400 explicit PreprocessingRecord(SourceManager &SM);
412 SourceManager &getSourceManager() const { return SourceMgr; }
tools/clang/include/clang/Lex/Preprocessor.h 136 SourceManager &SourceMgr;
652 SourceManager &SourceMgr) const {
869 DiagnosticsEngine &diags, LangOptions &opts, SourceManager &SM,
908 SourceManager &getSourceManager() const { return SourceMgr; }
tools/clang/include/clang/Lex/ScratchBuffer.h 25 SourceManager &SourceMgr;
30 ScratchBuffer(SourceManager &SM);
tools/clang/include/clang/Rewrite/Core/Rewriter.h 33 SourceManager *SourceMgr = nullptr;
69 explicit Rewriter(SourceManager &SM, const LangOptions &LO)
72 void setSourceMgr(SourceManager &SM, const LangOptions &LO) {
77 SourceManager &getSourceMgr() const { return *SourceMgr; }
tools/clang/include/clang/Rewrite/Core/TokenRewriter.h 50 TokenRewriter(FileID FID, SourceManager &SM, const LangOptions &LO);
tools/clang/include/clang/Rewrite/Frontend/FixItRewriter.h 89 FixItRewriter(DiagnosticsEngine &Diags, SourceManager &SourceMgr,
tools/clang/include/clang/Sema/Sema.h 380 SourceManager &SourceMgr;
1311 SourceManager &getSourceManager() const { return SourceMgr; }
tools/clang/include/clang/Serialization/ASTReader.h 422 SourceManager &SourceMgr;
1502 SourceManager &getSourceManager() const { return SourceMgr; }
tools/clang/include/clang/Serialization/ASTWriter.h 470 void WriteInputFiles(SourceManager &SourceMgr, HeaderSearchOptions &HSOpts,
472 void WriteSourceManagerBlock(SourceManager &SourceMgr,
tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h 567 virtual SourceManager &getSourceManager() = 0;
607 const SourceManager &getSourceManager() { return D.getSourceManager(); }
710 const SourceManager& getSourceManager() const {
tools/clang/include/clang/StaticAnalyzer/Core/IssueHash.h 37 llvm::SmallString<32> GetIssueHash(const SourceManager &SM,
45 std::string GetIssueString(const SourceManager &SM, FullSourceLoc &IssueLoc,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h 82 SourceManager &getSourceManager() override {
121 static bool isInCodeFile(SourceLocation SL, const SourceManager &SM) {
147 const SourceManager &SM = getASTContext().getSourceManager();
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h 241 const SourceManager &SM =
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h 106 const SourceManager &getSourceManager() {
tools/clang/include/clang/Tooling/Core/Diagnostic.h 40 DiagnosticMessage(llvm::StringRef Message, const SourceManager &Sources,
tools/clang/include/clang/Tooling/Core/Replacement.h 99 Replacement(const SourceManager &Sources, SourceLocation Start,
103 Replacement(const SourceManager &Sources, const CharSourceRange &Range,
109 Replacement(const SourceManager &Sources, const Node &NodeToReplace,
133 void setFromSourceLocation(const SourceManager &Sources, SourceLocation Start,
135 void setFromSourceRange(const SourceManager &Sources,
359 Replacement::Replacement(const SourceManager &Sources,
tools/clang/include/clang/Tooling/Refactoring/AtomicChange.h 42 AtomicChange(const SourceManager &SM, SourceLocation KeyPosition);
84 llvm::Error replace(const SourceManager &SM, const CharSourceRange &Range,
90 llvm::Error replace(const SourceManager &SM, SourceLocation Loc,
101 llvm::Error insert(const SourceManager &SM, SourceLocation Loc,
tools/clang/include/clang/Tooling/Refactoring/Extract/SourceExtraction.h 36 const SourceManager &SM,
tools/clang/include/clang/Tooling/Refactoring/RecursiveSymbolVisitor.h 33 RecursiveSymbolVisitor(const SourceManager &SM, const LangOptions &LangOpts)
126 const SourceManager &SM;
tools/clang/include/clang/Tooling/Refactoring/RefactoringRuleContext.h 35 RefactoringRuleContext(const SourceManager &SM) : SM(SM) {}
37 const SourceManager &getSources() const { return SM; }
72 const SourceManager &SM;
tools/clang/include/clang/Tooling/Refactoring/Rename/RenamingAction.h 96 const SourceManager &SM, const SymbolName &NewName);
tools/clang/include/clang/Tooling/Syntax/Tokens.h 55 FileRange(const SourceManager &SM, SourceLocation BeginLoc, unsigned Length);
58 FileRange(const SourceManager &SM, SourceLocation BeginLoc,
79 llvm::StringRef text(const SourceManager &SM) const;
120 llvm::StringRef text(const SourceManager &SM) const;
124 FileRange range(const SourceManager &SM) const;
130 static FileRange range(const SourceManager &SM, const syntax::Token &First,
133 std::string dumpForTests(const SourceManager &SM) const;
174 TokenBuffer(const SourceManager &SourceMgr) : SourceMgr(&SourceMgr) {}
249 const SourceManager &sourceManager() const { return *SourceMgr; }
304 const SourceManager *SourceMgr;
315 std::vector<syntax::Token> tokenize(FileID FID, const SourceManager &SM,
tools/clang/include/clang/Tooling/Syntax/Tree.h 41 Arena(SourceManager &SourceMgr, const LangOptions &LangOpts,
44 const SourceManager &sourceManager() const { return SourceMgr; }
57 SourceManager &SourceMgr;
tools/clang/include/clang/Tooling/Tooling.h 279 void addFileMappingsTo(SourceManager &SourceManager);
tools/clang/include/clang/Tooling/Transformer/SourceCode.h 80 getRangeForEdit(const CharSourceRange &EditRange, const SourceManager &SM,
tools/clang/lib/ARCMigrate/Internals.h 45 SourceManager &SM, const LangOptions &LangOpts);
tools/clang/lib/ARCMigrate/ObjCMT.cpp 1774 SourceManager &SourceMgr;
1778 JSONEditWriter(SourceManager &SM, llvm::raw_ostream &OS)
1786 SourceManager &SourceMgr;
1789 EntryWriter(SourceManager &SM, llvm::raw_ostream &OS)
2178 SourceManager SM(Diag, FileMgr);
tools/clang/lib/ARCMigrate/PlistReporter.cpp 36 SourceManager &SM,
tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp 288 SourceManager &SM = Ctx.getSourceManager();
tools/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp 140 SourceManager &SM = Pass.Ctx.getSourceManager();
tools/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp 44 SourceManager &SM = Ctx.getSourceManager();
tools/clang/lib/ARCMigrate/TransGCAttrs.cpp 96 SourceManager &SM = Ctx.getSourceManager();
172 SourceManager &SM = MigrateCtx.Pass.Ctx.getSourceManager();
tools/clang/lib/ARCMigrate/TransProtectedScope.cpp 97 SourceManager &SM;
tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp 330 SourceManager &SM = Pass.Ctx.getSourceManager();
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp 254 SourceManager &SM = Pass.Ctx.getSourceManager();
281 SourceManager &SM = Pass.Ctx.getSourceManager();
tools/clang/lib/ARCMigrate/TransformActions.cpp 67 CharRange(CharSourceRange range, SourceManager &srcMgr, Preprocessor &PP) {
98 SourceManager &SrcMgr, Preprocessor &PP) {
178 SourceManager &SM,Preprocessor &PP);
387 SourceManager &SM = Ctx.getSourceManager();
400 SourceManager &SM = Ctx.getSourceManager();
422 SourceManager &SM = Ctx.getSourceManager();
483 SourceManager &SM = Ctx.getSourceManager();
494 SourceManager &SM = Ctx.getSourceManager();
507 SourceManager &SM = Ctx.getSourceManager();
592 SourceManager &SM,
tools/clang/lib/ARCMigrate/Transforms.cpp 132 SourceManager &SM = Ctx.getSourceManager();
385 SourceManager &SM = Pass.Ctx.getSourceManager();
466 SourceManager &SM = Pass.Ctx.getSourceManager();
538 const SourceManager &SM = pass.Ctx.getSourceManager();
tools/clang/lib/AST/ASTContext.cpp 105 SourceManager &SourceMgr) {
829 ASTContext::ASTContext(LangOptions &LOpts, SourceManager &SM,
tools/clang/lib/AST/ASTDumper.cpp 184 const SourceManager &SM = Ctx.getSourceManager();
218 const SourceManager &SM = Ctx.getSourceManager();
229 LLVM_DUMP_METHOD void Stmt::dump(SourceManager &SM) const {
233 LLVM_DUMP_METHOD void Stmt::dump(raw_ostream &OS, SourceManager &SM) const {
267 const SourceManager *SM) const {
tools/clang/lib/AST/ASTImporter.cpp 8391 SourceManager &FromSM = FromContext.getSourceManager();
8398 SourceManager &ToSM = ToContext.getSourceManager();
8417 SourceManager &FromSM = FromContext.getSourceManager();
8418 SourceManager &ToSM = ToContext.getSourceManager();
tools/clang/lib/AST/ASTTypeTraits.cpp 154 void DynTypedNode::dump(llvm::raw_ostream &OS, SourceManager &SM) const {
tools/clang/lib/AST/CommentLexer.cpp 21 void Token::dump(const Lexer &L, const SourceManager &SM) const {
853 const SourceManager &SourceMgr) const {
tools/clang/lib/AST/CommentParser.cpp 257 const SourceManager &SourceMgr, DiagnosticsEngine &Diags,
tools/clang/lib/AST/CommentSema.cpp 27 Sema::Sema(llvm::BumpPtrAllocator &Allocator, const SourceManager &SourceMgr,
tools/clang/lib/AST/DataCollection.cpp 36 SourceManager &SM = Context.getSourceManager();
tools/clang/lib/AST/Decl.cpp 3345 const SourceManager &SM = getASTContext().getSourceManager();
4755 SourceManager &SM = getASTContext().getSourceManager();
tools/clang/lib/AST/Expr.cpp 1216 StringLiteral::getLocationOfByte(unsigned ByteNo, const SourceManager &SM,
tools/clang/lib/AST/MicrosoftMangle.cpp 412 SourceManager &SM = Context.getSourceManager();
tools/clang/lib/AST/RawCommentList.cpp 68 bool commentsStartOnSameColumn(const SourceManager &SM, const RawComment &R1,
108 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR,
151 StringRef RawComment::getRawTextSlow(const SourceManager &SourceMgr) const {
224 static bool onlyWhitespaceBetween(SourceManager &SM,
358 std::string RawComment::getFormattedText(const SourceManager &SourceMgr,
tools/clang/lib/AST/Stmt.cpp 632 const SourceManager &SM = C.getSourceManager();
tools/clang/lib/AST/TextNodeDumper.cpp 51 const SourceManager *SM,
tools/clang/lib/Analysis/AnalysisDeclContext.cpp 468 static void printLocation(raw_ostream &Out, const SourceManager &SM,
483 const SourceManager &SM =
526 const SourceManager &SM =
tools/clang/lib/Analysis/CloneDetection.cpp 42 const SourceManager &SM = getASTContext().getSourceManager();
161 const SourceManager &SM = S.getASTContext().getSourceManager();
tools/clang/lib/Analysis/LiveVariables.cpp 94 void dumpBlockLiveness(const SourceManager& M);
95 void dumpStmtLiveness(const SourceManager& M);
618 void LiveVariables::dumpBlockLiveness(const SourceManager &M) {
622 void LiveVariablesImpl::dumpBlockLiveness(const SourceManager &M) {
664 void LiveVariables::dumpStmtLiveness(const SourceManager &M) {
668 void LiveVariablesImpl::dumpStmtLiveness(const SourceManager &M) {
tools/clang/lib/Analysis/PathDiagnostic.cpp 155 const SourceManager &SMgr = D->path.front()->getLocation().getManager();
282 const SourceManager &SM = XL.getManager();
331 const SourceManager &SM = XL.getManager();
369 const SourceManager &SM = XL.getManager();
509 const SourceManager &SM) {
565 const SourceManager &SM) {
571 const SourceManager &SM,
579 const SourceManager &SM,
589 const SourceManager &SM) {
596 const SourceManager &SM) {
602 const SourceManager &SM) {
616 const SourceManager &SM) {
623 const SourceManager &SM) {
630 const SourceManager &SM) {
643 const SourceManager &SM) {
650 const SourceManager &SMng) {
832 const SourceManager &SM) {
853 const SourceManager &SM) {
tools/clang/lib/Analysis/ProgramPoint.cpp 53 const SourceManager &SM = Context.getSourceManager();
tools/clang/lib/Analysis/ReachableCode.cpp 137 static SourceLocation getTopMostMacro(SourceLocation Loc, SourceManager &SM) {
157 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Basic/Diagnostic.cpp 169 void DiagnosticsEngine::DiagStateMap::append(SourceManager &SrcMgr,
195 DiagnosticsEngine::DiagStateMap::lookup(SourceManager &SrcMgr,
217 DiagnosticsEngine::DiagStateMap::getFile(SourceManager &SrcMgr,
245 void DiagnosticsEngine::DiagStateMap::dump(SourceManager &SrcMgr,
tools/clang/lib/Basic/SanitizerBlacklist.cpp 18 const std::vector<std::string> &BlacklistPaths, SourceManager &SM)
tools/clang/lib/Basic/SourceLocation.cpp 43 void SourceLocation::print(raw_ostream &OS, const SourceManager &SM)const{
70 SourceLocation::printToString(const SourceManager &SM) const {
77 LLVM_DUMP_METHOD void SourceLocation::dump(const SourceManager &SM) const {
82 LLVM_DUMP_METHOD void SourceRange::dump(const SourceManager &SM) const {
87 static PresumedLoc PrintDifference(raw_ostream &OS, const SourceManager &SM,
117 void SourceRange::print(raw_ostream &OS, const SourceManager &SM) const {
129 SourceRange::printToString(const SourceManager &SM) const {
tools/clang/lib/Basic/SourceManager.cpp 392 void SourceManager::initializeForReplay(const SourceManager &Old) {
1234 const SourceManager &SM, bool &Invalid);
1237 const SourceManager &SM, bool &Invalid) {
1903 const SourceManager &SM) {
2138 SourceManager::MemoryBufferSizes SourceManager::getMemoryBufferSizes() const {
2188 SourceMgr = std::make_unique<SourceManager>(*Diagnostics, *FileMgr);
tools/clang/lib/Basic/XRayLists.cpp 19 ArrayRef<std::string> AttrListPaths, SourceManager &SM)
tools/clang/lib/CodeGen/CGDebugInfo.cpp 181 SourceManager &SM = CGM.getContext().getSourceManager();
376 SourceManager &SM = CGM.getContext().getSourceManager();
392 Optional<StringRef> CGDebugInfo::getSource(const SourceManager &SM,
411 SourceManager &SM = CGM.getContext().getSourceManager();
489 SourceManager &SM = CGM.getContext().getSourceManager();
502 SourceManager &SM = CGM.getContext().getSourceManager();
531 SourceManager &SM = CGM.getContext().getSourceManager();
tools/clang/lib/CodeGen/CGDebugInfo.h 560 Optional<StringRef> getSource(const SourceManager &SM, FileID FID);
tools/clang/lib/CodeGen/CGObjCGNU.cpp 3766 SourceManager &SM = CGM.getContext().getSourceManager();
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 2649 SourceManager &SM = C.getSourceManager();
tools/clang/lib/CodeGen/CGStmt.cpp 1893 const SourceManager &SM = CGF.CGM.getContext().getSourceManager();
tools/clang/lib/CodeGen/CodeGenAction.cpp 398 SourceManager &CSM) {
564 SourceManager &SourceMgr = Context->getSourceManager();
981 SourceManager &SM = CI.getSourceManager();
1055 SourceManager &SM = CI.getSourceManager();
tools/clang/lib/CodeGen/CodeGenModule.cpp 2190 SourceManager &SM = getContext().getSourceManager();
2198 SourceManager &SM = getContext().getSourceManager();
2243 auto &SM = Context.getSourceManager();
5484 SourceManager &SM = getContext().getSourceManager();
tools/clang/lib/CodeGen/CodeGenPGO.cpp 789 SourceManager &SM = CGM.getContext().getSourceManager();
823 const auto &SM = CGM.getContext().getSourceManager();
tools/clang/lib/CodeGen/CoverageMappingGen.cpp 109 SpellingRegion(SourceManager &SM, SourceLocation LocStart,
117 SpellingRegion(SourceManager &SM, SourceMappingRegion &R)
133 SourceManager &SM;
155 CoverageMappingBuilder(CoverageMappingModuleGen &CVM, SourceManager &SM,
385 EmptyCoverageMappingBuilder(CoverageMappingModuleGen &CVM, SourceManager &SM,
839 llvm::DenseMap<const Stmt *, unsigned> &CounterMap, SourceManager &SM,
tools/clang/lib/CodeGen/CoverageMappingGen.h 86 SourceManager &SM;
91 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM,
95 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM,
tools/clang/lib/CrossTU/CrossTranslationUnit.cpp 572 const SourceManager &SM = Context.getSourceManager();
tools/clang/lib/Edit/Commit.cpp 24 SourceLocation Commit::Edit::getFileLocation(SourceManager &SM) const {
31 CharSourceRange Commit::Edit::getFileRange(SourceManager &SM) const {
36 CharSourceRange Commit::Edit::getInsertFromRange(SourceManager &SM) const {
232 const SourceManager &SM = SourceMgr;
262 const SourceManager &SM = SourceMgr;
298 const SourceManager &SM = SourceMgr;
tools/clang/lib/Edit/EditedSource.cpp 337 static void adjustRemoval(const SourceManager &SM, const LangOptions &LangOpts,
384 const SourceManager &SM, const LangOptions &LangOpts,
tools/clang/lib/Format/AffectedRangeManager.h 27 AffectedRangeManager(const SourceManager &SourceMgr,
58 const SourceManager &SourceMgr;
tools/clang/lib/Format/ContinuationIndenter.cpp 226 const SourceManager &SourceMgr,
tools/clang/lib/Format/ContinuationIndenter.h 56 const SourceManager &SourceMgr,
193 const SourceManager &SourceMgr;
tools/clang/lib/Format/Format.cpp 1661 FormatTokenLess(const SourceManager &SM) : SM(SM) {}
1667 const SourceManager &SM;
1694 guessIsObjC(const SourceManager &SourceManager,
tools/clang/lib/Format/FormatTokenLexer.cpp 25 FormatTokenLexer::FormatTokenLexer(const SourceManager &SourceMgr, FileID ID,
tools/clang/lib/Format/FormatTokenLexer.h 39 FormatTokenLexer(const SourceManager &SourceMgr, FileID ID, unsigned Column,
98 const SourceManager &SourceMgr;
tools/clang/lib/Format/NamespaceEndCommentsFixer.cpp 128 const SourceManager &SourceMgr,
140 const SourceManager &SourceMgr,
187 const SourceManager &SourceMgr = Env.getSourceManager();
tools/clang/lib/Format/SortJavaScriptImports.cpp 237 const SourceManager &SM = Env.getSourceManager();
tools/clang/lib/Format/TokenAnalyzer.h 49 const SourceManager &getSourceManager() const { return SM; }
71 SourceManager &SM;
tools/clang/lib/Format/UnwrappedLineFormatter.h 34 const SourceManager &SourceMgr,
69 const SourceManager &SourceMgr;
tools/clang/lib/Format/UsingDeclarationsSorter.cpp 116 const SourceManager &SourceMgr, tooling::Replacements *Fixes) {
187 const SourceManager &SourceMgr = Env.getSourceManager();
tools/clang/lib/Format/WhitespaceManager.h 39 WhitespaceManager(const SourceManager &SourceMgr, const FormatStyle &Style,
92 IsBeforeInFile(const SourceManager &SourceMgr) : SourceMgr(SourceMgr) {}
96 const SourceManager &SourceMgr;
210 const SourceManager &SourceMgr;
tools/clang/lib/Frontend/ASTUnit.cpp 617 SourceManager *SourceMgr = nullptr;
682 auto &M = D.getSourceManager();
782 AST->SourceMgr = new SourceManager(AST->getDiagnostics(),
1080 SourceManager &SM) {
1167 SourceMgr = new SourceManager(getDiagnostics(), *FileMgr,
1237 makeStandaloneRange(CharSourceRange Range, const SourceManager &SM,
1245 static ASTUnit::StandaloneFixIt makeStandaloneFixIt(const SourceManager &SM,
1267 const SourceManager &SM = InDiag.getLocation().getManager();
1505 AST->SourceMgr = new SourceManager(AST->getDiagnostics(), *AST->FileMgr,
2142 DiagnosticsEngine &Diag, LangOptions &LangOpts, SourceManager &SourceMgr,
2354 SourceManager &SrcMgr,
2418 SourceManager &SM = *SourceMgr;
2497 const SourceManager &SM = getSourceManager();
2504 const SourceManager &SM = getSourceManager();
tools/clang/lib/Frontend/CompilerInstance.cpp 104 void CompilerInstance::setSourceManager(SourceManager *Value) {
324 SourceMgr = new SourceManager(getDiagnostics(), FileMgr);
330 SourceManager &SourceMgr,
823 FileManager &FileMgr, SourceManager &SourceMgr, HeaderSearch *HS,
832 SourceMgr.setMainFileID(SourceMgr.createFileID(SourceManager::Unowned,
1124 SourceManager &SourceMgr = Instance.getSourceManager();
1336 SourceManager &SourceMgr = PP.getSourceManager();
tools/clang/lib/Frontend/DependencyFile.cpp 34 SourceManager &SM;
36 DepCollectorPPCallbacks(DependencyCollector &L, SourceManager &SM,
tools/clang/lib/Frontend/DependencyGraph.cpp 82 SourceManager &SM = PP->getSourceManager();
tools/clang/lib/Frontend/DiagnosticRenderer.cpp 60 const SourceManager &SM, const LangOptions &LangOpts,
249 void DiagnosticRenderer::emitModuleBuildStack(const SourceManager &SM) {
264 bool IsBegin, const SourceManager *SM,
318 bool IsBegin, const SourceManager *SM) {
333 SourceLocation Begin, SourceLocation End, const SourceManager *SM,
361 const SourceManager *SM = &CaretLoc.getManager();
456 const SourceManager &SM,
469 const SourceManager &SM,
530 const SourceManager &SM = Loc.getManager();
tools/clang/lib/Frontend/FrontendAction.cpp 234 auto &SourceMgr = CI.getSourceManager();
419 auto &SrcMgr = CI.getSourceManager();
504 SourceManager &SourceMgr = CI.getSourceManager();
609 auto &OldSM = AST->getSourceManager();
783 auto &SourceMgr = CI.getSourceManager();
tools/clang/lib/Frontend/FrontendActions.cpp 733 SourceManager &SM = PP.getSourceManager();
792 const SourceManager& SM = CI.getSourceManager();
922 SourceManager &SM = CI.getPreprocessor().getSourceManager();
tools/clang/lib/Frontend/HeaderIncludeGen.cpp 20 SourceManager &SM;
tools/clang/lib/Frontend/LogDiagnosticPrinter.cpp 118 const SourceManager &SM = Info.getSourceManager();
143 const SourceManager &SM = Info.getSourceManager();
tools/clang/lib/Frontend/ModuleDependencyCollector.cpp 43 SourceManager &SM;
45 SourceManager &SM)
tools/clang/lib/Frontend/PrecompiledPreamble.cpp 322 new SourceManager(Diagnostics, Clang->getFileManager()));
370 SourceManager &SourceMgr = Clang->getSourceManager();
tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp 81 SourceManager &SM;
265 SourceManager &SourceMgr = SM;
913 const SourceManager &SourceMgr = PP.getSourceManager();
tools/clang/lib/Frontend/Rewrite/FixItRewriter.cpp 37 FixItRewriter::FixItRewriter(DiagnosticsEngine &Diags, SourceManager &SourceMgr,
tools/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp 40 SourceManager &SM; ///< Used to read and manage source files.
540 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp 63 SourceManager &SM = PP.getSourceManager();
90 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp 68 SourceManager *SM;
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp 67 SourceManager *SM;
tools/clang/lib/Frontend/Rewrite/RewriteTest.cpp 19 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp 197 const SourceManager &SM);
200 void EmitCharSourceRange(CharSourceRange R, const SourceManager &SM);
227 const SourceManager &SM);
361 const SourceManager &SM) {
391 const SourceManager &SM) {
687 const SourceManager &SM) {
tools/clang/lib/Frontend/TextDiagnostic.cpp 763 void TextDiagnostic::emitFilename(StringRef Filename, const SourceManager &SM) {
937 const SourceManager &SM) {
989 const SourceManager &SM,
1071 const SourceManager &SM,
1159 const SourceManager &SM = Loc.getManager();
1322 const SourceManager &SM) {
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp 59 SourceManager &SM;
62 VerifyFileTracker(VerifyDiagnosticConsumer &Verify, SourceManager &SM)
401 static bool ParseDirective(StringRef S, ExpectedData *ED, SourceManager &SM,
748 SourceManager &SM = PP.getSourceManager();
805 static bool findDirectives(SourceManager &SM, FileID FID,
843 static unsigned PrintUnexpected(DiagnosticsEngine &Diags, SourceManager *SourceMgr,
872 SourceManager &SourceMgr,
901 static bool IsFromSameFile(SourceManager &SM, SourceLocation DirectiveLoc,
918 static unsigned CheckLists(DiagnosticsEngine &Diags, SourceManager &SourceMgr,
968 static unsigned CheckResults(DiagnosticsEngine &Diags, SourceManager &SourceMgr,
1004 void VerifyDiagnosticConsumer::UpdateParsedFileStatus(SourceManager &SM,
tools/clang/lib/Index/CommentToXML.cpp 529 const SourceManager &SM) :
567 const SourceManager &SM;
tools/clang/lib/Index/FileIndexRecord.cpp 47 SourceManager &SM = D->getASTContext().getSourceManager();
tools/clang/lib/Index/IndexingContext.cpp 117 SourceManager &SM = Ctx->getSourceManager();
363 SourceManager &SM = Ctx->getSourceManager();
tools/clang/lib/Index/USRGeneration.cpp 26 const SourceManager &SM, bool IncludeOffset) {
193 const SourceManager &SM = Context->getSourceManager();
1086 const SourceManager &SM,
1096 const SourceManager &SM,
tools/clang/lib/Lex/HeaderSearch.cpp 82 SourceManager &SourceMgr, DiagnosticsEngine &Diags,
tools/clang/lib/Lex/Lexer.cpp 159 const SourceManager &SM, const LangOptions &langOpts)
190 SourceManager &SM = PP.getSourceManager();
326 const SourceManager &SM,
365 std::string Lexer::getSpelling(const Token &Tok, const SourceManager &SourceMgr,
398 const SourceManager &SourceMgr,
445 const SourceManager &SM,
456 const SourceManager &SM,
507 const SourceManager &SM,
555 const SourceManager &SM,
719 const SourceManager &SM,
779 const SourceManager &SM,
801 const SourceManager &SM,
823 const SourceManager &SM,
849 const SourceManager &SM,
876 const SourceManager &SM,
940 const SourceManager &SM,
976 const SourceManager &SM,
1023 SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) {
1072 const SourceManager &SM) {
1110 SourceManager &SM = PP.getSourceManager();
1238 const SourceManager &SM,
1271 SourceLocation Loc, tok::TokenKind TKind, const SourceManager &SM,
tools/clang/lib/Lex/MacroInfo.cpp 38 unsigned MacroInfo::getDefinitionLengthSlow(const SourceManager &SM) const {
203 const SourceManager &SM) const {
tools/clang/lib/Lex/ModuleMap.cpp 313 ModuleMap::ModuleMap(SourceManager &SourceMgr, DiagnosticsEngine &Diags,
1382 SourceManager &SourceMgr;
1462 explicit ModuleMapParser(Lexer &L, SourceManager &SourceMgr,
tools/clang/lib/Lex/PPConditionalDirectiveRecord.cpp 18 PPConditionalDirectiveRecord::PPConditionalDirectiveRecord(SourceManager &SM)
tools/clang/lib/Lex/PPDirectives.cpp 673 auto &SM = getSourceManager();
1246 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Lex/PreprocessingRecord.cpp 54 PreprocessingRecord::PreprocessingRecord(SourceManager &SM) : SourceMgr(SM) {}
78 SourceManager &SM) {
182 const SourceManager &SM;
184 explicit PPEntityComp(const SourceManager &SM) : SM(SM) {}
tools/clang/lib/Lex/Preprocessor.cpp 80 SourceManager &SM, HeaderSearch &Headers,
503 auto &SM = getSourceManager();
tools/clang/lib/Lex/ScratchBuffer.cpp 23 ScratchBuffer::ScratchBuffer(SourceManager &SM)
tools/clang/lib/Lex/TokenConcatenation.cpp 53 SourceManager &SM = PP.getSourceManager();
136 SourceManager &SM = PP.getSourceManager();
171 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Lex/TokenLexer.cpp 60 SourceManager &SM = PP.getSourceManager();
638 SourceManager &SM = PP.getSourceManager();
821 SourceManager &SourceMgr = PP.getSourceManager();
852 SourceManager &SM = PP.getSourceManager();
900 SourceManager &SM = PP.getSourceManager();
970 SourceManager &SM = PP.getSourceManager();
988 static void updateConsecutiveMacroArgTokens(SourceManager &SM,
1057 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Parse/ParseAST.cpp 78 const SourceManager &SM = P.getPreprocessor().getSourceManager();
tools/clang/lib/Parse/ParseDecl.cpp 94 SourceManager &SM = PP.getSourceManager();
227 auto &SM = PP.getSourceManager();
tools/clang/lib/Parse/ParseExpr.cpp 374 const SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Parse/ParseExprCXX.cpp 43 SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Parse/ParseStmtAsm.cpp 395 SourceManager &SrcMgr = PP.getSourceManager();
tools/clang/lib/Parse/Parser.cpp 2355 auto &SrcMgr = PP.getSourceManager();
tools/clang/lib/Rewrite/HTMLRewrite.cpp 34 SourceManager &SM = R.getSourceMgr();
447 const SourceManager &SM = PP.getSourceManager();
536 const SourceManager &SM = PP.getSourceManager();
tools/clang/lib/Rewrite/TokenRewriter.cpp 26 TokenRewriter::TokenRewriter(FileID FID, SourceManager &SM,
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp 1410 SourceManager &SM = S.getSourceManager();
1594 SourceManager &SM;
1595 SortDiagBySourceLocation(SourceManager &SM) : SM(SM) {}
tools/clang/lib/Sema/CodeCompleteConsumer.cpp 577 SourceManager &SM = SemaRef.SourceMgr;
tools/clang/lib/Sema/Sema.cpp 96 SourceManager &SM = S->getSourceManager();
1189 const SourceManager &SM = SourceMgr;
tools/clang/lib/Sema/SemaChecking.cpp 6761 unsigned ByteNo, const SourceManager &SM, const LangOptions &Features,
9512 static bool isArgumentExpandedFromMacro(SourceManager &SM,
9537 SourceManager &SM = S.getSourceManager();
9660 SourceManager &SM = getSourceManager();
9936 SourceManager &SM = getSourceManager();
12203 static bool IsInAnyMacroBody(const SourceManager &SM, SourceLocation Loc) {
12230 const SourceManager &SM = getSourceManager();
14008 static bool ShouldDiagnoseEmptyStmtBody(const SourceManager &SourceMgr,
tools/clang/lib/Sema/SemaCodeComplete.cpp 2888 const SourceManager &SM,
tools/clang/lib/Sema/SemaDecl.cpp 4198 SourceManager &SrcMgr = getSourceManager();
tools/clang/lib/Sema/SemaDeclAttr.cpp 7766 createAttributeInsertion(const NamedDecl *D, const SourceManager &SM,
8368 const SourceManager &SM = SemaRef.getSourceManager();
tools/clang/lib/Sema/SemaExprObjC.cpp 2297 SourceManager &SM = S.SourceMgr;
3572 SourceManager &SM = S.getSourceManager();
3590 SourceManager &SM = S.getSourceManager();
tools/clang/lib/Sema/SemaObjCProperty.cpp 318 SourceManager &SM = Context.getSourceManager();
tools/clang/lib/Serialization/ASTReader.cpp 2338 SourceManager &SM = getSourceManager();
3392 std::make_pair(SourceManager::MaxLoadedOffset - F.SLocEntryBaseOffset
6036 SourceManager::MaxLoadedOffset - Loc.getOffset() - 1);
8011 SourceManager &SM = getSourceManager();
tools/clang/lib/Serialization/ASTWriter.cpp 1720 SourceManager &SM = Context.getSourceManager();
1774 void ASTWriter::WriteInputFiles(SourceManager &SourceMgr,
2274 void ASTWriter::WriteSourceManagerBlock(SourceManager &SourceMgr,
5737 SourceManager &SM = Context->getSourceManager();
tools/clang/lib/Serialization/ASTWriterDecl.cpp 2384 SourceManager &SM = Context.getSourceManager();
tools/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp 44 const SourceManager &SM = B.getSourceManager();
tools/clang/lib/StaticAnalyzer/Checkers/CloneChecker.cpp 162 SourceManager &SM = ACtx.getSourceManager();
tools/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp 175 SourceManager &SMgr = Ctx.getSourceManager();
230 SourceManager &SM = ACtx.getSourceManager();
tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp 305 const SourceManager &SM = C.getSourceManager();
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp 766 const SourceManager &SM = C.getSourceManager();
tools/clang/lib/StaticAnalyzer/Checkers/ObjCUnusedIVarsChecker.cpp 97 const SourceManager &SM) {
151 const SourceManager &SM = BR.getSourceManager();
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp 374 const SourceManager &SM,
423 const SourceManager &SM) {
462 const SourceManager &SM = BRC.getSourceManager();
828 const SourceManager& SMgr = Ctx.getSourceManager();
858 const SourceManager& SMgr = Ctx.getSourceManager();
tools/clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp 72 SourceManager &SM = Ctx.getSourceManager();
tools/clang/lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp 168 const SourceManager &SM = B.getSourceManager();
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp 121 const SourceManager &SM;
165 const SourceManager &getSourceManager() const { return SM; }
641 const SourceManager &SMgr = LC->getDecl()->getASTContext().getSourceManager();
735 const SourceManager& SM);
741 const SourceManager &SM = getSourceManager();
810 const SourceManager &SM = getSourceManager();
856 const SourceManager &SM = getSourceManager();
1117 findExecutedLines(const SourceManager &SM, const ExplodedNode *N);
1122 const SourceManager &SM = getSourceManager();
1323 const SourceManager &SM) {
1561 static Optional<size_t> getLengthOnSingleLine(const SourceManager &SM,
1591 static Optional<size_t> getLengthOnSingleLine(const SourceManager &SM,
1612 static void removeContextCycles(PathPieces &Path, const SourceManager &SM) {
1677 static void removePunyEdges(PathPieces &path, const SourceManager &SM,
1759 const SourceManager &SM = C.getSourceManager();
1987 const SourceManager &SM = getSourceManager();
2343 SourceManager &SM =
2600 const SourceManager& SM) {
3044 const Decl *Signature, const SourceManager &SM,
3069 const Stmt *S, const SourceManager &SM,
3083 findExecutedLines(const SourceManager &SM, const ExplodedNode *N) {
3131 const SourceManager &SMgr) {
3164 const SourceManager &SMgr = LastP->getLocation().getManager();
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp 251 const SourceManager &SM) {
337 const SourceManager &SM;
813 const SourceManager &SMgr = BRC.getSourceManager();
2336 const SourceManager &SM = BRC.getSourceManager();
2489 const SourceManager &SM = BRC.getSourceManager();
2747 const SourceManager &SM = BRC.getSourceManager();
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp 106 const SourceManager& SMgr, const PathPieces& path,
111 const SourceManager& SMgr, const PathPieces& path,
183 const SourceManager &SMgr = path.front()->getLocation().getManager();
272 const SourceManager& SMgr, const PathPieces& path, const char *declName) {
436 const SourceManager& SMgr, const PathPieces& path, FileID FID,
746 SourceManager &SM = R.getSourceMgr();
998 SourceManager &SM = R.getSourceMgr();
tools/clang/lib/StaticAnalyzer/Core/IssueHash.cpp 134 static std::string NormalizeLine(const SourceManager &SM, FullSourceLoc &L,
182 std::string clang::GetIssueString(const SourceManager &SM,
196 SmallString<32> clang::GetIssueHash(const SourceManager &SM,
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp 200 const SourceManager &SM = PP.getSourceManager();
231 const SourceManager &SM = PP.getSourceManager();
257 const SourceManager &SM = PP.getSourceManager();
314 const SourceManager &SM = PP.getSourceManager();
395 const SourceManager &SM = PP.getSourceManager();
429 const SourceManager &SM = PP.getSourceManager();
458 const SourceManager &SM = PP.getSourceManager();
605 const SourceManager& SM = PP.getSourceManager();
917 const SourceManager &SM,
952 const SourceManager &SM = PP.getSourceManager();
1054 const SourceManager &SM = PP.getSourceManager();
1202 const SourceManager &SM,
tools/clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp 145 static json::Object createTextRegion(SourceRange R, const SourceManager &SM) {
160 const SourceManager &SMgr,
218 const SourceManager &SMgr = Pieces.front()->getLocation().getManager();
243 const SourceManager &SMgr = Path.front()->getLocation().getManager();
tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp 122 SourceManager &SM = Diag.getSourceManager();
306 SourceManager &SM = Mgr->getASTContext().getSourceManager();
594 const SourceManager &SM = C.getSourceManager();
751 SourceManager &SM = Ctx->getSourceManager();
tools/clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp 47 SourceManager &SM = CI.getSourceManager();
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp 172 static bool isNodeExcluded(const SourceManager &SrcMgr, T *N) {
996 const SourceManager &SrcMgr = TreeImpl->AST.getSourceManager();
tools/clang/lib/Tooling/Core/Diagnostic.cpp 24 const SourceManager &Sources,
tools/clang/lib/Tooling/Core/Lookup.cpp 143 const auto &SM = UseContext.getParentASTContext().getSourceManager();
tools/clang/lib/Tooling/Core/Replacement.cpp 52 Replacement::Replacement(const SourceManager &Sources, SourceLocation Start,
57 Replacement::Replacement(const SourceManager &Sources,
69 SourceManager &SM = Rewrite.getSourceMgr();
120 void Replacement::setFromSourceLocation(const SourceManager &Sources,
134 static int getRangeSize(const SourceManager &Sources,
147 void Replacement::setFromSourceRange(const SourceManager &Sources,
590 SourceManager SourceMgr(Diagnostics, Files);
tools/clang/lib/Tooling/Inclusions/HeaderIncludes.cpp 40 llvm::function_ref<unsigned(const SourceManager &, Lexer &, Token &)>
43 SourceManager &SM = VirtualSM.get();
tools/clang/lib/Tooling/Refactoring.cpp 47 SourceManager Sources(Diagnostics, getFiles());
72 SourceManager &SM = Rewrite.getSourceMgr();
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp 20 CharSourceRange getLexicalDeclRange(Decl *D, const SourceManager &SM,
86 const SourceManager &SM = Context.getSourceManager();
142 const SourceManager &SM = Context.getSourceManager();
tools/clang/lib/Tooling/Refactoring/AtomicChange.cpp 196 AtomicChange::AtomicChange(const SourceManager &SM,
252 llvm::Error AtomicChange::replace(const SourceManager &SM,
258 llvm::Error AtomicChange::replace(const SourceManager &SM, SourceLocation Loc,
263 llvm::Error AtomicChange::insert(const SourceManager &SM, SourceLocation Loc,
tools/clang/lib/Tooling/Refactoring/Extract/Extract.cpp 109 SourceManager &SM = AST.getSourceManager();
tools/clang/lib/Tooling/Refactoring/Extract/SourceExtraction.cpp 21 bool isSemicolonAtLocation(SourceLocation TokenLoc, const SourceManager &SM,
61 const SourceManager &SM) {
73 const SourceManager &SM,
tools/clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp 146 const SourceManager &SM, const SymbolName &NewName) {
206 const SourceManager &SourceMgr = Context.getSourceManager();
tools/clang/lib/Tooling/Refactoring/Rename/USRFinder.cpp 78 const SourceManager &SM = Context.getSourceManager();
tools/clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp 200 bool FindSymbol(ASTContext &Context, const SourceManager &SourceMgr,
253 const SourceManager &SourceMgr = Context.getSourceManager();
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp 43 bool IsValidEditLoc(const clang::SourceManager& SM, clang::SourceLocation Loc) {
71 const SourceManager &SM = Context.getSourceManager();
516 const SourceManager &SM =
tools/clang/lib/Tooling/RefactoringCallbacks.cpp 72 static Replacement replaceStmtWithText(SourceManager &Sources, const Stmt &From,
77 static Replacement replaceStmtWithStmt(SourceManager &Sources, const Stmt &From,
tools/clang/lib/Tooling/Syntax/Tokens.cpp 49 llvm::StringRef syntax::Token::text(const SourceManager &SM) const {
56 FileRange syntax::Token::range(const SourceManager &SM) const {
64 FileRange syntax::Token::range(const SourceManager &SM,
84 FileRange::FileRange(const SourceManager &SM, SourceLocation BeginLoc,
92 FileRange::FileRange(const SourceManager &SM, SourceLocation BeginLoc,
112 llvm::StringRef FileRange::text(const SourceManager &SM) const {
250 std::vector<syntax::Token> syntax::tokenize(FileID FID, const SourceManager &SM,
349 const SourceManager &SM, const LangOptions &LangOpts)
548 const SourceManager &SM;
565 std::string syntax::Token::dumpForTests(const SourceManager &SM) const {
tools/clang/lib/Tooling/Syntax/Tree.cpp 17 syntax::Arena::Arena(SourceManager &SourceMgr, const LangOptions &LangOpts,
69 const SourceManager &SM) {
tools/clang/lib/Tooling/Transformer/RangeSelector.cpp 66 const SourceManager &SM,
81 const SourceManager &SM,
100 static SourceLocation findOpenParen(const CallExpr &E, const SourceManager &SM,
tools/clang/lib/Tooling/Transformer/SourceCode.cpp 35 const SourceManager &SM,
tools/clang/tools/arcmt-test/arcmt-test.cpp 309 SourceManager &SM = Ctx.getSourceManager();
319 SourceManager &SM = Ctx.getSourceManager();
tools/clang/tools/c-index-test/core_main.cpp 101 SourceManager &SM = Ctx.getSourceManager();
139 SourceManager &SM = Ctx.getSourceManager();
162 SourceManager &SM = PP->getSourceManager();
tools/clang/tools/clang-check/ClangCheck.cpp 113 clang::SourceManager& SourceMgr,
tools/clang/tools/clang-diff/ClangDiff.cpp 286 const SourceManager &SrcMgr = Tree.getASTContext().getSourceManager();
tools/clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp 53 SourceManager &SM;
tools/clang/tools/clang-format/ClangFormat.cpp 166 SourceManager &Sources, FileManager &Files,
191 SourceManager Sources(Diagnostics, Files);
309 SourceManager Sources(*Diags, Files);
442 SourceManager Sources(Diagnostics, Files);
tools/clang/tools/clang-import-test/clang-import-test.cpp 100 SourceManager &SM) {
133 SourceManager &SM = Info.getSourceManager();
286 SourceManager &SM = CI.getSourceManager();
tools/clang/tools/clang-refactor/ClangRefactor.cpp 83 forAllRanges(const SourceManager &SM,
102 bool forAllRanges(const SourceManager &SM,
117 bool forAllRanges(const SourceManager &SM,
tools/clang/tools/clang-refactor/TestSupport.cpp 42 const SourceManager &SM,
tools/clang/tools/clang-refactor/TestSupport.h 61 bool foreachRange(const SourceManager &SM,
tools/clang/tools/clang-rename/ClangRename.cpp 220 SourceManager Sources(Diagnostics, FileMgr);
tools/clang/tools/extra/clang-apply-replacements/include/clang-apply-replacements/Tooling/ApplyReplacements.h 91 clang::SourceManager &SM);
tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp 141 const clang::SourceManager &SM) {
191 clang::SourceManager &SM) {
235 SourceManager SM(Diagnostics, Files);
tools/clang/tools/extra/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp 131 SourceManager SM(Diagnostics, Files);
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp 97 getLexerStartingFromLoc(SourceLocation Loc, const SourceManager &SM,
119 const SourceManager &SM,
160 const SourceManager &SM) {
184 const SourceManager &SM,
194 const SourceManager &SM) {
277 bool isDeclVisibleAtLocation(const SourceManager &SM, const Decl *D,
659 const SourceManager &SM,
684 const SourceManager &SM = *Result.SourceManager;
739 const SourceManager &SM = *Result.SourceManager;
973 auto &SM = *NsMoves.begin()->SourceMgr;
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.h 99 SourceManager *SourceMgr;
tools/clang/tools/extra/clang-change-namespace/tool/ClangChangeNamespace.cpp 130 SourceManager Sources(Diagnostics, FileMgr);
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp 62 getIncludeFixerContext(const clang::SourceManager &SourceManager,
257 const auto &SM = CI->getSourceManager();
302 StringRef Include, const clang::SourceManager &SourceManager,
325 const clang::SourceManager &SourceManager,
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.h 113 const clang::SourceManager &SourceManager,
118 const clang::SourceManager &SourceManager,
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllMacros.h 28 explicit FindAllMacros(SymbolReporter *Reporter, SourceManager *SM,
55 SourceManager *const SM;
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp 73 CreateSymbolInfo(const NamedDecl *ND, const SourceManager &SM,
252 const SourceManager *SM = Result.SourceManager;
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/PathConfig.cpp 16 std::string getIncludePath(const SourceManager &SM, SourceLocation Loc,
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/PathConfig.h 30 std::string getIncludePath(const SourceManager &SM, SourceLocation Loc,
tools/clang/tools/extra/clang-include-fixer/tool/ClangIncludeFixer.cpp 455 SourceManager SM(Diagnostics, tool.getFiles());
tools/clang/tools/extra/clang-move/Move.cpp 87 std::string MakeAbsolutePath(const SourceManager &SM, StringRef Path) {
114 auto &SourceManager = Finder->getASTContext().getSourceManager();
128 explicit FindAllIncludes(SourceManager *SM, ClangMoveTool *const MoveTool)
144 const SourceManager &SM;
230 SourceManager *SM = &Result.Context->getSourceManager();
242 void MatchClassMethod(const CXXMethodDecl *CMD, SourceManager *SM) {
257 void MatchClassStaticVariable(const NamedDecl *VD, SourceManager *SM) {
261 void MatchClassDeclaration(const CXXRecordDecl *CD, SourceManager *SM) {
280 const auto &SM = D->getASTContext().getSourceManager();
313 const auto &SM = D->getASTContext().getSourceManager();
329 const auto &SM = D->getASTContext().getSourceManager();
337 const auto &SM = D->getASTContext().getSourceManager();
492 const auto &SM = Decl->getASTContext().getSourceManager();
691 const SourceManager &SM) {
748 const auto &SM = RemovedDecl->getASTContext().getSourceManager();
758 const auto &SM = RemovedDecls[0]->getASTContext().getSourceManager();
843 void ClangMoveTool::moveAll(SourceManager &SM, StringRef OldFile,
925 auto &SM = RemovedDecls[0]->getASTContext().getSourceManager();
tools/clang/tools/extra/clang-move/Move.h 141 const SourceManager &SM);
161 void moveAll(SourceManager& SM, StringRef OldFile, StringRef NewFile);
tools/clang/tools/extra/clang-move/tool/ClangMove.cpp 177 SourceManager SM(Diagnostics, FileMgr);
tools/clang/tools/extra/clang-reorder-fields/tool/ClangReorderFields.cpp 76 SourceManager Sources(Diagnostics, FileMgr);
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp 113 SourceManager &getSourceManager() { return SourceMgr; }
283 SourceManager SourceMgr;
376 SourceManager *SM = &Compiler.getSourceManager();
tools/clang/tools/extra/clang-tidy/ClangTidyCheck.h 71 virtual void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp 169 void ClangTidyContext::setSourceManager(SourceManager *SourceMgr) {
295 static bool LineIsMarkedWithNOLINT(const SourceManager &SM, SourceLocation Loc,
341 static bool LineIsMarkedWithNOLINTinMacro(const SourceManager &SM,
528 const SourceManager &Sources) {
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.h 103 void setSourceManager(SourceManager *SourceMgr);
254 void checkFilters(SourceLocation Location, const SourceManager &Sources);
tools/clang/tools/extra/clang-tidy/ExpandModularHeadersPPCallbacks.h 122 SourceManager &Sources;
tools/clang/tools/extra/clang-tidy/abseil/AbseilMatcher.h 34 auto &SourceManager = Finder->getASTContext().getSourceManager();
tools/clang/tools/extra/clang-tidy/abseil/StringFindStartswithCheck.cpp 62 const SourceManager &Source = Context.getSourceManager();
117 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
tools/clang/tools/extra/clang-tidy/abseil/StringFindStartswithCheck.h 31 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/android/CloexecCheck.cpp 25 std::string buildFixMsgForStringFlag(const Expr *Arg, const SourceManager &SM,
58 SourceManager &SM = *Result.SourceManager;
105 const SourceManager &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/android/ComparisonInTempFailureRetryCheck.cpp 26 const SourceManager &SM = Finder->getASTContext().getSourceManager();
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp 66 auto &SM = Ctx->getSourceManager();
tools/clang/tools/extra/clang-tidy/bugprone/AssertSideEffectCheck.cpp 102 const SourceManager &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/bugprone/LambdaFunctionNameCheck.cpp 68 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
tools/clang/tools/extra/clang-tidy/bugprone/LambdaFunctionNameCheck.h 39 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/bugprone/MacroParenthesesCheck.cpp 252 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
tools/clang/tools/extra/clang-tidy/bugprone/MacroParenthesesCheck.h 35 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/bugprone/MacroRepeatedSideEffectsCheck.cpp 175 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
tools/clang/tools/extra/clang-tidy/bugprone/MacroRepeatedSideEffectsCheck.h 23 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/bugprone/MoveForwardingReferenceCheck.cpp 26 const SourceManager &SM = Context.getSourceManager();
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp 510 const SourceManager &SM, Preprocessor *pp, Preprocessor *ModuleExpanderPP) {
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.h 32 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/bugprone/PosixReturnCheck.cpp 24 const SourceManager &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousMissingCommaCheck.cpp 38 const SourceManager &SM = Ctx->getSourceManager();
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousSemicolonCheck.cpp 44 auto &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/cert/SetLongJmpCheck.cpp 44 void SetLongJmpCheck::registerPPCallbacks(const SourceManager &SM,
tools/clang/tools/extra/clang-tidy/cert/SetLongJmpCheck.h 28 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/InitVariablesCheck.cpp 39 void InitVariablesCheck::registerPPCallbacks(const SourceManager &SM,
50 const SourceManager &Source = Context.getSourceManager();
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/InitVariablesCheck.h 27 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/MacroUsageCheck.cpp 33 MacroUsageCallbacks(MacroUsageCheck *Check, const SourceManager &SM,
58 const SourceManager &SM;
71 void MacroUsageCheck::registerPPCallbacks(const SourceManager &SM,
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/MacroUsageCheck.h 33 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp 34 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.h 31 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/fuchsia/RestrictSystemIncludesCheck.cpp 26 const SourceManager &SM)
56 const SourceManager &SM;
104 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
tools/clang/tools/extra/clang-tidy/fuchsia/RestrictSystemIncludesCheck.h 31 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp 118 SourceManager &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/google/AvoidNSObjectNewCheck.cpp 61 const SourceManager &SM,
69 const SourceManager &SM,
tools/clang/tools/extra/clang-tidy/google/AvoidUnderscoreInGoogletestNameCheck.cpp 80 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
tools/clang/tools/extra/clang-tidy/google/AvoidUnderscoreInGoogletestNameCheck.h 25 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/google/ExplicitConstructorCheck.cpp 42 static SourceRange FindToken(const SourceManager &Sources,
tools/clang/tools/extra/clang-tidy/google/TodoCommentCheck.cpp 60 void TodoCommentCheck::registerPPCallbacks(const SourceManager &SM,
tools/clang/tools/extra/clang-tidy/google/TodoCommentCheck.h 27 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/google/UpgradeGoogletestCaseCheck.cpp 121 void UpgradeGoogletestCaseCheck::registerPPCallbacks(const SourceManager &,
tools/clang/tools/extra/clang-tidy/google/UpgradeGoogletestCaseCheck.h 28 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/llvm/IncludeOrderCheck.cpp 24 const SourceManager &SM)
49 const SourceManager &SM;
53 void IncludeOrderCheck::registerPPCallbacks(const SourceManager &SM,
tools/clang/tools/extra/clang-tidy/llvm/IncludeOrderCheck.h 25 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp 323 const SourceManager &SM = Finder->getASTContext().getSourceManager();
619 const SourceManager &SM = AstCtx->getSourceManager();
tools/clang/tools/extra/clang-tidy/misc/StaticAssertCheck.cpp 82 const SourceManager &SM = ASTCtx->getSourceManager();
146 const SourceManager &SM = ASTCtx->getSourceManager();
tools/clang/tools/extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp 19 static bool locationsInSameFile(const SourceManager &Sources,
40 const SourceManager &Sources,
83 const SourceManager &Sources = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/modernize/DeprecatedHeadersCheck.cpp 44 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
tools/clang/tools/extra/clang-tidy/modernize/DeprecatedHeadersCheck.h 39 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/modernize/DeprecatedIosBaseAliasesCheck.cpp 46 SourceManager &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp 359 static StringRef getStringFromRange(SourceManager &SourceMgr,
507 void LoopConvertCheck::getAliasRange(SourceManager &SM, SourceRange &Range) {
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.h 36 void getAliasRange(SourceManager &SM, SourceRange &DeclRange);
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp 28 const SourceManager &SM,
68 void MakeSmartPtrCheck::registerPPCallbacks(const SourceManager &SM,
115 SourceManager &SM = *Result.SourceManager;
143 void MakeSmartPtrCheck::checkConstruct(SourceManager &SM, ASTContext *Ctx,
209 void MakeSmartPtrCheck::checkReset(SourceManager &SM, ASTContext *Ctx,
257 const CXXNewExpr *New, SourceManager &SM,
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.h 29 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
55 void checkConstruct(SourceManager &SM, ASTContext *Ctx,
58 void checkReset(SourceManager &SM, ASTContext *Ctx,
63 SourceManager &SM, ASTContext *Ctx);
tools/clang/tools/extra/clang-tidy/modernize/PassByValueCheck.cpp 167 void PassByValueCheck::registerPPCallbacks(const SourceManager &SM,
185 SourceManager &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/modernize/PassByValueCheck.h 25 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/modernize/RedundantVoidArgCheck.cpp 242 SourceManager *SM = Result.SourceManager;
tools/clang/tools/extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp 135 void ReplaceAutoPtrCheck::registerPPCallbacks(const SourceManager &SM,
149 SourceManager &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/modernize/ReplaceAutoPtrCheck.h 48 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/modernize/ReplaceRandomShuffleCheck.cpp 46 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
tools/clang/tools/extra/clang-tidy/modernize/ReplaceRandomShuffleCheck.h 27 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/modernize/UseNullptrCheck.cpp 51 const SourceManager &SM) {
58 void replaceWithNullptr(ClangTidyCheck &Check, SourceManager &SM,
77 StringRef getOutermostMacroName(SourceLocation Loc, const SourceManager &SM,
95 MacroArgUsageVisitor(SourceLocation CastLoc, const SourceManager &SM)
153 const SourceManager &SM;
455 SourceManager &SM;
tools/clang/tools/extra/clang-tidy/modernize/UseOverrideCheck.cpp 49 const SourceManager &Sources = *Result.SourceManager;
80 static StringRef GetText(const Token &Tok, const SourceManager &Sources) {
87 const SourceManager &Sources = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp 105 const SourceManager &SM) {
115 const SourceManager &SM, const LangOptions &LangOpts) {
261 const FunctionDecl &F, const ASTContext &Ctx, const SourceManager &SM,
320 const SourceManager &SM, const LangOptions &LangOpts) {
385 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
410 const SourceManager &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.h 34 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
43 const SourceManager &SM, const LangOptions &LangOpts);
46 const SourceManager &SM,
50 const SourceManager &SM,
55 const SourceManager &SM, const LangOptions &LangOpts);
tools/clang/tools/extra/clang-tidy/modernize/UseUsingCheck.cpp 32 static bool CheckRemoval(SourceManager &SM, SourceLocation StartLoc,
84 auto &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp 118 SourceManager &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp 182 const SourceManager &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/performance/MoveConstArgCheck.cpp 20 const SourceManager &SM,
65 SourceManager &SM = Result.Context->getSourceManager();
tools/clang/tools/extra/clang-tidy/performance/MoveConstructorInitCheck.cpp 95 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
tools/clang/tools/extra/clang-tidy/performance/MoveConstructorInitCheck.h 31 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/performance/NoexceptMoveConstructorCheck.cpp 55 SourceManager &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/performance/TypePromotionInMathFnCheck.cpp 38 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
tools/clang/tools/extra/clang-tidy/performance/TypePromotionInMathFnCheck.h 32 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp 171 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
199 const auto &SM = Context.getSourceManager();
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.h 30 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/readability/AvoidConstParamsInDecls.cpp 52 const SourceManager &Sources = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp 21 tok::TokenKind getTokenKind(SourceLocation Loc, const SourceManager &SM,
37 const SourceManager &SM,
54 const SourceManager &SM,
135 const SourceManager &SM = *Result.SourceManager;
173 const SourceManager &SM,
220 const SourceManager &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/readability/BracesAroundStatementsCheck.h 56 SourceLocation findRParenLoc(const IfOrWhileStmt *S, const SourceManager &SM,
tools/clang/tools/extra/clang-tidy/readability/ConvertMemberFunctionsToStatic.cpp 95 static StringRef getStringFromRange(SourceManager &SourceMgr,
107 SourceManager &SourceMgr,
tools/clang/tools/extra/clang-tidy/readability/FunctionSizeCheck.cpp 168 SourceManager *SM = Result.SourceManager;
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp 247 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
673 SourceRange Range, SourceManager *SourceMgr = nullptr) {
703 SourceManager *SourceMgr = nullptr) {
883 void IdentifierNamingCheck::checkMacro(SourceManager &SourceMgr,
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.h 42 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
94 void checkMacro(SourceManager &sourceMgr, const Token &MacroNameTok,
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp 25 SourceManager &SM = Finder->getASTContext().getSourceManager();
31 SourceManager &SM = Context.getSourceManager();
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp 36 const SourceManager &SM,
109 declRanges(const DeclStmt *DS, const SourceManager &SM,
204 collectSourceRanges(llvm::ArrayRef<SourceRange> Ranges, const SourceManager &SM,
tools/clang/tools/extra/clang-tidy/readability/MagicNumbersCheck.cpp 155 bool MagicNumbersCheck::isSyntheticValue(const SourceManager *SourceManager,
tools/clang/tools/extra/clang-tidy/readability/MagicNumbersCheck.h 39 bool isSyntheticValue(const clang::SourceManager *,
44 bool isSyntheticValue(const clang::SourceManager *SourceManager,
tools/clang/tools/extra/clang-tidy/readability/MisleadingIndentationCheck.cpp 19 static const IfStmt *getPrecedingIf(const SourceManager &SM,
33 void MisleadingIndentationCheck::danglingElseCheck(const SourceManager &SM,
56 void MisleadingIndentationCheck::missingBracesCheck(const SourceManager &SM,
tools/clang/tools/extra/clang-tidy/readability/MisleadingIndentationCheck.h 32 void danglingElseCheck(const SourceManager &SM, ASTContext *Context,
34 void missingBracesCheck(const SourceManager &SM, const CompoundStmt *CStmt);
tools/clang/tools/extra/clang-tidy/readability/NamedParameterCheck.cpp 25 const SourceManager &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/readability/NamespaceCommentCheck.cpp 43 static bool locationsInSameFile(const SourceManager &Sources,
70 const SourceManager &Sources = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/readability/RedundantControlFlowCheck.cpp 27 bool isLocationInMacroExpansion(const SourceManager &SM, SourceLocation Loc) {
75 SourceManager &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/readability/RedundantDeclarationCheck.cpp 57 const SourceManager &SM = *Result.SourceManager;
tools/clang/tools/extra/clang-tidy/readability/RedundantPreprocessorCheck.cpp 100 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
tools/clang/tools/extra/clang-tidy/readability/RedundantPreprocessorCheck.h 27 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp 66 const SourceManager &SM) {
78 const SourceManager &SM) {
109 const SourceManager &SM, const LangOptions &LO) {
tools/clang/tools/extra/clang-tidy/utils/ASTUtils.cpp 42 bool exprHasBitFlagWithSpelling(const Expr *Flags, const SourceManager &SM,
70 const SourceManager *SM) {
85 bool rangeContainsMacroExpansion(SourceRange Range, const SourceManager *SM) {
90 bool rangeCanBeFixed(SourceRange Range, const SourceManager *SM) {
tools/clang/tools/extra/clang-tidy/utils/ASTUtils.h 26 bool exprHasBitFlagWithSpelling(const Expr *Flags, const SourceManager &SM,
32 const SourceManager *SM);
35 bool rangeContainsMacroExpansion(SourceRange Range, const SourceManager *SM);
39 bool rangeCanBeFixed(SourceRange Range, const SourceManager *SM);
tools/clang/tools/extra/clang-tidy/utils/HeaderFileExtensionsUtils.cpp 18 SourceLocation Loc, const SourceManager &SM,
26 SourceLocation Loc, SourceManager &SM,
34 SourceLocation Loc, SourceManager &SM,
tools/clang/tools/extra/clang-tidy/utils/HeaderFileExtensionsUtils.h 25 SourceLocation Loc, const SourceManager &SM,
30 SourceLocation Loc, SourceManager &SM,
35 SourceLocation Loc, SourceManager &SM,
tools/clang/tools/extra/clang-tidy/utils/HeaderGuard.cpp 38 SourceManager &SM = PP->getSourceManager();
71 SourceManager &SM = PP->getSourceManager();
217 SourceManager &SM = PP->getSourceManager();
269 void HeaderGuardCheck::registerPPCallbacks(const SourceManager &SM,
tools/clang/tools/extra/clang-tidy/utils/HeaderGuard.h 35 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/utils/IncludeInserter.cpp 37 IncludeInserter::IncludeInserter(const SourceManager &SourceMgr,
tools/clang/tools/extra/clang-tidy/utils/IncludeInserter.h 58 IncludeInserter(const SourceManager &SourceMgr, const LangOptions &LangOpts,
76 const SourceManager &SourceMgr;
tools/clang/tools/extra/clang-tidy/utils/IncludeSorter.cpp 85 IncludeSorter::IncludeSorter(const SourceManager *SourceMgr,
tools/clang/tools/extra/clang-tidy/utils/IncludeSorter.h 45 IncludeSorter(const SourceManager *SourceMgr, const LangOptions *LangOpts,
68 const SourceManager *SourceMgr;
tools/clang/tools/extra/clang-tidy/utils/LexerUtils.cpp 16 Token getPreviousToken(SourceLocation Location, const SourceManager &SM,
34 const SourceManager &SM,
47 const SourceManager &SM,
66 SourceLocation findNextTerminator(SourceLocation Start, const SourceManager &SM,
72 const SourceManager &SM,
97 const SourceManager &SM) {
tools/clang/tools/extra/clang-tidy/utils/LexerUtils.h 22 Token getPreviousToken(SourceLocation Location, const SourceManager &SM,
26 const SourceManager &SM,
30 const SourceManager &SM,
34 SourceLocation findNextTerminator(SourceLocation Start, const SourceManager &SM,
39 const SourceManager &SM,
61 const SourceManager &SM,
87 const SourceManager &SM,
96 const SourceManager &SM);
tools/clang/tools/extra/clang-tidy/utils/NamespaceAliaser.cpp 21 NamespaceAliaser::NamespaceAliaser(const SourceManager &SourceMgr)
tools/clang/tools/extra/clang-tidy/utils/NamespaceAliaser.h 27 explicit NamespaceAliaser(const SourceManager &SourceMgr);
42 const SourceManager &SourceMgr;
tools/clang/tools/extra/clang-tidy/utils/TransformerClangTidyCheck.cpp 50 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {
tools/clang/tools/extra/clang-tidy/utils/TransformerClangTidyCheck.h 57 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/extra/clang-tidy/utils/UsingInserter.cpp 29 UsingInserter::UsingInserter(const SourceManager &SourceMgr)
tools/clang/tools/extra/clang-tidy/utils/UsingInserter.h 27 UsingInserter(const SourceManager &SourceMgr);
42 const SourceManager &SourceMgr;
tools/clang/tools/extra/clangd/AST.cpp 208 const SourceManager &SM) {
tools/clang/tools/extra/clangd/AST.h 74 const SourceManager &SM);
tools/clang/tools/extra/clangd/CodeComplete.cpp 221 auto &SM = SemaResult->Declaration->getASTContext().getSourceManager();
488 const SourceManager &SM) {
812 SourceManager &SrcMgr = S.getSourceManager();
1280 const auto &SM = Recorder->CCSema->getSourceManager();
tools/clang/tools/extra/clangd/CollectMacros.h 34 explicit CollectMainFileMacros(const SourceManager &SM,
87 const SourceManager &SM;
tools/clang/tools/extra/clangd/Compiler.cpp 28 auto &SourceMgr = Info.getSourceManager();
tools/clang/tools/extra/clangd/Diagnostics.cpp 79 const SourceManager &M) {
90 auto &M = D.getSourceManager();
121 const SourceManager &SM = Info.getSourceManager();
520 SourceManager &SM = Info.getSourceManager();
tools/clang/tools/extra/clangd/FindSymbols.cpp 132 auto &SM = Ctx.getSourceManager();
tools/clang/tools/extra/clangd/Format.cpp 26 auto &SM = FileSM.get();
tools/clang/tools/extra/clangd/Headers.cpp 26 RecordHeaders(const SourceManager &SM, IncludeStructure *Out)
62 const SourceManager &SM;
113 collectIncludeStructureCallback(const SourceManager &SM,
tools/clang/tools/extra/clangd/Headers.h 140 collectIncludeStructureCallback(const SourceManager &SM, IncludeStructure *Out);
tools/clang/tools/extra/clangd/IncludeFixer.cpp 195 llvm::Optional<std::string> qualifiedByUnresolved(const SourceManager &SM,
232 const SourceManager &SM, const DeclarationNameInfo &Unresolved,
tools/clang/tools/extra/clangd/ParsedAST.cpp 72 auto &SM = D->getASTContext().getSourceManager();
135 const SourceManager &SM, Preprocessor &PP,
206 const SourceManager &SM;
tools/clang/tools/extra/clangd/ParsedAST.h 73 SourceManager &getSourceManager() {
76 const SourceManager &getSourceManager() const {
tools/clang/tools/extra/clangd/Preamble.cpp 73 const SourceManager *SourceMgr = nullptr;
tools/clang/tools/extra/clangd/Quality.cpp 44 auto &SourceMgr = D.getASTContext().getSourceManager();
54 const auto &SourceMgr = Context.getSourceManager();
tools/clang/tools/extra/clangd/Selection.cpp 37 SelectedTokens(llvm::ArrayRef<syntax::Token> Spelled, const SourceManager &SM,
420 SourceManager &SM;
486 const SourceManager &SM = AST.getSourceManager();
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp 274 const auto &SM = AST.getSourceManager();
tools/clang/tools/extra/clangd/SemanticSelection.cpp 32 const auto &SM = AST.getSourceManager();
tools/clang/tools/extra/clangd/SourceCode.cpp 199 Position sourceLocToPosition(const SourceManager &SM, SourceLocation Loc) {
216 bool isSpelledInSource(SourceLocation Loc, const SourceManager &SM) {
227 const SourceManager &SM) {
234 llvm::Optional<Range> getTokenRange(const SourceManager &SM,
263 TokenFlavor getTokenFlavor(SourceLocation Loc, const SourceManager &SM,
285 const SourceManager &SM,
347 bool isValidFileRange(const SourceManager &Mgr, SourceRange R) {
362 bool halfOpenRangeContains(const SourceManager &Mgr, SourceRange R,
377 bool halfOpenRangeTouches(const SourceManager &Mgr, SourceRange R,
382 SourceLocation includeHashLoc(FileID IncludedFile, const SourceManager &SM) {
404 static unsigned getTokenLengthAtLoc(SourceLocation Loc, const SourceManager &SM,
421 const SourceManager &SM,
429 const SourceManager &SM,
436 static SourceRange toTokenRange(CharSourceRange Range, const SourceManager &SM,
446 const SourceManager &SM,
463 static SourceRange rangeInCommonFile(SourceRange R, const SourceManager &SM,
496 getExpansionTokenRangeInSameFile(SourceLocation Loc, const SourceManager &SM,
514 const SourceManager &SM,
541 bool isInsideMainFile(SourceLocation Loc, const SourceManager &SM) {
545 llvm::Optional<SourceRange> toHalfOpenFileRange(const SourceManager &SM,
567 llvm::StringRef toSourceCode(const SourceManager &SM, SourceRange R) {
578 llvm::Expected<SourceLocation> sourceLocationInMainFile(const SourceManager &SM,
588 Range halfOpenToRange(const SourceManager &SM, CharSourceRange R) {
630 const SourceManager &SourceMgr) {
668 TextEdit toTextEdit(const FixItHint &FixIt, const SourceManager &M,
727 auto &SM = FileSM.get();
982 const auto &SM = PP.getSourceManager();
tools/clang/tools/extra/clangd/SourceCode.h 40 Optional<FileDigest> digestFile(const SourceManager &SM, FileID FID);
69 Position sourceLocToPosition(const SourceManager &SM, SourceLocation Loc);
72 llvm::Optional<Range> getTokenRange(const SourceManager &SM,
78 llvm::Expected<SourceLocation> sourceLocationInMainFile(const SourceManager &SM,
86 const SourceManager &SM,
95 bool isInsideMainFile(SourceLocation Loc, const SourceManager &SM);
100 SourceLocation includeHashLoc(FileID IncludedFile, const SourceManager &SM);
108 bool isSpelledInSource(SourceLocation Loc, const SourceManager &SM);
114 const SourceManager &SM);
129 llvm::Optional<SourceRange> toHalfOpenFileRange(const SourceManager &Mgr,
139 bool isValidFileRange(const SourceManager &Mgr, SourceRange R);
143 bool halfOpenRangeContains(const SourceManager &Mgr, SourceRange R,
149 bool halfOpenRangeTouches(const SourceManager &Mgr, SourceRange R,
154 llvm::StringRef toSourceCode(const SourceManager &SM, SourceRange R);
158 Range halfOpenToRange(const SourceManager &SM, CharSourceRange R);
176 TextEdit toTextEdit(const FixItHint &FixIt, const SourceManager &M,
190 const SourceManager &SourceMgr);
tools/clang/tools/extra/clangd/XRefs.cpp 217 const SourceManager &SourceMgr = AST.getSourceManager();
240 const auto &SM = AST.getSourceManager();
383 const SourceManager &SM = AST.getSourceManager();
414 const SourceManager &SM = AST.getSourceManager();
730 SourceManager &SM = AST.getSourceManager();
885 const SourceManager &SM = AST.getSourceManager();
923 const SourceManager &SM = AST.getSourceManager();
986 const SourceManager &SM = AST.getSourceManager();
1038 auto &SM = Ctx.getSourceManager();
1158 const SourceManager &SM = AST.getSourceManager();
tools/clang/tools/extra/clangd/index/FileIndex.cpp 63 const auto &SM = AST.getSourceManager();
tools/clang/tools/extra/clangd/index/IndexAction.cpp 46 IncludeGraphCollector(const SourceManager &SM, IncludeGraph &IG)
121 const SourceManager &SM;
152 auto &SM = D->getASTContext().getSourceManager();
tools/clang/tools/extra/clangd/index/SymbolCollector.cpp 56 std::string toURI(const SourceManager &SM, llvm::StringRef Path,
83 const auto &SM = ND.getASTContext().getSourceManager();
135 getTokenRange(SourceLocation TokLoc, const SourceManager &SM,
152 getTokenLocation(SourceLocation TokLoc, const SourceManager &SM,
176 const auto &SM = ND.getASTContext().getSourceManager();
277 auto &SM = ASTCtx->getSourceManager();
351 const auto &SM = PP->getSourceManager();
503 const auto &SM = ASTCtx->getSourceManager();
554 auto &SM = Ctx.getSourceManager();
634 const auto &SM = ND.getASTContext().getSourceManager();
649 const SourceManager &SM = ASTCtx->getSourceManager();
679 const SourceManager &SM = ASTCtx->getSourceManager();
tools/clang/tools/extra/clangd/index/SymbolCollector.h 86 std::function<bool(const SourceManager &, FileID)> FileFilter = nullptr;
tools/clang/tools/extra/clangd/refactor/Rename.cpp 82 const auto &SM = ASTCtx.getSourceManager();
164 const SourceManager &SM = AST.getSourceManager();
tools/clang/tools/extra/clangd/refactor/Tweak.cpp 53 auto &SM = AST.getSourceManager();
93 Tweak::Effect::fileEdit(const SourceManager &SM, FileID FID,
105 Tweak::Effect::mainFileEdit(const SourceManager &SM,
tools/clang/tools/extra/clangd/refactor/Tweak.h 94 fileEdit(const SourceManager &SM, FileID FID,
100 mainFileEdit(const SourceManager &SM, tooling::Replacements Replacements);
tools/clang/tools/extra/clangd/refactor/tweaks/AnnotateHighlightings.cpp 58 auto &SM = Inputs.AST.getSourceManager();
tools/clang/tools/extra/clangd/refactor/tweaks/DefineInline.cpp 72 const SourceManager &SM = FD->getASTContext().getSourceManager();
101 const FunctionDecl *Target, const SourceManager &SM) {
159 const SourceManager &SM = FD->getASTContext().getSourceManager();
326 const auto &SM = AST.getSourceManager();
tools/clang/tools/extra/clangd/refactor/tweaks/ExpandAutoType.cpp 74 auto& SrcMgr = Inputs.AST.getASTContext().getSourceManager();
111 auto& SrcMgr = Inputs.AST.getASTContext().getSourceManager();
tools/clang/tools/extra/clangd/refactor/tweaks/ExpandMacro.cpp 49 findTokenUnderCursor(const SourceManager &SM,
107 auto &SM = Inputs.AST.getSourceManager();
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp 201 const SourceManager &SM,
223 const SourceManager &SM,
247 const SourceManager &SM,
299 std::string renderDefinition(const SourceManager &SM) const;
305 std::string getFuncBody(const SourceManager &SM) const;
337 std::string NewFunction::renderDefinition(const SourceManager &SM) const {
342 std::string NewFunction::getFuncBody(const SourceManager &SM) const {
570 getSemicolonPolicy(ExtractionZone &ExtZone, const SourceManager &SM,
598 const SourceManager &SM,
632 const SourceManager &SM,
640 const SourceManager &SM) {
647 const SourceManager &SM = Inputs.AST.getSourceManager();
657 const SourceManager &SM = Inputs.AST.getSourceManager();
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp 38 ExtractionContext(const SelectionTree::Node *Node, const SourceManager &SM,
58 const SourceManager &SM;
87 const SourceManager &SM,
254 bool crossesMacroBoundary(const SourceManager &SM) {
276 const SourceManager &SM,
453 const SourceManager &SM = Inputs.AST.getSourceManager();
tools/clang/tools/extra/clangd/refactor/tweaks/RawStringLiteral.cpp 53 SourceManager &SM) {
91 auto &SM = Inputs.AST.getSourceManager();
tools/clang/tools/extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp 72 auto &SM = Ctx.getSourceManager();
130 auto &SM = Ctx.getSourceManager();
tools/clang/tools/extra/clangd/refactor/tweaks/SwapIfBranches.cpp 66 auto &SrcMgr = Inputs.AST.getSourceManager();
tools/clang/tools/extra/clangd/unittests/FindTargetTests.cpp 540 auto &SM = AST.getSourceManager();
tools/clang/tools/extra/clangd/unittests/ParsedASTTests.cpp 181 const auto &SM = AST.getSourceManager();
207 const auto &SM = AST.getSourceManager();
tools/clang/tools/extra/clangd/unittests/SelectionTests.cpp 42 const SourceManager &SM = AST.getSourceManager();
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp 292 SourceManager &SM = Owner.get();
360 const auto &SourceMgr = AST.getSourceManager();
511 const auto& SM = AST.getSourceManager();
551 const SourceManager &SM = AST.getSourceManager();
612 const auto& SM = AST.getSourceManager();
tools/clang/tools/extra/clangd/unittests/SymbolCollectorTests.cpp 127 const SourceManager &SM = AST->getSourceManager();
tools/clang/tools/extra/clangd/unittests/TweakTests.cpp 65 SourceManager SM(DE, FM);
tools/clang/tools/extra/modularize/Modularize.cpp 389 Location(SourceManager &SM, SourceLocation Loc) : File(), Line(), Column() {
545 CollectEntitiesVisitor(SourceManager &SM, EntityMap &Entities,
649 SourceManager &SM;
669 SourceManager &SM = Ctx.getSourceManager();
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp 58 SourceMgr(new SourceManager(*Diagnostics, *FileMgr, false)),
tools/clang/tools/extra/modularize/ModularizeUtilities.h 215 llvm::IntrusiveRefCntPtr<clang::SourceManager> SourceMgr;
tools/clang/tools/extra/unittests/clang-apply-replacements/ApplyReplacementsTest.cpp 42 SourceManager SM(Diagnostics, Files);
tools/clang/tools/extra/unittests/clang-tidy/IncludeInserterTest.cpp 34 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
tools/clang/tools/libclang/CIndex.cpp 107 static RangeComparisonResult RangeCompare(SourceManager &SM,
123 static RangeComparisonResult LocationCompare(SourceManager &SM,
142 CXSourceRange cxloc::translateSourceRange(const SourceManager &SM,
173 static SourceRange getFullCursorExtent(CXCursor C, SourceManager &SrcMgr);
236 SourceManager &SM = Visitor.getASTUnit()->getSourceManager();
257 SourceManager &SM = Unit->getSourceManager();
306 SourceManager &SM = Unit->getSourceManager();
404 SourceManager &SM = AU->getSourceManager();
986 SourceManager &SM, SourceLocation EndLoc,
1019 SourceManager &SM = AU->getSourceManager();
4266 const SourceManager &SM = cxtu::getASTUnit(TU)->getSourceManager();
5551 GetCursorData(SourceManager &SM,
6076 static SourceRange getFullCursorExtent(CXCursor C, SourceManager &SrcMgr) {
6544 SourceManager &SM = FD->getASTContext().getSourceManager();
6703 SourceManager &SourceMgr = CXXUnit->getSourceManager();
6790 SourceManager &SM = CXXUnit->getSourceManager();
6870 SourceManager &SrcMgr;
7353 SourceManager &SM;
7359 MarkMacroArgTokensVisitor(SourceManager &SM,
7444 SourceManager &SourceMgr = CXXUnit->getSourceManager();
7562 SourceManager &SM = CXXUnit->getSourceManager();
8601 const SourceManager::MemoryBufferSizes &srcBufs =
8675 SourceManager &sm = Ctx.getSourceManager();
8848 SourceManager &SM = Unit->getSourceManager();
tools/clang/tools/libclang/CIndexCodeCompletion.cpp 271 IntrusiveRefCntPtr<SourceManager> SourceMgr;
363 SourceMgr(new SourceManager(*Diag, *this->FileMgr)),
tools/clang/tools/libclang/CIndexHigh.cpp 132 static SourceLocation getFileSpellingLoc(SourceManager &SM,
186 SourceManager &SM = Ctx.getSourceManager();
216 SourceManager &SM = cxtu::getASTUnit(TU)->getSourceManager();
281 SourceManager &SM = Ctx.getSourceManager();
314 SourceManager &SM = Unit->getSourceManager();
359 SourceManager &SM = Ctx.getSourceManager();
386 SourceManager &SM = Unit->getSourceManager();
tools/clang/tools/libclang/CIndexInclusionStack.cpp 26 SourceManager &SM = CXXUnit->getSourceManager();
77 SourceManager &SM = cxtu::getASTUnit(TU)->getSourceManager();
86 getInclusions(&SourceManager::getLoadedSLocEntry,
94 getInclusions(&SourceManager::getLocalSLocEntry, n, TU, CB, clientData);
tools/clang/tools/libclang/CXIndexDataConsumer.cpp 936 SourceManager &SM = Ctx->getSourceManager();
1014 SourceManager &SM = Ctx->getSourceManager();
1109 SourceManager &SM = Ctx->getSourceManager();
tools/clang/tools/libclang/CXSourceLocation.cpp 205 const SourceManager &SM =
216 const SourceManager &SM =
238 const SourceManager &SM =
280 const SourceManager &SM =
318 const SourceManager &SM =
355 const SourceManager &SM =
tools/clang/tools/libclang/CXSourceLocation.h 29 translateSourceLocation(const SourceManager &SM, const LangOptions &LangOpts,
53 CXSourceRange translateSourceRange(const SourceManager &SM,
tools/clang/tools/libclang/Indexing.cpp 252 SourceManager &SM = PP.getSourceManager();
384 const SourceManager &SM = D->getASTContext().getSourceManager();
tools/clang/unittests/AST/ASTImporterTest.cpp 1734 SourceManager &SM1, SourceManager &SM2) {
1734 SourceManager &SM1, SourceManager &SM2) {
1760 SourceManager &ToSM = ToAST->getASTContext().getSourceManager();
1761 SourceManager &FromSM = FromD->getASTContext().getSourceManager();
1781 SourceManager &ToSM = ToAST->getASTContext().getSourceManager();
1782 SourceManager &FromSM = FromD->getASTContext().getSourceManager();
tools/clang/unittests/AST/ASTVectorTest.cpp 36 SourceManager SourceMgr;
tools/clang/unittests/AST/CommentLexer.cpp 41 SourceManager SourceMgr;
tools/clang/unittests/AST/CommentParser.cpp 47 SourceManager SourceMgr;
tools/clang/unittests/AST/CommentTextTest.cpp 32 SourceManager& SourceMgr = FileSourceMgr.get();
tools/clang/unittests/AST/DeclTest.cpp 79 SourceManager &SM = AST->getSourceManager();
tools/clang/unittests/Basic/SourceManagerTest.cpp 46 SourceManager SourceMgr;
tools/clang/unittests/CodeGen/BufferSourceTest.cpp 72 clang::SourceManager &sm = compiler.getSourceManager();
tools/clang/unittests/CodeGen/CodeGenExternalTest.cpp 292 clang::SourceManager &sm = compiler.getSourceManager();
tools/clang/unittests/CodeGen/IncrementalProcessingTest.cpp 59 clang::SourceManager &SM = S.getSourceManager();
tools/clang/unittests/CodeGen/TBAAMetadataTest.cpp 69 clang::SourceManager &sm = compiler.getSourceManager();
tools/clang/unittests/Index/IndexTests.cpp 37 const SourceManager &SM) {
tools/clang/unittests/Lex/HeaderSearchTest.cpp 53 SourceManager SourceMgr;
tools/clang/unittests/Lex/LexerTest.cpp 108 SourceManager SourceMgr;
tools/clang/unittests/Lex/PPCallbacksTest.cpp 133 SourceManager SourceMgr;
tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp 46 SourceManager SourceMgr;
tools/clang/unittests/Tooling/ASTSelectionTest.cpp 21 SourceLocation translate(const SourceManager &SM) {
46 const SourceManager &SM = Context.getSourceManager();
tools/clang/unittests/Tooling/CommentHandlerTest.cpp 40 SourceManager &SM = PP.getSourceManager();
tools/clang/unittests/Tooling/LexicallyOrderedRecursiveASTVisitorTest.cpp 23 const SourceManager &SM, bool EmitDeclIndices,
55 const SourceManager &SM = Context.getSourceManager();
tools/clang/unittests/Tooling/RefactoringActionRulesTest.cpp 74 const SourceManager &SM = Context.getSources();
tools/clang/unittests/Tooling/RefactoringTest.cpp 657 clang::SourceManager *SM;
tools/clang/unittests/Tooling/RewriterTestContext.h 119 SourceManager Sources;
tools/clang/unittests/Tooling/SourceCodeTest.cpp 50 static ::testing::Matcher<CharSourceRange> AsRange(const SourceManager &SM,
tools/clang/unittests/Tooling/Syntax/TokensTest.cpp 243 llvm::IntrusiveRefCntPtr<SourceManager> SourceMgr =
244 new SourceManager(*Diags, *FileMgr);
745 auto &SM = *SourceMgr;
770 auto &SM = *SourceMgr;
tools/clang/unittests/Tooling/Syntax/TreeTest.cpp 118 llvm::IntrusiveRefCntPtr<SourceManager> SourceMgr =
119 new SourceManager(*Diags, *FileMgr);
tools/clang/unittests/Tooling/TestVisitor.h 222 void UpdateFor(StringRef Name, FullSourceLoc Location, SourceManager &SM) {
tools/lldb/include/lldb/Symbol/ClangASTContext.h 99 clang::SourceManager *getSourceManager();
985 std::unique_ptr<clang::SourceManager> m_source_manager_up;
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp 108 clang::SourceManager &m_source_mgr;
115 clang::SourceManager &source_mgr)
891 clang::SourceManager &source_mgr = m_compiler->getSourceManager();
1080 clang::SourceManager &source_manager = m_compiler->getSourceManager();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.cpp 220 clang::SourceManager SM(diags, file_mgr);
223 FileID FID = SM.createFileID(clang::SourceManager::Unowned, buf.get());
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp 271 clang::SourceManager &source_manager =
tools/lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp 151 clang::SourceManager SM(diags, file_mgr);
154 FileID FID = SM.createFileID(clang::SourceManager::Unowned, buf.get());
tools/lldb/source/Symbol/ClangASTContext.cpp 766 clang::SourceManager *ClangASTContext::getSourceManager() {
769 new clang::SourceManager(*getDiagnosticsEngine(), *getFileManager()));
usr/include/c++/7.4.0/bits/alloc_traits.h 474 construct(allocator_type& __a, _Up* __p, _Args&&... __args)
usr/include/c++/7.4.0/bits/move.h 72 constexpr _Tp&&
83 constexpr _Tp&&
usr/include/c++/7.4.0/bits/shared_ptr.h 343 _Args&&... __args)
688 allocate_shared(const _Alloc& __a, _Args&&... __args)
703 make_shared(_Args&&... __args)
usr/include/c++/7.4.0/bits/shared_ptr_base.h 1317 _Args&&... __args)
usr/include/c++/7.4.0/bits/std_function.h 299 _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args)
628 using _Invoker_type = _Res (*)(const _Any_data&, _ArgTypes&&...);
usr/include/c++/7.4.0/bits/unique_ptr.h 68 default_delete(const default_delete<_Up>&) noexcept { }
72 operator()(_Tp* __ptr) const
74 static_assert(!is_void<_Tp>::value,
76 static_assert(sizeof(_Tp)>0,
122 using type = _Up*;
137 using pointer = typename _Ptr<_Tp, _Dp>::type;
161 typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
163 __uniq_ptr_impl<_Tp, _Dp> _M_t;
166 using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
167 using element_type = _Tp;
252 unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
297 __safe_conversion_up<_Up, _Ep>,
301 operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
689 operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept
811 { typedef unique_ptr<_Tp> __single_object; };
823 inline typename _MakeUniq<_Tp>::__single_object
824 make_unique(_Args&&... __args)
825 { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
usr/include/c++/7.4.0/ext/new_allocator.h 135 construct(_Up* __p, _Args&&... __args)
usr/include/c++/7.4.0/type_traits 215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type
581 : public __or_<is_lvalue_reference<_Tp>,
582 is_rvalue_reference<_Tp>>::type
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
602 is_void<_Tp>>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
1554 { typedef _Tp type; };
1563 { typedef _Tp type; };
1574 remove_const<typename remove_volatile<_Tp>::type>::type type;
1633 { typedef _Tp type; };
1645 { typedef _Tp& type; };
1650 : public __add_lvalue_reference_helper<_Tp>
1659 { typedef _Tp&& type; };
utils/unittest/googletest/include/gtest/gtest-printers.h 407 T* p, ::std::ostream* os) {
416 if (IsTrue(ImplicitlyConvertible<T*, const void*>::value)) {