| /llvm-project/clang-tools-extra/clang-tidy/utils/ |
| H A D | LexerUtils.h | 25 Token getPreviousToken(SourceLocation Location, const SourceManager &SM, 28 getPreviousTokenAndStart(SourceLocation Location, const SourceManager &SM, 32 const SourceManager &SM, 36 const SourceManager &SM, 40 SourceLocation findNextTerminator(SourceLocation Start, const SourceManager &SM, 45 const SourceManager &SM, in findPreviousAnyTokenKind() 69 const SourceManager &SM, in findNextAnyTokenKind() 93 findNextTokenIncludingComments(SourceLocation Start, const SourceManager &SM, 100 const SourceManager &SM, 107 const SourceManager [all...] |
| H A D | RenamerClangTidyCheck.h | 39 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP, 112 const SourceManager &SourceMgr); 116 const SourceManager &SourceMgr); 119 const SourceManager &SourceMgr); 126 getDeclFailureInfo(const NamedDecl *Decl, const SourceManager &SM) const = 0; 133 const SourceManager &SM) const = 0; 161 SourceRange UsageRange, const SourceManager &SourceMgr);
|
| H A D | LexerUtils.cpp | 11 #include "clang/Basic/SourceManager.h" 18 getPreviousTokenAndStart(SourceLocation Location, const SourceManager &SM, in getPreviousTokenAndStart() 32 Token getPreviousToken(SourceLocation Location, const SourceManager &SM, in getPreviousTokenAndStart() 40 const SourceManager &SM, in getPreviousToken() 53 const SourceManager &SM, in findPreviousTokenStart() 75 SourceLocation findNextTerminator(SourceLocation Start, const SourceManager &SM, in findPreviousTokenKind() 81 findNextTokenSkippingComments(SourceLocation Start, const SourceManager &SM, 96 const SourceManager &SM, in findNextTokenIncludingComments() 122 const SourceManager &SM) { in findNextTokenSkippingComments() 170 const SourceManager in getQualifyingToken() [all...] |
| H A D | ASTUtils.h | 24 bool exprHasBitFlagWithSpelling(const Expr *Flags, const SourceManager &SM, 30 const SourceManager *SM); 33 bool rangeContainsMacroExpansion(SourceRange Range, const SourceManager *SM); 37 bool rangeCanBeFixed(SourceRange Range, const SourceManager *SM);
|
| /llvm-project/lldb/source/Core/ |
| H A D | SourceManager.cpp | 1 //===-- SourceManager.cpp -------------------------------------------------===// 9 #include "lldb/Core/SourceManager.h" 70 // SourceManager constructor in SourceManager() function in SourceManager 71 SourceManager::SourceManager(const TargetSP &target_sp) in SourceManager() 76 SourceManager::SourceManager(const DebuggerSP &debugger_sp) 82 SourceManager::~SourceManager() = default; in GetFile() 84 SourceManager in GetFile() 65 SourceManager::SourceManager(const TargetSP &target_sp) SourceManager() function in SourceManager [all...] |
| /llvm-project/clang/include/clang/Lex/ |
| H A D | Lexer.h | 39 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, 386 const SourceManager &SM, 393 const SourceManager &SM, 401 const SourceManager in AdvanceToTokenCharacter() [all...] |
| /llvm-project/clang/unittests/Analysis/FlowSensitive/ |
| H A D | TestingSupport.cpp | 11 #include "clang/Basic/SourceManager.h" 33 const SourceManager &SourceManager, in isAnnotationDirectlyAfterStatement() argument 36 Lexer::findNextToken(Stmt->getEndLoc(), SourceManager, LangOptions); in isAnnotationDirectlyAfterStatement() 38 while (NextToken && SourceManager.getFileOffset(NextToken->getLocation()) < in isAnnotationDirectlyAfterStatement() 43 NextToken = Lexer::findNextToken(NextToken->getEndLoc(), SourceManager, in isAnnotationDirectlyAfterStatement() 51 const SourceManager &SM, const LangOptions &LangOpts, in buildLineToAnnotationMapping() 85 auto &SourceManager = Context.getSourceManager(); in buildStatementToAnnotationMapping() local 89 unsigned Offset = SourceManager.getFileOffset(S->getEndLoc()); in buildStatementToAnnotationMapping() 94 SourceManager in buildStatementToAnnotationMapping() [all...] |
| /llvm-project/clang/lib/Basic/ |
| H A D | SourceManager.cpp | 1 //===- SourceManager.cpp - Track and cache source files -------------------===// 9 // This file implements the SourceManager interface. 13 #include "clang/Basic/SourceManager.h" 59 // SourceManager Helper Classes 262 unsigned SourceManager::getLineTableFilenameID(StringRef Name) { in FindNearestLineEntry() 269 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, in AddEntry() 297 LineTableInfo &SourceManager::getLineTable() { in AddLineNote() 307 SourceManager::SourceManager(DiagnosticsEngine &Diag, FileManager &FileMgr, 314 SourceManager 318 SourceManager::SourceManager(DiagnosticsEngine &Diag, FileManager &FileMgr, SourceManager() function in SourceManager [all...] |
| /llvm-project/lldb/include/lldb/Core/ |
| H A D | SourceManager.h | 1 //===-- SourceManager.h -----------------------------------------*- C++ -*-===// 34 class SourceManager { 37 friend bool operator==(const SourceManager::File &lhs, 38 const SourceManager::File &rhs); 122 /// SourceManager::GetFile. 151 SourceManager(const lldb::DebuggerSP &debugger_sp); 152 SourceManager(const lldb::TargetSP &target_sp); 155 ~SourceManager(); 206 SourceManager(const SourceManager [all...] |
| /llvm-project/clang-tools-extra/clangd/ |
| H A D | SourceCode.h | 35 class SourceManager; variable 44 std::optional<FileDigest> digestFile(const SourceManager &SM, FileID FID); 73 Position sourceLocToPosition(const SourceManager &SM, SourceLocation Loc); 77 llvm::Expected<SourceLocation> sourceLocationInMainFile(const SourceManager &SM, 86 bool isInsideMainFile(SourceLocation Loc, const SourceManager &SM); 91 SourceLocation includeHashLoc(FileID IncludedFile, const SourceManager &SM); 99 bool isSpelledInSource(SourceLocation Loc, const SourceManager &SM); 114 std::optional<SourceRange> toHalfOpenFileRange(const SourceManager &Mgr, 124 bool isValidFileRange(const SourceManager &Mgr, SourceRange R); 128 llvm::StringRef toSourceCode(const SourceManager &SM, SourceRange R); [all …]
|
| /llvm-project/clang/include/clang/Tooling/Syntax/ |
| H A D | Tokens.h | 54 FileRange(const SourceManager &SM, SourceLocation BeginLoc, unsigned Length); 57 FileRange(const SourceManager &SM, SourceLocation BeginLoc, 78 llvm::StringRef text(const SourceManager &SM) const; 82 CharSourceRange toCharRange(const SourceManager &SM) const; 123 llvm::StringRef text(const SourceManager &SM) const; 127 FileRange range(const SourceManager &SM) const; 133 static FileRange range(const SourceManager &SM, const syntax::Token &First, 136 std::string dumpForTests(const SourceManager &SM) const; 176 TokenBuffer(const SourceManager &SourceMgr) : SourceMgr(&SourceMgr) {} in TokenBuffer() 309 const SourceManager &sourceManager() const { return *SourceMgr; } in sourceManager() [all …]
|
| /llvm-project/clang/include/clang/AST/ |
| H A D | RawCommentList.h | 26 class SourceManager; variable 47 RawComment(const SourceManager &SourceMgr, SourceRange SR, 98 StringRef getRawText(const SourceManager &SourceMgr) const { in getRawText() 118 bool hasUnsupportedSplice(const SourceManager &SourceMgr) const { in hasUnsupportedSplice() 150 std::string getFormattedText(const SourceManager &SourceMgr, 165 std::vector<CommentLine> getFormattedLines(const SourceManager &SourceMgr, 203 StringRef getRawTextSlow(const SourceManager &SourceMgr) const; 214 RawCommentList(SourceManager &SourceMgr) : SourceMgr(SourceMgr) {} in RawCommentList() 230 SourceManager &SourceMgr;
|
| /llvm-project/lldb/unittests/Core/ |
| H A D | SourceManagerTest.cpp | 9 #include "lldb/Core/SourceManager.h" 29 SourceManager::SourceFileCache cache; in TEST_F() 33 auto foo_file_sp = std::make_shared<SourceManager::File>( in TEST_F() 43 SourceManager::SourceFileCache cache; in TEST_F() 47 auto foo_file_sp = std::make_shared<SourceManager::File>( in TEST_F() 57 SourceManager::SourceFileCache cache; in TEST_F() 61 // Mimic the resolution in SourceManager::GetFile. in TEST_F() 66 auto foo_file_sp = std::make_shared<SourceManager::File>( in TEST_F()
|
| /llvm-project/clang/include/clang/Analysis/ |
| H A D | PathDiagnostic.h | 49 class SourceManager; variable 201 const SourceManager *SM = nullptr; 205 PathDiagnosticLocation(SourceLocation L, const SourceManager &sm, Kind kind) in PathDiagnosticLocation() 220 PathDiagnosticLocation(const Stmt *s, const SourceManager &sm, in PathDiagnosticLocation() 231 PathDiagnosticLocation(const Decl *d, const SourceManager &sm) in PathDiagnosticLocation() 241 PathDiagnosticLocation(SourceLocation loc, const SourceManager &sm) in PathDiagnosticLocation() 249 const SourceManager &SM) { in create() 255 const SourceManager &SM); 261 createBegin(const Decl *D, const SourceManager &SM, in createBegin() 268 const SourceManager &SM, [all …]
|
| /llvm-project/clang-tools-extra/clang-tidy/readability/ |
| H A D | MagicNumbersCheck.h | 37 bool isSyntheticValue(const clang::SourceManager *, in isSyntheticValue() argument 41 bool isSyntheticValue(const clang::SourceManager *SourceManager, 63 if (Result.SourceManager->isMacroBodyExpansion( in checkBoundMatch() 73 if (isSyntheticValue(Result.SourceManager, MatchedLiteral)) in checkBoundMatch() 85 *Result.SourceManager, getLangOpts()); in checkBoundMatch()
|
| H A D | BracesAroundStatementsCheck.cpp | 20 static tok::TokenKind getTokenKind(SourceLocation Loc, const SourceManager &SM, in getTokenKind() 34 forwardSkipWhitespaceAndComments(SourceLocation Loc, const SourceManager &SM, in forwardSkipWhitespaceAndComments() 71 const SourceManager &SM = *Result.SourceManager; in check() 114 const SourceManager &SM, in findRParenLoc() 151 S, Result.Context->getLangOpts(), *Result.SourceManager, StartLoc, in checkStmt() 155 BraceInsertionHints.resultingCompoundLineExtent(*Result.SourceManager) < in checkStmt()
|
| /llvm-project/clang/tools/libclang/ |
| H A D | CXSourceLocation.cpp | 33 // If the lowest bit is clear then the first ptr_data entry is a SourceManager in isASTUnitSourceLocation() 58 const SourceManager &SM = in clang_getRange() 59 *static_cast<const SourceManager *>(loc1.ptr_data[0]); in clang_getRange() 60 // Use the appropriate SourceManager method here rather than operator< because in clang_getRange() 219 const SourceManager &SM = in clang_Location_isFromMainFile() 220 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_Location_isFromMainFile() 230 const SourceManager &SM = in clang_getExpansionLocation() 231 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_getExpansionLocation() 252 const SourceManager &SM = in clang_getExpansionLocation() 253 *static_cast<const SourceManager*>(locatio in clang_getExpansionLocation() [all...] |
| /llvm-project/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseTrailingReturnTypeCheck.h | 36 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP, 45 const SourceManager &SM, const LangOptions &LangOpts); 48 const SourceManager &SM, 53 const SourceManager &SM, 58 const SourceManager &SM, const LangOptions &LangOpts);
|
| H A D | DeprecatedHeadersCheck.cpp | 29 const SourceManager &SM, bool CheckHeaderFile); 44 const SourceManager &SM; 51 const SourceManager &SM; 55 SourceManager &SM) in ExternCRefutationVisitor() 88 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { in registerPPCallbacks() 110 SourceManager &SM = Result.Context->getSourceManager(); in check() 136 const SourceManager &SM, bool CheckHeaderFile) in IncludeModernizePPCallbacks()
|
| /llvm-project/clang/include/clang/Basic/ |
| H A D | SourceLocation.h | 34 class SourceManager; variable 61 friend class SourceManager; variable 91 friend class SourceManager; variable 184 void print(raw_ostream &OS, const SourceManager &SM) const; 185 std::string printToString(const SourceManager &SM) const; 186 void dump(const SourceManager &SM) const; 244 void print(raw_ostream &OS, const SourceManager &SM) const; 245 std::string printToString(const SourceManager &SM) const; 246 void dump(const SourceManager &SM) const; 370 const SourceManager *SrcMgr = nullptr; [all …]
|
| /llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | VirtualClassDestructorCheck.cpp | 51 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/clang/lib/Tooling/Transformer/ |
| H A D | SourceCode.cpp | 54 const SourceManager &SM, in validateRange() 85 const SourceManager &SM) { in validateEditRange() 90 const SourceManager &SM) { in spelledInMacroDefinition() 108 getExpansionForSplitToken(SourceLocation Loc, const SourceManager &SM, in getExpansionForSplitToken() 129 const SourceManager &SM, in getRangeForSplitTokens() 153 const SourceManager &SM, in getRange() 175 const CharSourceRange &EditRange, const SourceManager &SM, in getFileRangeForEdit() 186 const CharSourceRange &EditRange, const SourceManager &SM, in getFileRange() 197 static bool startsWithNewline(const SourceManager &SM, const Token &Tok) { in startsWithNewline() 215 getEntityEndLoc(const SourceManager &SM, SourceLocation EntityLast, in getEntityEndLoc() [all …]
|
| /llvm-project/clang-tools-extra/clang-tidy/abseil/ |
| H A D | AbseilMatcher.h | 33 auto &SourceManager = Finder->getASTContext().getSourceManager(); in AST_POLYMORPHIC_MATCHER() local 34 SourceLocation Loc = SourceManager.getSpellingLoc(Node.getBeginLoc()); in AST_POLYMORPHIC_MATCHER() 38 SourceManager.getFileEntryRefForID(SourceManager.getFileID(Loc)); in AST_POLYMORPHIC_MATCHER()
|
| /llvm-project/clang-tools-extra/clang-tidy/android/ |
| H A D | CloexecCheck.cpp | 23 std::string buildFixMsgForStringFlag(const Expr *Arg, const SourceManager &SM, in buildFixMsgForStringFlag() 56 SourceManager &SM = *Result.SourceManager; in insertMacroFlag() 92 ModeArg, *Result.SourceManager, Result.Context->getLangOpts(), Mode); in insertStringFlag() 103 const SourceManager &SM = *Result.SourceManager; in getSpellingArg()
|
| /llvm-project/clang/lib/CodeGen/ |
| H A D | CoverageMappingGen.h | 32 class SourceManager; 73 SourceManager &SourceMgr; 80 CoverageSourceInfo(SourceManager &SourceMgr) : SourceMgr(SourceMgr) {} 160 SourceManager &SM; in CoverageMappingGen() 166 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM, in CoverageMappingGen() 171 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM, 27 class SourceManager; global() variable
|