Home
last modified time | relevance | path

Searched refs:SourceManager (Results 1 – 25 of 587) sorted by relevance

12345678910>>...24

/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DTestingSupport.cpp38 const SourceManager &SourceManager, in isAnnotationDirectlyAfterStatement() argument
41 Lexer::findNextToken(Stmt->getEndLoc(), SourceManager, LangOptions); in isAnnotationDirectlyAfterStatement()
43 while (NextToken && SourceManager.getFileOffset(NextToken->getLocation()) < in isAnnotationDirectlyAfterStatement()
48 NextToken = Lexer::findNextToken(NextToken->getEndLoc(), SourceManager, in isAnnotationDirectlyAfterStatement()
68 auto &SourceManager = Context.getSourceManager(); in buildStatementToAnnotationMapping() local
72 unsigned Offset = SourceManager.getFileOffset(S->getEndLoc()); in buildStatementToAnnotationMapping()
94 SourceManager.getLocForStartOfFile(SourceManager.getMainFileID()) in buildStatementToAnnotationMapping()
96 .printToString(SourceManager) in buildStatementToAnnotationMapping()
107 Stmt->getBeginLoc().printToString(SourceManager).data()); in buildStatementToAnnotationMapping()
117 SourceManager.getLocForStartOfFile(SourceManager.getMainFileID()) in buildStatementToAnnotationMapping()
[all …]
/llvm-project-15.0.7/lldb/source/Core/
H A DSourceManager.cpp61 SourceManager::SourceManager(const TargetSP &target_sp) in SourceManager() function in SourceManager
66 SourceManager::SourceManager(const DebuggerSP &debugger_sp) in SourceManager() function in SourceManager
71 SourceManager::~SourceManager() = default;
73 SourceManager::FileSP SourceManager::GetFile(const FileSpec &file_spec) { in GetFile()
276 size_t SourceManager::DisplayMoreWithLineNumbers( in DisplayMoreWithLineNumbers()
395 SourceManager::File::File(const FileSpec &file_spec, in File()
493 uint32_t SourceManager::File::GetNumLines() { in GetNumLines()
536 bool SourceManager::File::LineIsValid(uint32_t line) { in LineIsValid()
545 void SourceManager::File::UpdateIfNeeded() { in UpdateIfNeeded()
619 void SourceManager::File::FindLinesMatchingRegex( in FindLinesMatchingRegex()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DLexerUtils.h25 Token getPreviousToken(SourceLocation Location, const SourceManager &SM,
29 const SourceManager &SM,
33 const SourceManager &SM,
37 SourceLocation findNextTerminator(SourceLocation Start, const SourceManager &SM,
42 const SourceManager &SM, in findPreviousAnyTokenKind()
66 const SourceManager &SM, in findNextAnyTokenKind()
90 const SourceManager &SM,
97 const SourceManager &SM,
108 const SourceManager &SM);
112 SourceLocation getUnifiedEndLoc(const Stmt &S, const SourceManager &SM,
H A DRenamerClangTidyCheck.cpp157 SourceManager *SourceMgr) { in addUsage()
276 Result.SourceManager); in check()
283 Result.SourceManager); in check()
300 addUsage(Decl->getParent(), Range, Result.SourceManager); in check()
329 addUsage(TemplDecl, Range, Result.SourceManager); in check()
355 Result.SourceManager); in check()
392 Result.SourceManager); in check()
417 Result.SourceManager); in check()
426 Result.SourceManager); in check()
431 Result.SourceManager); in check()
[all …]
H A DRenamerClangTidyCheck.h39 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
111 void checkMacro(SourceManager &SourceMgr, const Token &MacroNameTok,
118 SourceRange Range, SourceManager *SourceMgr = nullptr);
122 SourceManager *SourceMgr = nullptr);
128 getDeclFailureInfo(const NamedDecl *Decl, const SourceManager &SM) const = 0;
135 const SourceManager &SM) const = 0;
H A DASTUtils.h26 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);
H A DLexerUtils.cpp18 Token getPreviousToken(SourceLocation Location, const SourceManager &SM, in getPreviousToken()
40 const SourceManager &SM, in findPreviousTokenStart()
53 const SourceManager &SM, in findPreviousTokenKind()
75 SourceLocation findNextTerminator(SourceLocation Start, const SourceManager &SM, in findNextTerminator()
81 const SourceManager &SM, in findNextTokenSkippingComments()
91 const SourceManager &SM, in rangeContainsExpansionsOrDirectives()
117 const SourceManager &SM) { in getQualifyingToken()
164 const SourceManager &SM, in getSemicolonAfterStmtEndLoc()
199 SourceLocation getUnifiedEndLoc(const Stmt &S, const SourceManager &SM, in getUnifiedEndLoc()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DSourceCode.h34 class SourceManager; variable
43 Optional<FileDigest> digestFile(const SourceManager &SM, FileID FID);
72 Position sourceLocToPosition(const SourceManager &SM, SourceLocation Loc);
85 bool isInsideMainFile(SourceLocation Loc, const SourceManager &SM);
98 bool isSpelledInSource(SourceLocation Loc, const SourceManager &SM);
113 llvm::Optional<SourceRange> toHalfOpenFileRange(const SourceManager &Mgr,
123 bool isValidFileRange(const SourceManager &Mgr, SourceRange R);
127 llvm::StringRef toSourceCode(const SourceManager &SM, SourceRange R);
131 Range halfOpenToRange(const SourceManager &SM, CharSourceRange R);
152 TextEdit toTextEdit(const FixItHint &FixIt, const SourceManager &M,
[all …]
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DLexer.h39 class SourceManager; variable
181 const SourceManager &SM, const LangOptions &LangOpts,
339 const SourceManager &SourceMgr,
349 const SourceManager &SourceMgr,
363 const SourceManager &SM,
372 const SourceManager &SM,
378 const SourceManager &SM,
393 const SourceManager &SM,
462 const SourceManager &SM,
498 const SourceManager &SM,
[all …]
/llvm-project-15.0.7/lldb/include/lldb/Core/
H A DSourceManager.h31 class SourceManager {
34 friend bool operator==(const SourceManager::File &lhs,
35 const SourceManager::File &rhs);
117 SourceManager(const lldb::DebuggerSP &debugger_sp);
118 SourceManager(const lldb::TargetSP &target_sp);
120 ~SourceManager();
163 SourceManager(const SourceManager &) = delete;
164 const SourceManager &operator=(const SourceManager &) = delete;
167 bool operator==(const SourceManager::File &lhs, const SourceManager::File &rhs);
/llvm-project-15.0.7/clang/lib/Basic/
H A DSourceManager.cpp300 LineTableInfo &SourceManager::getLineTable() { in getLineTable()
310 SourceManager::SourceManager(DiagnosticsEngine &Diag, FileManager &FileMgr, in SourceManager() function in SourceManager
317 SourceManager::~SourceManager() { in ~SourceManager()
336 void SourceManager::clearIDTables() { in clearIDTables()
361 void SourceManager::initializeForReplay(const SourceManager &Old) { in initializeForReplay()
639 SourceLocation SourceManager::createExpansionLoc( in createExpansionLoc()
687 void SourceManager::overrideFileContents( in overrideFileContents()
930 SourceLocation SourceManager::
966 SourceManager::getDecomposedExpansionLocSlowCase( in getDecomposedExpansionLocSlowCase()
2122 void SourceManager::PrintStats() const { in PrintStats()
[all …]
/llvm-project-15.0.7/clang/include/clang/Tooling/Syntax/
H A DTokens.h55 FileRange(const SourceManager &SM, SourceLocation BeginLoc, unsigned Length);
58 FileRange(const SourceManager &SM, SourceLocation BeginLoc,
79 llvm::StringRef text(const SourceManager &SM) const;
83 CharSourceRange toCharRange(const SourceManager &SM) const;
124 llvm::StringRef text(const SourceManager &SM) const;
128 FileRange range(const SourceManager &SM) const;
137 std::string dumpForTests(const SourceManager &SM) const;
177 TokenBuffer(const SourceManager &SourceMgr) : SourceMgr(&SourceMgr) {} in TokenBuffer()
310 const SourceManager &sourceManager() const { return *SourceMgr; } in sourceManager()
379 const SourceManager *SourceMgr;
[all …]
/llvm-project-15.0.7/clang/include/clang/AST/
H A DRawCommentList.h26 class SourceManager; variable
47 RawComment(const SourceManager &SourceMgr, SourceRange SR,
98 StringRef getRawText(const SourceManager &SourceMgr) const { in getRawText()
139 std::string getFormattedText(const SourceManager &SourceMgr,
154 std::vector<CommentLine> getFormattedLines(const SourceManager &SourceMgr,
186 StringRef getRawTextSlow(const SourceManager &SourceMgr) const;
197 RawCommentList(SourceManager &SourceMgr) : SourceMgr(SourceMgr) {} in RawCommentList()
213 SourceManager &SourceMgr;
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMagicNumbersCheck.h39 bool isSyntheticValue(const clang::SourceManager *, in isSyntheticValue() argument
43 bool isSyntheticValue(const clang::SourceManager *SourceManager,
61 if (Result.SourceManager->isMacroBodyExpansion( in checkBoundMatch()
71 if (isSyntheticValue(Result.SourceManager, MatchedLiteral)) in checkBoundMatch()
79 *Result.SourceManager, getLangOpts()); in checkBoundMatch()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseTrailingReturnTypeCheck.h37 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
46 const SourceManager &SM, const LangOptions &LangOpts);
49 const SourceManager &SM,
54 const SourceManager &SM,
59 const SourceManager &SM, const LangOptions &LangOpts);
H A DDeprecatedHeadersCheck.cpp31 const SourceManager &SM, bool CheckHeaderFile);
45 const SourceManager &SM;
52 const SourceManager &SM;
56 SourceManager &SM) in ExternCRefutationVisitor()
89 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { in registerPPCallbacks()
111 SourceManager &SM = Result.Context->getSourceManager(); in check()
137 const SourceManager &SM, bool CheckHeaderFile) in IncludeModernizePPCallbacks()
H A DMakeSmartPtrCheck.h29 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);
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXSourceLocation.cpp206 const SourceManager &SM = in clang_Location_isInSystemHeader()
207 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_Location_isInSystemHeader()
217 const SourceManager &SM = in clang_Location_isFromMainFile()
218 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_Location_isFromMainFile()
239 const SourceManager &SM = in clang_getExpansionLocation()
240 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_getExpansionLocation()
281 const SourceManager &SM = in clang_getPresumedLocation()
319 const SourceManager &SM = in clang_getSpellingLocation()
320 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_getSpellingLocation()
356 const SourceManager &SM = in clang_getFileLocation()
[all …]
/llvm-project-15.0.7/clang/include/clang/Analysis/
H A DPathDiagnostic.h49 class SourceManager; variable
201 const SourceManager *SM = nullptr;
220 PathDiagnosticLocation(const Stmt *s, const SourceManager &sm, in PathDiagnosticLocation()
231 PathDiagnosticLocation(const Decl *d, const SourceManager &sm) in PathDiagnosticLocation()
249 const SourceManager &SM) { in create()
261 createBegin(const Decl *D, const SourceManager &SM, in createBegin()
268 const SourceManager &SM,
276 const SourceManager &SM,
314 const SourceManager &SMng);
597 void setCallee(const CallEnter &CE, const SourceManager &SM);
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DVirtualClassDestructorCheck.cpp52 const SourceManager &SM, const LangOptions &LangOpts) { in getVirtualKeywordRange()
88 const SourceManager &SourceManager) { in generateUserDeclaredDestructor() argument
132 const SourceManager &SM, const LangOptions &LangOpts) { in changePrivateDestructorVisibilityTo()
181 "public", *Destructor, *Result.SourceManager, getLangOpts()); in check()
185 "protected", *Destructor, *Result.SourceManager, getLangOpts()); in check()
200 getVirtualKeywordRange(*Destructor, *Result.SourceManager, in check()
206 *Result.SourceManager); in check()
/llvm-project-15.0.7/lldb/unittests/Core/
H A DSourceManagerTest.cpp23 SourceManager::SourceFileCache cache; in TEST_F()
28 std::make_shared<SourceManager::File>(foo_file_spec, nullptr); in TEST_F()
37 SourceManager::SourceFileCache cache; in TEST_F()
42 std::make_shared<SourceManager::File>(foo_file_spec, nullptr); in TEST_F()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DAbseilMatcher.h34 auto &SourceManager = Finder->getASTContext().getSourceManager(); in AST_POLYMORPHIC_MATCHER() local
35 SourceLocation Loc = SourceManager.getSpellingLoc(Node.getBeginLoc()); in AST_POLYMORPHIC_MATCHER()
39 SourceManager.getFileEntryForID(SourceManager.getFileID(Loc)); in AST_POLYMORPHIC_MATCHER()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DSourceLocation.h33 class SourceManager; variable
60 friend class SourceManager; variable
89 friend class SourceManager; variable
181 void print(raw_ostream &OS, const SourceManager &SM) const;
182 std::string printToString(const SourceManager &SM) const;
183 void dump(const SourceManager &SM) const;
241 void print(raw_ostream &OS, const SourceManager &SM) const;
242 std::string printToString(const SourceManager &SM) const;
243 void dump(const SourceManager &SM) const;
369 const SourceManager *SrcMgr = nullptr;
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/android/
H A DCloexecCheck.cpp25 std::string buildFixMsgForStringFlag(const Expr *Arg, const SourceManager &SM, in buildFixMsgForStringFlag()
58 SourceManager &SM = *Result.SourceManager; in insertMacroFlag()
94 ModeArg, *Result.SourceManager, Result.Context->getLangOpts(), Mode); in insertStringFlag()
105 const SourceManager &SM = *Result.SourceManager; in getSpellingArg()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCoverageMappingGen.h27 class SourceManager; variable
68 SourceManager &SourceMgr;
75 CoverageSourceInfo(SourceManager &SourceMgr) : SourceMgr(SourceMgr) {} in CoverageSourceInfo()
151 SourceManager &SM;
156 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM, in CoverageMappingGen()
160 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM, in CoverageMappingGen()

12345678910>>...24